diff options
Diffstat (limited to 'apps/menu.h')
-rw-r--r-- | apps/menu.h | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/apps/menu.h b/apps/menu.h index 0b533c7f86..eb2be874e6 100644 --- a/apps/menu.h +++ b/apps/menu.h | |||
@@ -20,37 +20,13 @@ | |||
20 | #ifndef __MENU_H__ | 20 | #ifndef __MENU_H__ |
21 | #define __MENU_H__ | 21 | #define __MENU_H__ |
22 | 22 | ||
23 | struct main_menu_items { | 23 | struct menu_items { |
24 | int menu_id; | 24 | int id; |
25 | const char *menu_desc; | 25 | char *desc; |
26 | void (*function) (void); | 26 | void (*function) (void); |
27 | }; | 27 | }; |
28 | 28 | ||
29 | int get_line_height(void); | 29 | void menu_init(struct menu_items* items, int count); |
30 | |||
31 | /* Reads in bmp file for logo */ | ||
32 | int show_logo(void); | ||
33 | |||
34 | /* Shows the actual splash screen. | ||
35 | * Wrapper around show_logo making use of lcd functions */ | ||
36 | void show_splash(void); | ||
37 | |||
38 | /* Cursor calls */ | ||
39 | void put_cursor(int target); | ||
40 | void put_cursor_menu_top(void); | ||
41 | void put_cursor_menu_bottom(void); | ||
42 | void move_cursor_up(void); | ||
43 | void move_cursor_down(void); | ||
44 | int is_cursor_menu_top(void); | ||
45 | int is_cursor_menu_bottom(void); | ||
46 | |||
47 | /* Menu calls */ | ||
48 | void add_menu_item(int location, char *string); | ||
49 | void menu_init(void); | ||
50 | void menu_draw(void); | 30 | void menu_draw(void); |
51 | void execute_menu_item(void); | ||
52 | 31 | ||
53 | #endif /* End __MENU_H__ */ | 32 | #endif /* End __MENU_H__ */ |
54 | |||
55 | |||
56 | |||