… | |
… | |
63 | unsigned char align; |
63 | unsigned char align; |
64 | Window win; |
64 | Window win; |
65 | Cursor leftptr_cursor; |
65 | Cursor leftptr_cursor; |
66 | int (scrollBar_t::*update)(int); |
66 | int (scrollBar_t::*update)(int); |
67 | void setup (rxvt_term *); |
67 | void setup (rxvt_term *); |
68 | // update style dependent data |
|
|
69 | void update_data (); |
|
|
70 | void resize (); |
68 | void resize (); |
71 | int map (int); |
69 | int map (int); |
72 | int show (int); |
70 | int show (int); |
73 | void destroy (); |
71 | void destroy (); |
74 | |
72 | |
… | |
… | |
127 | |
125 | |
128 | #if defined(PLAIN_SCROLLBAR) |
126 | #if defined(PLAIN_SCROLLBAR) |
129 | GC pscrollbarGC; |
127 | GC pscrollbarGC; |
130 | #endif |
128 | #endif |
131 | |
129 | |
|
|
130 | private: |
|
|
131 | // update style dependent data |
|
|
132 | void update_data (); |
|
|
133 | |
132 | // scrollbar-next.C |
134 | // scrollbar-next.C |
133 | int show_next (int); |
135 | int show_next (int); |
134 | // scrollbar-rxvt.C |
136 | // scrollbar-rxvt.C |
135 | int show_rxvt (int); |
137 | int show_rxvt (int); |
136 | // scrollbar-xterm.C |
138 | // scrollbar-xterm.C |
137 | int show_xterm (int); |
139 | int show_xterm (int); |
138 | // scrollbar-plain.C |
140 | // scrollbar-plain.C |
139 | int show_plain (int); |
141 | int show_plain (int); |
140 | |
142 | |
141 | private: |
|
|
142 | void init_next (); |
143 | void init_next (); |
143 | }; |
144 | }; |
144 | |
145 | |
145 | #define scrollbar_above_slider(y) ((y) < scrollBar.top) |
146 | #define scrollbar_above_slider(y) ((y) < scrollBar.top) |
146 | #define scrollbar_below_slider(y) ((y) > scrollBar.bot) |
147 | #define scrollbar_below_slider(y) ((y) > scrollBar.bot) |