perl/DBI: update to 1.646
[oi-userland.git] / components / x11 / libXaw5 / src / X11 / Scrollbar.h
blobfe75ccb5728a4ead743d5131d17c5bab5f1b1999
1 /* $XConsortium: Scrollbar.h,v 1.8 94/04/17 20:12:41 converse Exp $ */
4 /***********************************************************
6 Copyright (c) 1987, 1988 X Consortium
8 Permission is hereby granted, free of charge, to any person obtaining a copy
9 of this software and associated documentation files (the "Software"), to deal
10 in the Software without restriction, including without limitation the rights
11 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the Software is
13 furnished to do so, subject to the following conditions:
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 Except as contained in this notice, the name of the X Consortium shall not be
26 used in advertising or otherwise to promote the sale, use or other dealings
27 in this Software without prior written authorization from the X Consortium.
30 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
32 All Rights Reserved
34 Permission to use, copy, modify, and distribute this software and its
35 documentation for any purpose and without fee is hereby granted,
36 provided that the above copyright notice appear in all copies and that
37 both that copyright notice and this permission notice appear in
38 supporting documentation, and that the name of Digital not be
39 used in advertising or publicity pertaining to distribution of the
40 software without specific, written prior permission.
42 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
43 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
44 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
45 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
46 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
47 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
48 SOFTWARE.
50 ******************************************************************/
52 #ifndef _Scrollbar_h
53 #define _Scrollbar_h
55 /****************************************************************
57 * Scrollbar Widget
59 ****************************************************************/
61 #include <X11/Xmu/Converters.h>
62 #include <X11/Xfuncproto.h>
64 /* Scrollbar resources:
66 Name Class RepType Default Value
67 ---- ----- ------- -------------
68 accelerators Accelerators AcceleratorTable NULL
69 ancestorSensitive AncestorSensitive Boolean True
70 background Background Pixel XtDefaultBackground
71 backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap
72 borderColor BorderColor Pixel XtDefaultForeground
73 borderPixmap Pixmap Pixmap XtUnspecifiedPixmap
74 borderWidth BorderWidth Dimension 1
75 colormap Colormap Colormap parent's colormap
76 cursor Cursor Cursor None
77 cursorName Cursor String NULL
78 depth Depth int parent's depth
79 destroyCallback Callback XtCallbackList NULL
80 foreground Foreground Pixel XtDefaultForeground
81 height Height Dimension length or thickness
82 insensitiveBorder Insensitive Pixmap GreyPixmap
83 jumpProc Callback XtCallbackList NULL
84 length Length Dimension 1
85 mappedWhenManaged MappedWhenManaged Boolean True
86 minimumThumb MinimumThumb Dimension 7
87 orientation Orientation XtOrientation XtorientVertical
88 pointerColor Foreground Pixel XtDefaultForeground
89 pointerColorBackground Background Pixel XtDefaultBackground
90 screen Screen Screen parent's screen
91 scrollDCursor Cursor Cursor XC_sb_down_arrow
92 scrollHCursor Cursor Cursor XC_sb_h_double_arrow
93 scrollLCursor Cursor Cursor XC_sb_left_arrow
94 scrollProc Callback XtCallbackList NULL
95 scrollRCursor Cursor Cursor XC_sb_right_arrow
96 scrollUCursor Cursor Cursor XC_sb_up_arrow
97 scrollVCursor Cursor Cursor XC_sb_v_double_arrow
98 sensitive Sensitive Boolean True
99 shown Shown Float 0.0
100 thickness Thickness Dimension 14
101 thumb Thumb Bitmap GreyPixmap
102 thumbProc Callback XtCallbackList NULL
103 topOfThumb TopOfThumb Float 0.0
104 translations Translations TranslationTable see source or doc
105 width Width Dimension thickness or length
106 x Position Position 0
107 y Position Position 0
112 * Most things we need are in StringDefs.h
115 #define XtCMinimumThumb "MinimumThumb"
116 #define XtCShown "Shown"
117 #define XtCTopOfThumb "TopOfThumb"
119 #define XtNminimumThumb "minimumThumb"
120 #define XtNtopOfThumb "topOfThumb"
122 typedef struct _ScrollbarRec *ScrollbarWidget;
123 typedef struct _ScrollbarClassRec *ScrollbarWidgetClass;
125 extern WidgetClass scrollbarWidgetClass;
127 _XFUNCPROTOBEGIN
129 extern void XawScrollbarSetThumb(
130 #if NeedFunctionPrototypes
131 Widget /* scrollbar */,
132 #if NeedWidePrototypes
133 /* float */ double /* top */,
134 /* float */ double /* shown */
135 #else
136 float /* top */,
137 float /* shown */
138 #endif
139 #endif
142 _XFUNCPROTOEND
144 #endif /* _Scrollbar_h */