Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (22 sloc) 0.97 kb
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
1 /* xscroll.h */
2
3 typedef enum { X_SB_REDRAW, X_SB_NORMAL, X_SB_BLANK, X_SB_STOP } X_SCROLLSTATE;
4
5 typedef struct
6 {
7 Window win; /* scrollbar subwindow */
8 int x, y; /* position of scrollbar within app window */
9 unsigned w, h; /* total size of the scrollbar */
10 unsigned width; /* width of the page/thumb area */
11 unsigned height; /* height of page/thumb area */
12 unsigned offset; /* top of page/thumb area */
13 unsigned top; /* top of thumb */
14 unsigned bottom; /* bottom of thumb */
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
15 ELVBOOL recolored; /* have colors changed lately? */
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
16 X_SCROLLSTATE state; /* scrollbar state */
17 } X_SCROLLBAR;
18
19 void x_sb_predict P_((X11WIN *xw, unsigned w, unsigned h));
20 void x_sb_create P_((X11WIN *xw, int x, int y));
21 void x_sb_destroy P_((X11WIN *xw));
22 void x_sb_setstate P_((X11WIN *xw, X_SCROLLSTATE newstate));
23 void x_sb_thumb P_((X11WIN *xw, long top, long bottom, long total));
24 void x_sb_event P_((X11WIN *xw, XEvent *event));
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
25 void x_sb_recolor P_((X11WIN *xw));
Something went wrong with that request. Please try again.