summaryrefslogtreecommitdiffstats
path: root/include/scrollbar.h
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-09 16:22:09 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-09 16:22:09 +0100
commitd7dab65e5b89f2a223fba00c62accee2d5313609 (patch)
treeb1eb366a352f7ff07672c09d351fb98986fe367a /include/scrollbar.h
parent06c7f30b7e39775698ab241583adb0b23d4ac4bd (diff)
Making widget class, moving stuff around
Diffstat (limited to 'include/scrollbar.h')
-rw-r--r--include/scrollbar.h12
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