diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-12-11 17:06:31 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-12-11 17:06:31 +0100 |
commit | 78abbeb7101da0cb1eb708d915fc918b945b0970 (patch) | |
tree | 6b6873289bb5a42d17d715e2ea6913c7c7ae9666 /include | |
parent | 5e371eedeb5b18ad01e208c6b22d3d93fc8257f2 (diff) |
Textbox uses new theme engine..
Diffstat (limited to 'include')
-rw-r--r-- | include/widgets/listview.h | 33 | ||||
-rw-r--r-- | include/widgets/scrollbar.h | 3 | ||||
-rw-r--r-- | include/widgets/textbox.h | 4 |
3 files changed, 6 insertions, 34 deletions
diff --git a/include/widgets/listview.h b/include/widgets/listview.h index ba104e60..f20cf18a 100644 --- a/include/widgets/listview.h +++ b/include/widgets/listview.h @@ -48,7 +48,7 @@ typedef void ( *listview_mouse_activated_cb )( listview *, xcb_button_press_even * * @returns a new listview */ -listview *listview_create ( listview_update_callback cb, void *udata, unsigned int eh ); +listview *listview_create ( const char *name, listview_update_callback cb, void *udata, unsigned int eh ); /** * @param lv The listview handle @@ -133,37 +133,6 @@ void listview_nav_page_prev ( listview *lv ); /** * @param lv Handler to the listview object - * @param padding The padding - * - * Padding on between the widgets. - */ -void listview_set_padding ( listview *lv, unsigned int padding ); - -/** - * @param lv Handler to the listview object - * @param lines The maximum number of lines - * - * Set the maximum number of lines to show. - */ -void listview_set_max_lines ( listview *lv, unsigned int lines ); - -/** - * @param lv Handler to the listview object - * @param columns The maximum number of columns - * - * Set the maximum number of columns to show. - */ -void listview_set_max_columns ( listview *lv, unsigned int columns ); - -/** - * @param lv Handler to the listview object - * @param enabled enable - * - * Set fixed num lines mode. - */ -void listview_set_fixed_num_lines ( listview *lv, gboolean enabled ); -/** - * @param lv Handler to the listview object * @param enabled enable * * Hide the scrollbar. diff --git a/include/widgets/scrollbar.h b/include/widgets/scrollbar.h index d03c03ad..f1686ffe 100644 --- a/include/widgets/scrollbar.h +++ b/include/widgets/scrollbar.h @@ -22,6 +22,7 @@ typedef struct _scrollbar } 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 @@ -31,7 +32,7 @@ typedef struct _scrollbar * * @returns the scrollbar object. */ -scrollbar *scrollbar_create ( short x, short y, short w, short h ); +scrollbar *scrollbar_create ( const char *name, short x, short y, short w, short h ); /** * @param sb scrollbar object diff --git a/include/widgets/textbox.h b/include/widgets/textbox.h index b40f3978..446a39a6 100644 --- a/include/widgets/textbox.h +++ b/include/widgets/textbox.h @@ -39,6 +39,8 @@ typedef struct int update; int blink; guint blink_timeout; + // + char *theme_name ; } textbox; /** @@ -97,7 +99,7 @@ typedef enum * free with #widget_free * @returns a new #textbox */ -textbox* textbox_create ( TextboxFlags flags, +textbox* textbox_create ( const char *name, TextboxFlags flags, short x, short y, short w, short h, TextBoxFontType tbft, const char *text ); |