summaryrefslogtreecommitdiff
path: root/apps/gui/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r--apps/gui/list.h11
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 @@
26 26
27#define SCROLLBAR_WIDTH 6 27#define SCROLLBAR_WIDTH 6
28 28
29enum list_wrap {
30 LIST_WRAP_ON = 0,
31 LIST_WRAP_OFF,
32 LIST_WRAP_UNLESS_HELD,
33};
34
29/* 35/*
30 * The gui_list is based on callback functions, if you want the list 36 * The gui_list is based on callback functions, if you want the list
31 * to display something you have to provide it a function that 37 * to display something you have to provide it a function that
@@ -312,10 +318,13 @@ void gui_synclist_scroll_left(struct gui_synclist * lists);
312 * returns the action taken if any, 0 else 318 * returns the action taken if any, 0 else
313 * - lists : the synchronized lists 319 * - lists : the synchronized lists
314 * - button : the keycode of a pressed button 320 * - button : the keycode of a pressed button
321 * - specifies weather to allow the list to wrap or not, values at top of page
315 * returned value : 322 * returned value :
316 * - ACTION_STD_NEXT when moving forward (next item or pgup) 323 * - ACTION_STD_NEXT when moving forward (next item or pgup)
317 * - ACTION_STD_PREV when moving backward (previous item or pgdown) 324 * - ACTION_STD_PREV when moving backward (previous item or pgdown)
318 */ 325 */
319extern unsigned gui_synclist_do_button(struct gui_synclist * lists, unsigned button); 326extern unsigned gui_synclist_do_button(struct gui_synclist * lists,
327 unsigned button,
328 enum list_wrap);
320 329
321#endif /* _GUI_LIST_H_ */ 330#endif /* _GUI_LIST_H_ */