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.20 by ayin, Tue Feb 19 13:01:33 2008 UTC

62 int last_state; /* scrollbar last state */ 62 int last_state; /* scrollbar last state */
63 int len; 63 int len;
64 unsigned char align; 64 unsigned char align;
65 Window win; 65 Window win;
66 Cursor leftptr_cursor; 66 Cursor leftptr_cursor;
67 int (rxvt_term::*update)(int, int, int, int); 67 int (scrollBar_t::*update)(int);
68 void setup (rxvt_term *); 68 void setup (rxvt_term *);
69 // update style dependent data 69 // update style dependent data
70 void update_data (); 70 void update_data ();
71 void resize (); 71 void resize ();
72 int map (int); 72 int map (int);
73 int show (int); 73 int show (int);
74 void destroy ();
74 75
75 bool upButton (int y) 76 bool upButton (int y)
76 { 77 {
77 if (style == R_SB_NEXT) 78 if (style == R_SB_NEXT)
78 return y > end && y <= end + width + 1; 79 return y > end && y <= end + width + 1;
98 } 99 }
99 unsigned total_width () 100 unsigned total_width ()
100 { 101 {
101 return width + shadow * 2; 102 return width + shadow * 2;
102 } 103 }
104
105#if defined(NEXT_SCROLLBAR)
106 GC blackGC,
107 whiteGC,
108 grayGC,
109 darkGC,
110 stippleGC;
111 Pixmap dimple,
112 upArrow,
113 downArrow,
114 upArrowHi,
115 downArrowHi;
116#endif
117
118#if defined(RXVT_SCROLLBAR)
119 GC scrollbarGC,
120 topShadowGC,
121 botShadowGC;
122#endif
123
124#if defined(XTERM_SCROLLBAR)
125 GC xscrollbarGC,
126 ShadowGC;
127#endif
128
129#if defined(PLAIN_SCROLLBAR)
130 GC pscrollbarGC;
131#endif
132
133 // scrollbar-next.C
134 int show_next (int);
135 // scrollbar-rxvt.C
136 int show_rxvt (int);
137 // scrollbar-xterm.C
138 int show_xterm (int);
139 // scrollbar-plain.C
140 int show_plain (int);
141
142private:
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