1 /* Implements a lightweight scrollbar widget.
2 Copyright (C) 1992, 1993, 1994 Lucid, Inc.
4 This file is part of the Lucid Widget Library.
6 The Lucid Widget Library is free software: you can redistribute it
7 and/or modify it under the terms of the GNU General Public License as
8 published by the Free Software Foundation, either version 3 of the
9 License, or (at your option) any later version.
11 The Lucid Widget Library is distributed in the hope that it will be
12 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 /* Created by Douglas Keller <dkeller@vnet.ibm.com> */
21 #ifndef _XlwScrollBarP_h
22 #define _XlwScrollBarP_h
28 int dummy_field; /* keep compiler happy */
29 } XlwScrollBarClassPart;
31 typedef struct _XlwScrollbarClassRec {
32 CoreClassPart core_class;
33 XlwScrollBarClassPart scrollbar_class;
34 } XlwScrollBarClassRec;
36 enum XlwScrollbarArm {
45 enum XlwScrollbarForcedScroll {
47 FORCED_SCROLL_DOWNRIGHT,
56 XtCallbackList valueChangedCBL;
57 XtCallbackList incrementCBL;
58 XtCallbackList decrementCBL;
59 XtCallbackList pageIncrementCBL;
60 XtCallbackList pageDecrementCBL;
61 XtCallbackList toTopCBL;
62 XtCallbackList toBottomCBL;
63 XtCallbackList dragCBL;
68 Pixel bottomShadowColor;
73 Pixel armTopShadowColor;
74 Pixel armBottomShadowColor;
76 Pixmap topShadowPixmap;
77 Pixmap bottomShadowPixmap;
93 unsigned char orientation;
106 int above, ss, below;
109 enum XlwScrollbarArm armed;
111 enum XlwScrollbarForcedScroll forced_scroll;
115 Boolean fullRedrawNext;
118 XtIntervalId timerId;
122 typedef struct _XlwScrollBarRec {
127 #endif /* _XlwScrollBarP_h */