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.7 by ayin, Mon Dec 31 01:05:51 2007 UTC vs.
Revision 1.9 by ayin, Tue Jan 1 21:14:39 2008 UTC

16 unsigned int width; /* scrollbar width */ 16 unsigned int width; /* scrollbar width */
17 int shadow; /* scrollbar shadow width */ 17 int shadow; /* scrollbar shadow width */
18 int last_bot; /* scrollbar last bottom position */ 18 int last_bot; /* scrollbar last bottom position */
19 int last_top; /* scrollbar last top position */ 19 int last_top; /* scrollbar last top position */
20 int last_state; /* scrollbar last state */ 20 int last_state; /* scrollbar last state */
21 int len;
21 unsigned char align; 22 unsigned char align;
22 Window win; 23 Window win;
23 int (rxvt_term::*update)(int, int, int, int); 24 int (rxvt_term::*update)(int, int, int, int);
24 25
25 void setIdle() { state = 1 ; } 26 void setIdle() { state = 1 ; }
31#define scrollbar_TotalWidth() (scrollBar.width + scrollBar.shadow * 2) 32#define scrollbar_TotalWidth() (scrollBar.width + scrollBar.shadow * 2)
32#define scrollbar_isMotion() (scrollBar.state == 'm') 33#define scrollbar_isMotion() (scrollBar.state == 'm')
33#define scrollbar_isUp() (scrollBar.state == 'U') 34#define scrollbar_isUp() (scrollBar.state == 'U')
34#define scrollbar_isDn() (scrollBar.state == 'D') 35#define scrollbar_isDn() (scrollBar.state == 'D')
35#define scrollbar_isUpDn() (scrollbar_isUp () || scrollbar_isDn ()) 36#define scrollbar_isUpDn() (scrollbar_isUp () || scrollbar_isDn ())
36#define isScrollbarWindow(w) (scrollBar.state && (w) == scrollBar.win)
37 37
38#define scrollbarnext_dnval() (scrollBar.end + (scrollBar.width + 1)) 38#define scrollbarnext_dnval() (scrollBar.end + (scrollBar.width + 1))
39#define scrollbarnext_upButton(y) ((y) > scrollBar.end \ 39#define scrollbarnext_upButton(y) ((y) > scrollBar.end \
40 && (y) <= scrollbarnext_dnval ()) 40 && (y) <= scrollbarnext_dnval ())
41#define scrollbarnext_dnButton(y) ((y) > scrollbarnext_dnval()) 41#define scrollbarnext_dnButton(y) ((y) > scrollbarnext_dnval())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines