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.20 by ayin, Tue Feb 19 13:01:33 2008 UTC vs.
Revision 1.22 by ayin, Tue Feb 19 17:49:36 2008 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines