forked from len0rd/rockbox
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
This commit is contained in:
parent
5c09ed38c6
commit
10b92c44b3
17 changed files with 312 additions and 199 deletions
|
|
@ -27,7 +27,7 @@ struct menu_items {
|
|||
bool (*function) (void); /* return true if USB was connected */
|
||||
};
|
||||
|
||||
int menu_init(struct menu_items* items, int count);
|
||||
int menu_init(struct menu_items* items, int count, int (*callback) (int keycode, int menu));
|
||||
void menu_exit(int menu);
|
||||
|
||||
void put_cursorxy(int x, int y, bool on);
|
||||
|
|
@ -38,6 +38,13 @@ int menu_show(int m);
|
|||
#define MENU_SELECTED_EXIT -2
|
||||
|
||||
bool menu_run(int menu);
|
||||
int menu_cursor(int menu);
|
||||
char* menu_description(int menu, int position);
|
||||
void menu_delete(int menu, int position);
|
||||
int menu_count(int menu);
|
||||
bool menu_moveup(int menu);
|
||||
bool menu_movedown(int menu);
|
||||
void menu_draw(int menu);
|
||||
|
||||
#endif /* End __MENU_H__ */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue