PageRenderTime 41ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/xpaint-2.9.8.3/Xaw3dxft/Scrollbar.h

#
C Header | 146 lines | 29 code | 14 blank | 103 comment | 0 complexity | 01146e97fc0c1434867afefd73a12f64 MD5 | raw file
Possible License(s): GPL-3.0
  1. /* $XConsortium: Scrollbar.h,v 1.7 91/07/26 21:59:31 converse Exp $ */
  2. /***********************************************************
  3. Copyright (c) 1987, 1988 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, 1988 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 _Scrollbar_h
  39. #define _Scrollbar_h
  40. /****************************************************************
  41. *
  42. * Scrollbar Widget
  43. *
  44. ****************************************************************/
  45. #include <X11/Xmu/Converters.h>
  46. #include <X11/Xfuncproto.h>
  47. /* Scrollbar resources:
  48. Name Class RepType Default Value
  49. ---- ----- ------- -------------
  50. accelerators Accelerators AcceleratorTable NULL
  51. ancestorSensitive AncestorSensitive Boolean True
  52. background Background Pixel XtDefaultBackground
  53. backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap
  54. borderColor BorderColor Pixel XtDefaultForeground
  55. borderPixmap Pixmap Pixmap XtUnspecifiedPixmap
  56. borderWidth BorderWidth Dimension 1
  57. colormap Colormap Colormap parent's colormap
  58. cursor Cursor Cursor None
  59. cursorName Cursor String NULL
  60. depth Depth int parent's depth
  61. destroyCallback Callback XtCallbackList NULL
  62. foreground Foreground Pixel XtDefaultForeground
  63. height Height Dimension length or thickness
  64. insensitiveBorder Insensitive Pixmap GreyPixmap
  65. jumpProc Callback XtCallbackList NULL
  66. length Length Dimension 1
  67. mappedWhenManaged MappedWhenManaged Boolean True
  68. minimumThumb MinimumThumb Dimension 7
  69. orientation Orientation XtOrientation XtorientVertical
  70. pointerColor Foreground Pixel XtDefaultForeground
  71. pointerColorBackground Background Pixel XtDefaultBackground
  72. screen Screen Screen parent's screen
  73. scrollDCursor Cursor Cursor XC_sb_down_arrow
  74. scrollHCursor Cursor Cursor XC_sb_h_double_arrow
  75. scrollLCursor Cursor Cursor XC_sb_left_arrow
  76. scrollProc Callback XtCallbackList NULL
  77. scrollRCursor Cursor Cursor XC_sb_right_arrow
  78. scrollUCursor Cursor Cursor XC_sb_up_arrow
  79. scrollVCursor Cursor Cursor XC_sb_v_double_arrow
  80. sensitive Sensitive Boolean True
  81. shown Shown Float 0.0
  82. thickness Thickness Dimension 14
  83. thumb Thumb Bitmap GreyPixmap
  84. thumbProc Callback XtCallbackList NULL
  85. topOfThumb TopOfThumb Float 0.0
  86. pickTop PickTop Boolean False
  87. translations Translations TranslationTable see source or doc
  88. width Width Dimension thickness or length
  89. x Position Position 0
  90. y Position Position 0
  91. */
  92. /*
  93. * Most things we need are in StringDefs.h
  94. */
  95. #define XtCMinimumThumb "MinimumThumb"
  96. #define XtCShown "Shown"
  97. #define XtCTopOfThumb "TopOfThumb"
  98. #define XtCPickTop "PickTop"
  99. #define XtNminimumThumb "minimumThumb"
  100. #define XtNtopOfThumb "topOfThumb"
  101. #define XtNpickTop "pickTop"
  102. typedef struct _ScrollbarRec *ScrollbarWidget;
  103. typedef struct _ScrollbarClassRec *ScrollbarWidgetClass;
  104. extern WidgetClass scrollbarWidgetClass;
  105. _XFUNCPROTOBEGIN
  106. extern void XawScrollbarSetThumb(
  107. #if NeedFunctionPrototypes
  108. Widget /* scrollbar */,
  109. #if NeedWidePrototypes
  110. /* float */ double /* top */,
  111. /* float */ double /* shown */
  112. #else
  113. float /* top */,
  114. float /* shown */
  115. #endif
  116. #endif
  117. );
  118. _XFUNCPROTOEND
  119. #endif /* _Scrollbar_h */