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.4 by ayin, Sat Dec 29 14:48:44 2007 UTC vs.
Revision 1.6 by ayin, Sun Dec 30 23:45:42 2007 UTC

13 unsigned int top; /* slider top position */ 13 unsigned int top; /* slider top position */
14 unsigned int bot; /* slider bottom position */ 14 unsigned int bot; /* slider bottom position */
15 unsigned int style; /* style: rxvt, xterm, next */ 15 unsigned int style; /* style: rxvt, xterm, next */
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 unsigned char align;
18 Window win; 19 Window win;
19 int (rxvt_term::*update)(int, int, int, int); 20 int (rxvt_term::*update)(int, int, int, int);
20 21
21 void setIdle() { state = 1 ; } 22 void setIdle() { state = 1 ; }
22 void setMotion() { state = 'm'; } 23 void setMotion() { state = 'm'; }
26 27
27#define scrollbar_TotalWidth() (scrollBar.width + scrollBar.shadow * 2) 28#define scrollbar_TotalWidth() (scrollBar.width + scrollBar.shadow * 2)
28#define scrollbar_isMotion() (scrollBar.state == 'm') 29#define scrollbar_isMotion() (scrollBar.state == 'm')
29#define scrollbar_isUp() (scrollBar.state == 'U') 30#define scrollbar_isUp() (scrollBar.state == 'U')
30#define scrollbar_isDn() (scrollBar.state == 'D') 31#define scrollbar_isDn() (scrollBar.state == 'D')
31#define scrollbar_isUpDn() isupper (scrollBar.state) 32#define scrollbar_isUpDn() (scrollbar_isUp () || scrollbar_isDn ())
32#define isScrollbarWindow(w) (scrollBar.state && (w) == scrollBar.win) 33#define isScrollbarWindow(w) (scrollBar.state && (w) == scrollBar.win)
33 34
34#define scrollbarnext_dnval() (scrollBar.end + (scrollBar.width + 1)) 35#define scrollbarnext_dnval() (scrollBar.end + (scrollBar.width + 1))
35#define scrollbarnext_upButton(y) ((y) > scrollBar.end \ 36#define scrollbarnext_upButton(y) ((y) > scrollBar.end \
36 && (y) <= scrollbarnext_dnval ()) 37 && (y) <= scrollbarnext_dnval ())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines