rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / x11 / libXaw4 / src / Xaw3_1Scrollbar.h
blob673d2ed0712d5798dd4e4d696803f21b167c7ee3
1 /*
2 * $XConsortium: Scrollbar.h,v 1.1 89/12/15 11:40:43 kit Exp $
3 */
6 /***********************************************************
7 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
8 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
10 All Rights Reserved
12 Permission to use, copy, modify, and distribute this software and its
13 documentation for any purpose and without fee is hereby granted,
14 provided that the above copyright notice appear in all copies and that
15 both that copyright notice and this permission notice appear in
16 supporting documentation, and that the names of Digital or MIT not be
17 used in advertising or publicity pertaining to distribution of the
18 software without specific, written prior permission.
20 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
22 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
23 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
26 SOFTWARE.
28 ******************************************************************/
30 #ifndef _Scrollbar_h
31 #define _Scrollbar_h
33 /****************************************************************
35 * Scrollbar Widget
37 ****************************************************************/
39 #include <X11/Xmu/Converters.h>
41 /* Parameters:
43 Name Class RepType Default Value
44 ---- ----- ------- -------------
45 background Background Pixel White
46 border BorderColor Pixel Black
47 borderWidth BorderWidth Dimension 1
48 destroyCallback Callback Function NULL
49 foreground Color Pixel Black
50 height Height Dimension length or thickness
51 jumpProc Callback Function NULL
52 length Length Dimension 1
53 mappedWhenManaged MappedWhenManaged Boolean True
54 orientation Orientation XtOrientation XtorientVertical
55 reverseVideo ReverseVideo Boolean False
56 scrollDCursor Cursor Cursor XC_sb_down_arrow
57 scrollHCursor Cursor Cursor XC_sb_h_double_arrow
58 scrollLCursor Cursor Cursor XC_sb_left_arrow
59 scrollProc Callback Function NULL
60 scrollRCursor Cursor Cursor XC_sb_right_arrow
61 scrollUCursor Cursor Cursor XC_sb_up_arrow
62 scrollVCursor Cursor Cursor XC_sb_v_double_arrow
63 sensitive Sensitive Boolean True
64 shown Shown float 0.0
65 thickness Thickness Dimension 14
66 thumb Thumb Pixmap Grey
67 topOfThumb TopOfThumb float 0.0
68 width Width Dimension thickness or length
69 x Position Position 0
70 y Position Position 0
74 /*
75 * Most things we need are in StringDefs.h
78 #define XtCMinimumThumb "MinimumThumb"
79 #define XtCShown "Shown"
80 #define XtCTopOfThumb "TopOfThumb"
82 #define XtNminimumThumb "minimumThumb"
83 #define XtNtopOfThumb "topOfThumb"
85 typedef struct _ScrollbarRec *ScrollbarWidget;
86 typedef struct _ScrollbarClassRec *ScrollbarWidgetClass;
88 extern WidgetClass scrollbarWidgetClass;
90 extern void XawScrollbarSetThumb(); /* scrollBar, top, shown */
91 /* Widget scrollBar; */
92 /* float top, shown; */
94 #ifdef XAW_BC
95 /*************************************************************
96 * For Compatibility only. */
98 #define XtScrollBarSetThumb XawScrollbarSetThumb
100 /*************************************************************/
101 #endif /* XAW_BC */
103 #endif /* _Scrollbar_h */