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.21 by ayin, Tue Feb 19 17:49:16 2008 UTC vs.
Revision 1.23 by root, Wed Nov 5 14:43:54 2008 UTC

44 STATE_MOTION, 44 STATE_MOTION,
45 STATE_UP, 45 STATE_UP,
46 STATE_DOWN, 46 STATE_DOWN,
47}; 47};
48 48
49struct scrollBar_t { 49struct scrollBar_t
50{
50 rxvt_term *term; 51 rxvt_term *term;
51 char state; /* scrollbar state */ 52 char state; /* scrollbar state */
52 char init; /* scrollbar has been initialised */ 53 char init; /* scrollbar has been initialised */
53 unsigned int beg; /* slider sub-window begin height */ 54 unsigned int beg; /* slider sub-window begin height */
54 unsigned int end; /* slider sub-window end height */ 55 unsigned int end; /* slider sub-window end height */
63 unsigned char align; 64 unsigned char align;
64 Window win; 65 Window win;
65 Cursor leftptr_cursor; 66 Cursor leftptr_cursor;
66 int (scrollBar_t::*update)(int); 67 int (scrollBar_t::*update)(int);
67 void setup (rxvt_term *); 68 void setup (rxvt_term *);
68 // update style dependent data
69 void update_data ();
70 void resize (); 69 void resize ();
71 int map (int); 70 int map (int);
72 int show (int); 71 int show (int);
73 void destroy (); 72 void destroy ();
74 73
127 126
128#if defined(PLAIN_SCROLLBAR) 127#if defined(PLAIN_SCROLLBAR)
129 GC pscrollbarGC; 128 GC pscrollbarGC;
130#endif 129#endif
131 130
131private:
132 // update style dependent data
133 void update_data ();
134
132 // scrollbar-next.C 135 // scrollbar-next.C
133 int show_next (int); 136 int show_next (int);
134 // scrollbar-rxvt.C 137 // scrollbar-rxvt.C
135 int show_rxvt (int); 138 int show_rxvt (int);
136 // scrollbar-xterm.C 139 // scrollbar-xterm.C
137 int show_xterm (int); 140 int show_xterm (int);
138 // scrollbar-plain.C 141 // scrollbar-plain.C
139 int show_plain (int); 142 int show_plain (int);
140 143
141private:
142 void init_next (); 144 void init_next ();
143}; 145};
144 146
145#define scrollbar_above_slider(y) ((y) < scrollBar.top) 147#define scrollbar_above_slider(y) ((y) < scrollBar.top)
146#define scrollbar_below_slider(y) ((y) > scrollBar.bot) 148#define scrollbar_below_slider(y) ((y) > scrollBar.bot)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines