diff options
author | QC <qball@gmpclient.org> | 2015-09-26 20:34:34 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-09-26 20:34:34 +0200 |
commit | 8f1f03e6d23bd2fb6d3a9362c3cd9e0df779184f (patch) | |
tree | 86290109aedfda2a25fa066bfffb0ea1804ec7eb /include/scrollbar.h | |
parent | 29e81fdb078a7f19e062c2f6d711b074969503d4 (diff) |
Use cairo to do drawing.
Diffstat (limited to 'include/scrollbar.h')
-rw-r--r-- | include/scrollbar.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/include/scrollbar.h b/include/scrollbar.h index 2e07468d..0b535ea8 100644 --- a/include/scrollbar.h +++ b/include/scrollbar.h @@ -1,14 +1,12 @@ #ifndef ROFI_SCROLLBAR_H #define ROFI_SCROLLBAR_H - +#include <cairo.h> /** * Internal structure for the scrollbar. */ typedef struct _scrollbar { - Window window, parent; short x, y, w, h; - GC gc; unsigned int length; unsigned int pos; unsigned int pos_length; @@ -27,22 +25,7 @@ typedef struct _scrollbar * * @returns the scrollbar object. */ -scrollbar *scrollbar_create ( Window parent, XVisualInfo *vinfo, Colormap map, - short x, short y, short w, short h ); - -/** - * @param sb scrollbar object - * - * Hide (unmap) the scrollbar. - */ -void scrollbar_hide ( scrollbar *sb ); - -/** - * @param sb scrollbar object - * - * Show (map) the scrollbar. - */ -void scrollbar_show ( scrollbar *sb ); +scrollbar *scrollbar_create ( short x, short y, short w, short h ); /** * @param sb scrollbar object @@ -80,7 +63,7 @@ void scrollbar_set_max_value ( scrollbar *sb, unsigned int max ); * * Draw the scrollbar, used after expose event or update */ -void scrollbar_draw ( scrollbar *sb ); +void scrollbar_draw ( scrollbar *sb, cairo_t *draw ); /** * @param sb scrollbar object |