Mercurial > hg > xemacs-beta
comparison lwlib/xlwscrollbarP.h @ 70:131b0175ea99 r20-0b30
Import from CVS: tag r20-0b30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:02:59 +0200 |
parents | 441bb1e64a06 |
children | c0c698873ce1 |
comparison
equal
deleted
inserted
replaced
69:804d1389bcd6 | 70:131b0175ea99 |
---|---|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 GNU General Public License for more details. | 14 GNU General Public License for more details. |
15 | 15 |
16 You should have received a copy of the GNU General Public License | 16 You should have received a copy of the GNU General Public License |
17 along with XEmacs; see the file COPYING. If not, write to | 17 along with GNU Emacs; see the file COPYING. If not, write to |
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
19 Boston, MA 02111-1307, USA. */ | |
20 | 19 |
21 /* Created by Douglas Keller <dkeller@vnet.ibm.com> */ | 20 /* Created by Douglas Keller <dkeller@vnet.ibm.com> */ |
21 /* Last changed 02/05/95 */ | |
22 | 22 |
23 #ifndef _XlwScrollBarP_h | 23 #ifndef _XlwScrollBarP_h |
24 #define _XlwScrollBarP_h | 24 #define _XlwScrollBarP_h |
25 | 25 |
26 | 26 |
27 /* | 27 /* |
28 ** Widget class | 28 ** Widget class |
29 */ | 29 */ |
30 typedef struct | 30 typedef struct { |
31 { | 31 int dummy_field; /* keep compiler happy */ |
32 int dummy_field; /* keep compiler happy */ | |
33 } XlwScrollBarClassPart; | 32 } XlwScrollBarClassPart; |
34 | 33 |
35 typedef struct _XlwScrollbarClassRec | 34 typedef struct _XlwScrollbarClassRec { |
36 { | 35 CoreClassPart core_class; |
37 CoreClassPart core_class; | 36 XlwScrollBarClassPart scrollbar_class; |
38 XlwScrollBarClassPart scrollbar_class; | |
39 } XlwScrollBarClassRec; | 37 } XlwScrollBarClassRec; |
40 | 38 |
41 | 39 |
42 /* | 40 /* |
43 ** Widget instance | 41 ** Widget instance |
44 */ | 42 */ |
45 typedef struct | 43 typedef struct { |
46 { | |
47 /* resources */ | |
48 XtCallbackList valueChangedCBL; | |
49 XtCallbackList incrementCBL; | |
50 XtCallbackList decrementCBL; | |
51 XtCallbackList pageIncrementCBL; | |
52 XtCallbackList pageDecrementCBL; | |
53 XtCallbackList toTopCBL; | |
54 XtCallbackList toBottomCBL; | |
55 XtCallbackList dragCBL; | |
56 | 44 |
57 Pixel foreground; | 45 /* resources */ |
46 XtCallbackList valueChangedCBL; | |
47 XtCallbackList incrementCBL; | |
48 XtCallbackList decrementCBL; | |
49 XtCallbackList pageIncrementCBL; | |
50 XtCallbackList pageDecrementCBL; | |
51 XtCallbackList toTopCBL; | |
52 XtCallbackList toBottomCBL; | |
53 XtCallbackList dragCBL; | |
58 | 54 |
59 Pixel topShadowColor; | 55 Pixel foreground; |
60 Pixel bottomShadowColor; | |
61 | 56 |
62 Pixel troughColor; | 57 Pixel topShadowColor; |
58 Pixel bottomShadowColor; | |
63 | 59 |
64 Pixel armColor; | 60 Pixel troughColor; |
65 Pixel armTopShadowColor; | |
66 Pixel armBottomShadowColor; | |
67 | 61 |
68 Pixmap topShadowPixmap; | 62 Pixel armColor; |
69 Pixmap bottomShadowPixmap; | 63 Pixel armTopShadowColor; |
64 Pixel armBottomShadowColor; | |
70 | 65 |
71 int shadowThickness; | 66 Pixmap topShadowPixmap; |
67 Pixmap bottomShadowPixmap; | |
72 | 68 |
73 Boolean showArrows; | 69 int shadowThickness; |
74 | 70 |
75 int minimum; | 71 Boolean showArrows; |
76 int maximum; | |
77 int sliderSize; | |
78 int value; | |
79 int pageIncrement; | |
80 int increment; | |
81 | 72 |
82 int initialDelay; | 73 int minimum; |
83 int repeatDelay; | 74 int maximum; |
75 int sliderSize; | |
76 int value; | |
77 int pageIncrement; | |
78 int increment; | |
84 | 79 |
85 unsigned char orientation; | 80 int initialDelay; |
81 int repeatDelay; | |
86 | 82 |
87 char *sliderStyle; | 83 unsigned char orientation; |
88 char *arrowPosition; | |
89 | 84 |
90 /* private */ | 85 char *knobStyle; |
91 Pixmap grayPixmap; | 86 char *arrowPosition; |
92 | 87 |
93 GC backgroundGC; | 88 /* private */ |
94 GC topShadowGC; | 89 Pixmap grayPixmap; |
95 GC bottomShadowGC; | |
96 | 90 |
97 int above, ss, below; | 91 GC backgroundGC; |
98 int lastY; | 92 GC topShadowGC; |
93 GC bottomShadowGC; | |
99 | 94 |
100 enum { | 95 int above, ss, below; |
101 ARM_NONE, | 96 int lastY; |
102 ARM_SLIDER, | |
103 ARM_UP, | |
104 ARM_DOWN, | |
105 ARM_PAGEUP, | |
106 ARM_PAGEDOWN | |
107 } armed; | |
108 | 97 |
109 enum { | 98 int armed; |
110 FORCED_SCROLL_NONE, | |
111 FORCED_SCROLL_DOWNRIGHT, | |
112 FORCED_SCROLL_UPLEFT | |
113 } forced_scroll; | |
114 | 99 |
115 int savedValue; | 100 int savedValue; |
116 | 101 |
117 Boolean fullRedrawNext; | 102 Boolean fullRedrawNext; |
118 | |
119 Boolean timerActive; | |
120 XtIntervalId timerId; | |
121 | 103 |
122 } XlwScrollBarPart; | 104 } XlwScrollBarPart; |
123 | 105 |
124 typedef struct _XlwScrollBarRec | 106 typedef struct _XlwScrollBarRec { |
125 { | 107 CorePart core; |
126 CorePart core; | 108 XlwScrollBarPart sb; |
127 XlwScrollBarPart sb; | |
128 } XlwScrollBarRec; | 109 } XlwScrollBarRec; |
129 | 110 |
130 #endif /* _XlwScrollBarP_h */ | 111 #endif |