diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-01-09 16:22:09 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-01-09 16:22:09 +0100 |
commit | d7dab65e5b89f2a223fba00c62accee2d5313609 (patch) | |
tree | b1eb366a352f7ff07672c09d351fb98986fe367a /include/scrollbar.h | |
parent | 06c7f30b7e39775698ab241583adb0b23d4ac4bd (diff) |
Making widget class, moving stuff around
Diffstat (limited to 'include/scrollbar.h')
-rw-r--r-- | include/scrollbar.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/scrollbar.h b/include/scrollbar.h index e3312854..960d241c 100644 --- a/include/scrollbar.h +++ b/include/scrollbar.h @@ -1,6 +1,7 @@ #ifndef ROFI_SCROLLBAR_H #define ROFI_SCROLLBAR_H #include <cairo.h> +#include "widget.h" /** * @defgroup Scrollbar Scrollbar @@ -13,7 +14,7 @@ */ typedef struct _scrollbar { - short x, y, w, h; + Widget widget; unsigned int length; unsigned int pos; unsigned int pos_length; @@ -89,14 +90,5 @@ unsigned int scrollbar_clicked ( scrollbar *sb, int y ); */ void scrollbar_resize ( scrollbar *sb, int w, int h ); -/** - * @param sb scrollbar object - * @param x x pos in pixels - * @param y y pos in pixels - * - * Move the scrollbar. - */ -void scrollbar_move ( scrollbar *sb, int x, int y ); - /*@}*/ #endif // ROFI_SCROLLBAR_H |