From d7dab65e5b89f2a223fba00c62accee2d5313609 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sat, 9 Jan 2016 16:22:09 +0100 Subject: Making widget class, moving stuff around --- include/scrollbar.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'include/scrollbar.h') 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 +#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 -- cgit v1.2.3