diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-09-03 22:12:20 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-09-03 22:12:20 +0200 |
commit | 4bbbecd17d2b890b686e07c0ba0048ee4eb520dc (patch) | |
tree | 6b06aee6c6f078d4cf9ac9b4041caf7516129f67 /include/scrollbar.h | |
parent | d16bf26bf8cb01331d3ad93fbe157d594a0deec1 (diff) |
Add scrollbar source code.
Diffstat (limited to 'include/scrollbar.h')
-rw-r--r-- | include/scrollbar.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/scrollbar.h b/include/scrollbar.h new file mode 100644 index 00000000..37a4663f --- /dev/null +++ b/include/scrollbar.h @@ -0,0 +1,24 @@ +#ifndef ROFI_SCROLLBAR_H +#define ROFI_SCROLLBAR_H + +typedef struct _scrollbar +{ + Window window, parent; + short x, y, w, h; + GC gc; + unsigned int length; + unsigned int pos; + unsigned int pos_length; +} scrollbar; + +scrollbar *scrollbar_create ( Window parent, XVisualInfo *vinfo, Colormap map, + short x, short y, short w, short h ); + +void scrollbar_hide ( scrollbar *sb ); +void scrollbar_show ( scrollbar *sb ); +void scrollbar_free ( scrollbar *sb ); +void scrollbar_set_pos_length ( scrollbar *sb, unsigned int pos_length ); +void scrollbar_set_pos ( scrollbar *sb, unsigned int pos ); +void scrollbar_set_length ( scrollbar *sb, unsigned int length ); +void scrollbar_draw ( scrollbar *sb ); +#endif // ROFI_SCROLLBAR_H |