summaryrefslogtreecommitdiff
path: root/apps/menu.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-03-12 10:20:33 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-03-12 10:20:33 +0000
commit10b92c44b3bac97e01be91409df6e7ccb94ea045 (patch)
tree4f98b439e02091abcfe5fe977f5179a9ac86e646 /apps/menu.h
parent5c09ed38c6dc19fd03eb47971433993d7afd8605 (diff)
downloadrockbox-10b92c44b3bac97e01be91409df6e7ccb94ea045.tar.gz
rockbox-10b92c44b3bac97e01be91409df6e7ccb94ea045.zip
First step towards context sensitive and configurable menus, by Brent Coutts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4370 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.h')
-rw-r--r--apps/menu.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/menu.h b/apps/menu.h
index 632db87e4b..827de1da36 100644
--- a/apps/menu.h
+++ b/apps/menu.h
@@ -27,7 +27,7 @@ struct menu_items {
27 bool (*function) (void); /* return true if USB was connected */ 27 bool (*function) (void); /* return true if USB was connected */
28}; 28};
29 29
30int menu_init(struct menu_items* items, int count); 30int menu_init(struct menu_items* items, int count, int (*callback) (int keycode, int menu));
31void menu_exit(int menu); 31void menu_exit(int menu);
32 32
33void put_cursorxy(int x, int y, bool on); 33void put_cursorxy(int x, int y, bool on);
@@ -38,6 +38,13 @@ int menu_show(int m);
38#define MENU_SELECTED_EXIT -2 38#define MENU_SELECTED_EXIT -2
39 39
40bool menu_run(int menu); 40bool menu_run(int menu);
41int menu_cursor(int menu);
42char* menu_description(int menu, int position);
43void menu_delete(int menu, int position);
44int menu_count(int menu);
45bool menu_moveup(int menu);
46bool menu_movedown(int menu);
47void menu_draw(int menu);
41 48
42#endif /* End __MENU_H__ */ 49#endif /* End __MENU_H__ */
43 50