rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / x11 / libXaw4 / src / Xaw3_1ScrollbarP.h
blob04eec4b7ea0728bee25cc4f853fc99795c464d56
1 /*
2 * $XConsortium: ScrollbarP.h,v 1.1 89/12/15 11:41:03 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 _ScrollbarP_h
31 #define _ScrollbarP_h
33 #include <./Xaw3_1Scrollbar.h>
35 typedef struct {
36 /* public */
37 Pixel foreground; /* thumb foreground color */
38 XtOrientation orientation; /* horizontal or vertical */
39 XtCallbackList scrollProc; /* proportional scroll */
40 XtCallbackList thumbProc; /* jump (to position) scroll */
41 XtCallbackList jumpProc; /* same as thumbProc but pass data by ref */
42 Pixmap thumb; /* thumb color */
43 Cursor upCursor; /* scroll up cursor */
44 Cursor downCursor; /* scroll down cursor */
45 Cursor leftCursor; /* scroll left cursor */
46 Cursor rightCursor; /* scroll right cursor */
47 Cursor verCursor; /* scroll vertical cursor */
48 Cursor horCursor; /* scroll horizontal cursor */
49 float top; /* What percent is above the win's top */
50 float shown; /* What percent is shown in the win */
51 Dimension length; /* either height or width */
52 Dimension thickness; /* either width or height */
53 Dimension min_thumb; /* minium size for the thumb. */
55 /* private */
56 Cursor inactiveCursor; /* The normal cursor for scrollbar */
57 char direction; /* a scroll has started; which direction */
58 GC gc; /* a (shared) gc */
59 Position topLoc; /* Pixel that corresponds to top */
60 Dimension shownLength; /* Num pixels corresponding to shown */
62 } ScrollbarPart;
64 typedef struct _ScrollbarRec {
65 CorePart core;
66 ScrollbarPart scrollbar;
67 } ScrollbarRec;
69 typedef struct {int empty;} ScrollbarClassPart;
71 typedef struct _ScrollbarClassRec {
72 CoreClassPart core_class;
73 ScrollbarClassPart scrollbar_class;
74 } ScrollbarClassRec;
76 extern ScrollbarClassRec scrollbarClassRec;
78 #endif /* _ScrollbarP_h */