… | |
… | |
74 | void setup (rxvt_term *); |
74 | void setup (rxvt_term *); |
75 | void resize (); |
75 | void resize (); |
76 | void map (int); |
76 | void map (int); |
77 | int show (int); |
77 | int show (int); |
78 | void destroy (); |
78 | void destroy (); |
|
|
79 | int color (); |
79 | |
80 | |
80 | bool upButton (int y) |
81 | bool upButton (int y) |
81 | { |
82 | { |
82 | if (style == SB_STYLE_NEXT) |
83 | if (style == SB_STYLE_NEXT) |
83 | return y > end && y <= end + width + 1; |
84 | return y > end && y <= end + width + 1; |
… | |
… | |
97 | { |
98 | { |
98 | return style == SB_STYLE_NEXT ? SB_THUMB_MIN_HEIGHT : 10; |
99 | return style == SB_STYLE_NEXT ? SB_THUMB_MIN_HEIGHT : 10; |
99 | } |
100 | } |
100 | int size () |
101 | int size () |
101 | { |
102 | { |
102 | return max (end - beg - min_height (), 0); |
103 | return max (end - beg, 0); |
103 | } |
104 | } |
104 | int total_width () |
105 | int total_width () |
105 | { |
106 | { |
106 | return width + shadow * 2; |
107 | return width + shadow * 2; |
107 | } |
108 | } |