summaryrefslogtreecommitdiff
path: root/apps/menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menu.h')
-rw-r--r--apps/menu.h32
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
23struct main_menu_items { 23struct 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
29int get_line_height(void); 29void menu_init(struct menu_items* items, int count);
30
31/* Reads in bmp file for logo */
32int show_logo(void);
33
34/* Shows the actual splash screen.
35 * Wrapper around show_logo making use of lcd functions */
36void show_splash(void);
37
38/* Cursor calls */
39void put_cursor(int target);
40void put_cursor_menu_top(void);
41void put_cursor_menu_bottom(void);
42void move_cursor_up(void);
43void move_cursor_down(void);
44int is_cursor_menu_top(void);
45int is_cursor_menu_bottom(void);
46
47/* Menu calls */
48void add_menu_item(int location, char *string);
49void menu_init(void);
50void menu_draw(void); 30void menu_draw(void);
51void execute_menu_item(void);
52 31
53#endif /* End __MENU_H__ */ 32#endif /* End __MENU_H__ */
54
55
56