diff options
author | Dave Chapman <dave@dchapman.com> | 2006-08-15 08:14:46 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-08-15 08:14:46 +0000 |
commit | 079ad11896d68f16f23880f4de869bbb47617c19 (patch) | |
tree | 54e7d33c26da5dfe8d432f2affffbb00273ac8e3 /apps/gui/list.h | |
parent | edf3bcf15b2e3d2c0e16f25cf565ab3338a1d6c0 (diff) | |
download | rockbox-079ad11896d68f16f23880f4de869bbb47617c19.tar.gz rockbox-079ad11896d68f16f23880f4de869bbb47617c19.zip |
Patch #5795 from Jonathan Gordon - change the settings display for enumerations and integers to use the list widget. Patch also adds an optional title to the list widget which is used in the settings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10576 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r-- | apps/gui/list.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h index f0a6d3f32c..447e0d832d 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h | |||
@@ -168,6 +168,8 @@ struct gui_list | |||
168 | int selected_size; | 168 | int selected_size; |
169 | /* The data that will be passed to the callback function YOU implement */ | 169 | /* The data that will be passed to the callback function YOU implement */ |
170 | void * data; | 170 | void * data; |
171 | /* The optional title, set to NULL for none */ | ||
172 | char *title; | ||
171 | }; | 173 | }; |
172 | 174 | ||
173 | /* | 175 | /* |
@@ -332,7 +334,10 @@ extern void gui_list_del_item(struct gui_list * gui_list); | |||
332 | */ | 334 | */ |
333 | extern void gui_list_flash(struct gui_list * gui_list); | 335 | extern void gui_list_flash(struct gui_list * gui_list); |
334 | 336 | ||
335 | 337 | /* | |
338 | * Set the title of the list, setting to NULL disables the title | ||
339 | */ | ||
340 | extern void gui_list_set_title(struct gui_list *gui_list , char* title); | ||
336 | /* | 341 | /* |
337 | * This part handles as many lists as there are connected screens | 342 | * This part handles as many lists as there are connected screens |
338 | * (the api is similar to the ones above) | 343 | * (the api is similar to the ones above) |
@@ -373,6 +378,7 @@ extern void gui_synclist_add_item(struct gui_synclist * lists); | |||
373 | extern void gui_synclist_del_item(struct gui_synclist * lists); | 378 | extern void gui_synclist_del_item(struct gui_synclist * lists); |
374 | extern void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll); | 379 | extern void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll); |
375 | extern void gui_synclist_flash(struct gui_synclist * lists); | 380 | extern void gui_synclist_flash(struct gui_synclist * lists); |
381 | extern void gui_synclist_set_title(struct gui_synclist * lists, char* title); | ||
376 | void gui_synclist_scroll_right(struct gui_synclist * lists); | 382 | void gui_synclist_scroll_right(struct gui_synclist * lists); |
377 | void gui_synclist_scroll_left(struct gui_synclist * lists); | 383 | void gui_synclist_scroll_left(struct gui_synclist * lists); |
378 | 384 | ||