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.19 by ayin, Tue Feb 19 10:47:03 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 (rxvt_term::*update)(int, int, int, 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);
71 void destroy ();
74 72
75 bool upButton (int y) 73 bool upButton (int y)
76 { 74 {
77 if (style == R_SB_NEXT) 75 if (style == R_SB_NEXT)
78 return y > end && y <= end + width + 1; 76 return y > end && y <= end + width + 1;
98 } 96 }
99 unsigned total_width () 97 unsigned total_width ()
100 { 98 {
101 return width + shadow * 2; 99 return width + shadow * 2;
102 } 100 }
101
102#if defined(NEXT_SCROLLBAR)
103 GC blackGC,
104 whiteGC,
105 grayGC,
106 darkGC,
107 stippleGC;
108 Pixmap dimple,
109 upArrow,
110 downArrow,
111 upArrowHi,
112 downArrowHi;
113#endif
114
115#if defined(RXVT_SCROLLBAR)
116 GC scrollbarGC,
117 topShadowGC,
118 botShadowGC;
119#endif
120
121#if defined(XTERM_SCROLLBAR)
122 GC xscrollbarGC,
123 ShadowGC;
124#endif
125
126#if defined(PLAIN_SCROLLBAR)
127 GC pscrollbarGC;
128#endif
129
130private:
131 // update style dependent data
132 void update_data ();
133
134 // scrollbar-next.C
135 int show_next (int);
136 // scrollbar-rxvt.C
137 int show_rxvt (int);
138 // scrollbar-xterm.C
139 int show_xterm (int);
140 // scrollbar-plain.C
141 int show_plain (int);
142
143 void init_next ();
103}; 144};
104 145
105#define scrollbar_above_slider(y) ((y) < scrollBar.top) 146#define scrollbar_above_slider(y) ((y) < scrollBar.top)
106#define scrollbar_below_slider(y) ((y) > scrollBar.bot) 147#define scrollbar_below_slider(y) ((y) > scrollBar.bot)
107#define scrollbar_position(y) ((y) - scrollBar.beg) 148#define scrollbar_position(y) ((y) - scrollBar.beg)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines