home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / xaw / viewport.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  4.2 KB  |  125 lines

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