Viewport.h
上传用户:lctgjx
上传日期:2022-06-04
资源大小:8887k
文件大小:4k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. /* $XConsortium: Viewport.h,v 1.23 94/04/17 20:13:27 kaleb Exp $ */
  2. /************************************************************
  3. Copyright (c) 1987, 1994  X Consortium
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated documentation files (the "Software"), to deal
  6. in the Software without restriction, including without limitation the rights
  7. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the Software is
  9. furnished to do so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in
  11. all copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  15. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  16. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  17. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  18. Except as contained in this notice, the name of the X Consortium shall not be
  19. used in advertising or otherwise to promote the sale, use or other dealings
  20. in this Software without prior written authorization from the X Consortium.
  21. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  22.                         All Rights Reserved
  23. Permission to use, copy, modify, and distribute this software and its 
  24. documentation for any purpose and without fee is hereby granted, 
  25. provided that the above copyright notice appear in all copies and that
  26. both that copyright notice and this permission notice appear in 
  27. supporting documentation, and that the name of Digital not be
  28. used in advertising or publicity pertaining to distribution of the
  29. software without specific, written prior permission.  
  30. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  31. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  32. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  33. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  34. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  35. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  36. SOFTWARE.
  37. ********************************************************/
  38. #ifndef _XawViewport_h
  39. #define _XawViewport_h
  40. #include <X11/Xaw3d/Form.h>
  41. #include <X11/Xaw3d/Reports.h>
  42. /* Resources:
  43.  Name      Class RepType Default Value
  44.  ----      ----- ------- -------------
  45.  allowHoriz      Boolean Boolean False
  46.  allowVert      Boolean Boolean False
  47.  background      Background Pixel XtDefaultBackground
  48.  border      BorderColor Pixel XtDefaultForeground
  49.  borderWidth      BorderWidth Dimension 1
  50.  destroyCallback     Callback Pointer NULL
  51.  foreceBars      Boolean Boolean False
  52.  height      Height Dimension 0
  53.  mappedWhenManaged   MappedWhenManaged Boolean True
  54.  reportCallback      ReportCallback Pointer NULL
  55.  sensitive      Sensitive Boolean True
  56.  useBottom      Boolean Boolean False
  57.  useRight      Boolean Boolean False
  58.  width      Width Dimension 0
  59.  x      Position Position 0
  60.  y      Position Position 0
  61. */
  62. /* fields added to Form */
  63. #ifndef _XtStringDefs_h_
  64. #define XtNforceBars "forceBars"
  65. #define XtNallowHoriz "allowHoriz"
  66. #define XtNallowVert "allowVert"
  67. #define XtNuseBottom "useBottom"
  68. #define XtNuseRight "useRight"
  69. #endif
  70. extern WidgetClass viewportWidgetClass;
  71. typedef struct _ViewportClassRec *ViewportWidgetClass;
  72. typedef struct _ViewportRec  *ViewportWidget;
  73. _XFUNCPROTOBEGIN
  74. extern void XawViewportSetLocation (
  75. #if NeedFunctionPrototypes
  76.     Widget /* gw */,
  77. #if NeedWidePrototypes
  78.     /* float */ double /* xoff */,
  79.     /* float */ double /* yoff */
  80. #else
  81.     float /* xoff */,
  82.     float /* yoff */
  83. #endif
  84. #endif
  85. );
  86. extern void XawViewportSetCoordinates (
  87. #if NeedFunctionPrototypes
  88.     Widget /* gw */,
  89. #if NeedWidePrototypes
  90.     /* Position */ int /* x */,
  91.     /* Position */ int /* y */
  92. #else
  93.     Position /* x */,
  94.     Position /* y */
  95. #endif
  96. #endif
  97. );
  98. _XFUNCPROTOEND
  99. #endif /* _XawViewport_h */