Mercurial > hg > xemacs-beta
comparison lwlib/xlwscrollbarP.h @ 102:a145efe76779 r20-1b3
Import from CVS: tag r20-1b3
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:15:49 +0200 |
parents | c0c698873ce1 |
children | e121b013d1f0 |
comparison
equal
deleted
inserted
replaced
101:a0ec055d74dd | 102:a145efe76779 |
---|---|
25 | 25 |
26 | 26 |
27 /* | 27 /* |
28 ** Widget class | 28 ** Widget class |
29 */ | 29 */ |
30 typedef struct { | 30 typedef struct |
31 int dummy_field; /* keep compiler happy */ | 31 { |
32 int dummy_field; /* keep compiler happy */ | |
32 } XlwScrollBarClassPart; | 33 } XlwScrollBarClassPart; |
33 | 34 |
34 typedef struct _XlwScrollbarClassRec { | 35 typedef struct _XlwScrollbarClassRec |
35 CoreClassPart core_class; | 36 { |
36 XlwScrollBarClassPart scrollbar_class; | 37 CoreClassPart core_class; |
38 XlwScrollBarClassPart scrollbar_class; | |
37 } XlwScrollBarClassRec; | 39 } XlwScrollBarClassRec; |
38 | 40 |
39 | 41 |
40 /* | 42 /* |
41 ** Widget instance | 43 ** Widget instance |
42 */ | 44 */ |
43 typedef struct { | 45 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; | |
44 | 56 |
45 /* resources */ | 57 Pixel foreground; |
46 XtCallbackList valueChangedCBL; | |
47 XtCallbackList incrementCBL; | |
48 XtCallbackList decrementCBL; | |
49 XtCallbackList pageIncrementCBL; | |
50 XtCallbackList pageDecrementCBL; | |
51 XtCallbackList toTopCBL; | |
52 XtCallbackList toBottomCBL; | |
53 XtCallbackList dragCBL; | |
54 | 58 |
55 Pixel foreground; | 59 Pixel topShadowColor; |
60 Pixel bottomShadowColor; | |
56 | 61 |
57 Pixel topShadowColor; | 62 Pixel troughColor; |
58 Pixel bottomShadowColor; | |
59 | 63 |
60 Pixel troughColor; | 64 Pixel armColor; |
65 Pixel armTopShadowColor; | |
66 Pixel armBottomShadowColor; | |
61 | 67 |
62 Pixel armColor; | 68 Pixmap topShadowPixmap; |
63 Pixel armTopShadowColor; | 69 Pixmap bottomShadowPixmap; |
64 Pixel armBottomShadowColor; | |
65 | 70 |
66 Pixmap topShadowPixmap; | 71 int shadowThickness; |
67 Pixmap bottomShadowPixmap; | |
68 | 72 |
69 int shadowThickness; | 73 Boolean showArrows; |
70 | 74 |
71 Boolean showArrows; | 75 int minimum; |
76 int maximum; | |
77 int sliderSize; | |
78 int value; | |
79 int pageIncrement; | |
80 int increment; | |
72 | 81 |
73 int minimum; | 82 int initialDelay; |
74 int maximum; | 83 int repeatDelay; |
75 int sliderSize; | |
76 int value; | |
77 int pageIncrement; | |
78 int increment; | |
79 | 84 |
80 int initialDelay; | 85 unsigned char orientation; |
81 int repeatDelay; | |
82 | 86 |
83 unsigned char orientation; | 87 char *sliderStyle; |
88 char *arrowPosition; | |
84 | 89 |
85 char *knobStyle; | 90 /* private */ |
86 char *arrowPosition; | 91 Pixmap grayPixmap; |
87 | 92 |
88 /* private */ | 93 GC backgroundGC; |
89 Pixmap grayPixmap; | 94 GC topShadowGC; |
95 GC bottomShadowGC; | |
90 | 96 |
91 GC backgroundGC; | 97 int above, ss, below; |
92 GC topShadowGC; | 98 int lastY; |
93 GC bottomShadowGC; | |
94 | 99 |
95 int above, ss, below; | 100 enum { |
96 int lastY; | 101 ARM_NONE, |
102 ARM_SLIDER, | |
103 ARM_UP, | |
104 ARM_DOWN, | |
105 ARM_PAGEUP, | |
106 ARM_PAGEDOWN | |
107 } armed; | |
97 | 108 |
98 int armed; | 109 enum { |
110 FORCED_SCROLL_NONE, | |
111 FORCED_SCROLL_DOWNRIGHT, | |
112 FORCED_SCROLL_UPLEFT | |
113 } forced_scroll; | |
99 | 114 |
100 int savedValue; | 115 int savedValue; |
101 | 116 |
102 Boolean fullRedrawNext; | 117 Boolean fullRedrawNext; |
103 | 118 |
104 Boolean timerActive; | 119 Boolean timerActive; |
105 XtIntervalId timerId; | 120 XtIntervalId timerId; |
106 | 121 |
107 } XlwScrollBarPart; | 122 } XlwScrollBarPart; |
108 | 123 |
109 typedef struct _XlwScrollBarRec { | 124 typedef struct _XlwScrollBarRec |
110 CorePart core; | 125 { |
111 XlwScrollBarPart sb; | 126 CorePart core; |
127 XlwScrollBarPart sb; | |
112 } XlwScrollBarRec; | 128 } XlwScrollBarRec; |
113 | 129 |
114 #endif | 130 #endif /* _XlwScrollBarP_h */ |