… | |
… | |
16 | STATE_UP, |
16 | STATE_UP, |
17 | STATE_DOWN, |
17 | STATE_DOWN, |
18 | }; |
18 | }; |
19 | |
19 | |
20 | struct scrollBar_t { |
20 | struct scrollBar_t { |
|
|
21 | rxvt_term *term; |
21 | char state; /* scrollbar state */ |
22 | char state; /* scrollbar state */ |
22 | char init; /* scrollbar has been initialised */ |
23 | char init; /* scrollbar has been initialised */ |
23 | unsigned int beg; /* slider sub-window begin height */ |
24 | unsigned int beg; /* slider sub-window begin height */ |
24 | unsigned int end; /* slider sub-window end height */ |
25 | unsigned int end; /* slider sub-window end height */ |
25 | unsigned int top; /* slider top position */ |
26 | unsigned int top; /* slider top position */ |
… | |
… | |
33 | int len; |
34 | int len; |
34 | unsigned char align; |
35 | unsigned char align; |
35 | Window win; |
36 | Window win; |
36 | Cursor leftptr_cursor; |
37 | Cursor leftptr_cursor; |
37 | int (rxvt_term::*update)(int, int, int, int); |
38 | int (rxvt_term::*update)(int, int, int, int); |
|
|
39 | void setup (rxvt_term *); |
38 | |
40 | |
39 | bool upButton (int y) |
41 | bool upButton (int y) |
40 | { |
42 | { |
41 | if (style == R_SB_NEXT) |
43 | if (style == R_SB_NEXT) |
42 | return y > end && y <= end + width + 1; |
44 | return y > end && y <= end + width + 1; |