ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/scrollbar.h
(Generate patch)

Comparing rxvt-unicode/src/scrollbar.h (file contents):
Revision 1.24 by sf-exg, Mon Aug 22 17:09:46 2011 UTC vs.
Revision 1.25 by sf-exg, Mon Aug 22 17:23:56 2011 UTC

102 } 102 }
103 unsigned total_width () 103 unsigned total_width ()
104 { 104 {
105 return width + shadow * 2; 105 return width + shadow * 2;
106 } 106 }
107 bool above_slider (int y)
108 {
109 return y < top;
110 }
111 bool below_slider (int y)
112 {
113 return y > bot;
114 }
115 int position (int y)
116 {
117 return y - beg;
118 }
119
107 120
108#if defined(NEXT_SCROLLBAR) 121#if defined(NEXT_SCROLLBAR)
109 GC blackGC, 122 GC blackGC,
110 whiteGC, 123 whiteGC,
111 grayGC, 124 grayGC,
146 // scrollbar-plain.C 159 // scrollbar-plain.C
147 int show_plain (int); 160 int show_plain (int);
148 161
149 void init_next (); 162 void init_next ();
150}; 163};
151
152#define scrollbar_above_slider(y) ((y) < scrollBar.top)
153#define scrollbar_below_slider(y) ((y) > scrollBar.bot)
154#define scrollbar_position(y) ((y) - scrollBar.beg)
155 164
156 /* 165 /*
157 * +-------------+ 166 * +-------------+
158 * | | <---< SB_PADDING 167 * | | <---< SB_PADDING
159 * | ::::::::::: | 168 * | ::::::::::: |

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines