0
|
1 /* Implements a lightweight scrollbar widget.
|
|
2 Copyright (C) 1992, 1993, 1994 Lucid, Inc.
|
|
3
|
|
4 This file is part of the Lucid Widget Library.
|
|
5
|
|
6 The Lucid Widget Library is free software; you can redistribute it and/or
|
|
7 modify it under the terms of the GNU General Public License as published by
|
|
8 the Free Software Foundation; either version 2, or (at your option)
|
|
9 any later version.
|
|
10
|
|
11 The Lucid Widget Library is distributed in the hope that it will be useful,
|
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 GNU General Public License for more details.
|
|
15
|
|
16 You should have received a copy of the GNU General Public License
|
10
|
17 along with XEmacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
0
|
20
|
|
21 /* Created by Douglas Keller <dkeller@vnet.ibm.com> */
|
|
22
|
|
23 #ifndef _XlwScrollBarP_h
|
|
24 #define _XlwScrollBarP_h
|
|
25
|
|
26
|
|
27 /*
|
|
28 ** Widget class
|
|
29 */
|
|
30 typedef struct {
|
|
31 int dummy_field; /* keep compiler happy */
|
|
32 } XlwScrollBarClassPart;
|
|
33
|
|
34 typedef struct _XlwScrollbarClassRec {
|
|
35 CoreClassPart core_class;
|
|
36 XlwScrollBarClassPart scrollbar_class;
|
|
37 } XlwScrollBarClassRec;
|
|
38
|
|
39
|
|
40 /*
|
|
41 ** Widget instance
|
|
42 */
|
|
43 typedef struct {
|
|
44
|
|
45 /* resources */
|
10
|
46 XtCallbackList valueChangedCBL;
|
|
47 XtCallbackList incrementCBL;
|
|
48 XtCallbackList decrementCBL;
|
|
49 XtCallbackList pageIncrementCBL;
|
|
50 XtCallbackList pageDecrementCBL;
|
|
51 XtCallbackList toTopCBL;
|
|
52 XtCallbackList toBottomCBL;
|
|
53 XtCallbackList dragCBL;
|
0
|
54
|
10
|
55 Pixel foreground;
|
0
|
56
|
10
|
57 Pixel topShadowColor;
|
|
58 Pixel bottomShadowColor;
|
0
|
59
|
10
|
60 Pixel troughColor;
|
0
|
61
|
10
|
62 Pixel armColor;
|
|
63 Pixel armTopShadowColor;
|
|
64 Pixel armBottomShadowColor;
|
0
|
65
|
10
|
66 Pixmap topShadowPixmap;
|
|
67 Pixmap bottomShadowPixmap;
|
0
|
68
|
10
|
69 int shadowThickness;
|
0
|
70
|
10
|
71 Boolean showArrows;
|
0
|
72
|
10
|
73 int minimum;
|
|
74 int maximum;
|
|
75 int sliderSize;
|
|
76 int value;
|
|
77 int pageIncrement;
|
|
78 int increment;
|
0
|
79
|
10
|
80 int initialDelay;
|
|
81 int repeatDelay;
|
0
|
82
|
10
|
83 unsigned char orientation;
|
0
|
84
|
10
|
85 char *knobStyle;
|
|
86 char *arrowPosition;
|
0
|
87
|
|
88 /* private */
|
10
|
89 Pixmap grayPixmap;
|
0
|
90
|
10
|
91 GC backgroundGC;
|
|
92 GC topShadowGC;
|
|
93 GC bottomShadowGC;
|
|
94
|
|
95 int above, ss, below;
|
|
96 int lastY;
|
0
|
97
|
10
|
98 int armed;
|
|
99
|
|
100 int savedValue;
|
0
|
101
|
10
|
102 Boolean fullRedrawNext;
|
0
|
103
|
10
|
104 Boolean timerActive;
|
|
105 XtIntervalId timerId;
|
0
|
106
|
|
107 } XlwScrollBarPart;
|
|
108
|
|
109 typedef struct _XlwScrollBarRec {
|
|
110 CorePart core;
|
|
111 XlwScrollBarPart sb;
|
|
112 } XlwScrollBarRec;
|
|
113
|
|
114 #endif
|