diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-03-12 10:20:33 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-03-12 10:20:33 +0000 |
commit | 10b92c44b3bac97e01be91409df6e7ccb94ea045 (patch) | |
tree | 4f98b439e02091abcfe5fe977f5179a9ac86e646 /apps/menu.h | |
parent | 5c09ed38c6dc19fd03eb47971433993d7afd8605 (diff) | |
download | rockbox-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.h | 9 |
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 | ||
30 | int menu_init(struct menu_items* items, int count); | 30 | int menu_init(struct menu_items* items, int count, int (*callback) (int keycode, int menu)); |
31 | void menu_exit(int menu); | 31 | void menu_exit(int menu); |
32 | 32 | ||
33 | void put_cursorxy(int x, int y, bool on); | 33 | void 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 | ||
40 | bool menu_run(int menu); | 40 | bool menu_run(int menu); |
41 | int menu_cursor(int menu); | ||
42 | char* menu_description(int menu, int position); | ||
43 | void menu_delete(int menu, int position); | ||
44 | int menu_count(int menu); | ||
45 | bool menu_moveup(int menu); | ||
46 | bool menu_movedown(int menu); | ||
47 | void menu_draw(int menu); | ||
41 | 48 | ||
42 | #endif /* End __MENU_H__ */ | 49 | #endif /* End __MENU_H__ */ |
43 | 50 | ||