diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-12-28 12:57:58 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-12-28 12:57:58 +0100 |
commit | 77fdb081692a432c39606431e8ffbc4ee9ba2949 (patch) | |
tree | e320c2ddd31d693419545a9aef8451e9a967329d /include | |
parent | 843ccc1e41504db4ed9ab38b052747b112779332 (diff) |
Allow padding on scrollbar
Diffstat (limited to 'include')
-rw-r--r-- | include/widgets/scrollbar.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/widgets/scrollbar.h b/include/widgets/scrollbar.h index f1686ffe..0abfa521 100644 --- a/include/widgets/scrollbar.h +++ b/include/widgets/scrollbar.h @@ -23,16 +23,13 @@ typedef struct _scrollbar /** * @param name The name of the widget. - * @param x The x coordinate (relative to parent) to position the new scrollbar - * @param y The y coordinate (relative to parent) to position the new scrollbar - * @param w The width of the scrollbar - * @param h The height of the scrollbar + * @param width The width of the scrollbar * * Create a new scrollbar * * @returns the scrollbar object. */ -scrollbar *scrollbar_create ( const char *name, short x, short y, short w, short h ); +scrollbar *scrollbar_create ( const char *name, int width ); /** * @param sb scrollbar object @@ -66,5 +63,6 @@ void scrollbar_set_max_value ( scrollbar *sb, unsigned int max ); */ unsigned int scrollbar_clicked ( const scrollbar *sb, int y ); +void scrollbar_set_width ( scrollbar *sb, int width ); /*@}*/ #endif // ROFI_SCROLLBAR_H |