summaryrefslogtreecommitdiff
path: root/apps/gui/list.h
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2005-10-30 22:34:51 +0000
committerKevin Ferrare <kevin@rockbox.org>2005-10-30 22:34:51 +0000
commitdb8415c99e37b1ee2b152625d36e84cb9bbf690d (patch)
treebd4ff98ebf76d79221d0f511daae879c66e78a28 /apps/gui/list.h
parentfca6b63ef7310a36010d843f295e37ec368febf8 (diff)
downloadrockbox-db8415c99e37b1ee2b152625d36e84cb9bbf690d.zip
rockbox-db8415c99e37b1ee2b152625d36e84cb9bbf690d.tar.gz
rockbox-db8415c99e37b1ee2b152625d36e84cb9bbf690d.tar.bz2
rockbox-db8415c99e37b1ee2b152625d36e84cb9bbf690d.tar.xz
Partial menus support on remote (only browsing is working, changing option isn't), corrected a bug in gui_list about scrollbar beeing displayed sometimes when it musn't
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7693 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r--apps/gui/list.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h
index 012251b..cb488c2 100644
--- a/apps/gui/list.h
+++ b/apps/gui/list.h
@@ -135,6 +135,13 @@ extern void gui_list_init(struct gui_list * gui_list,
(gui_list)->nb_items = nb
/*
+ * Returns the numbers of items currently in the list
+ * - gui_list : the list structure to initialize
+ */
+#define gui_list_get_nb_items(gui_list) \
+ (gui_list)->nb_items
+
+/*
* Puts the selection in the screen
* - gui_list : the list structure
* - put_from_end : if true, selection will be put as close from
@@ -161,6 +168,7 @@ extern void gui_list_set_display(struct gui_list * gui_list,
#define gui_list_get_sel_pos(gui_list) \
(gui_list)->selected_item
+
/*
* Selects an item in the list
* - gui_list : the list structure
@@ -251,6 +259,8 @@ extern void gui_synclist_init(
);
extern void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items);
+#define gui_synclist_get_nb_items(lists) \
+ gui_list_get_nb_items(&((lists)->gui_list[0]))
extern int gui_synclist_get_sel_pos(struct gui_synclist * lists);
#define gui_synclist_get_sel_pos(lists) \