diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-11-06 10:11:51 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-11-06 10:11:51 +0000 |
commit | 6a1161b634e43225ae12bf669ad3bbe1ea1edab0 (patch) | |
tree | 57a5b054cca637e51263077e8405bb83c62d53e2 /apps/gui/list.h | |
parent | 2f444aac2910cebeed988ea22d442456a4729ea4 (diff) |
dont allow the volume setting to wrap
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11445 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r-- | apps/gui/list.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h index 914563a597..e61780ffe3 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -26,6 +26,12 @@ #define SCROLLBAR_WIDTH 6 +enum list_wrap { + LIST_WRAP_ON = 0, + LIST_WRAP_OFF, + LIST_WRAP_UNLESS_HELD, +}; + /* * The gui_list is based on callback functions, if you want the list * to display something you have to provide it a function that @@ -312,10 +318,13 @@ void gui_synclist_scroll_left(struct gui_synclist * lists); * returns the action taken if any, 0 else * - lists : the synchronized lists * - button : the keycode of a pressed button + * - specifies weather to allow the list to wrap or not, values at top of page * returned value : * - ACTION_STD_NEXT when moving forward (next item or pgup) * - ACTION_STD_PREV when moving backward (previous item or pgdown) */ -extern unsigned gui_synclist_do_button(struct gui_synclist * lists, unsigned button); +extern unsigned gui_synclist_do_button(struct gui_synclist * lists, + unsigned button, + enum list_wrap); #endif /* _GUI_LIST_H_ */ |