From b21a3bd240d04fcba296021da6eb1276fde84a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Tue, 21 May 2002 14:25:45 +0000 Subject: Abstracted the menu interface git-svn-id: svn://svn.rockbox.org/rockbox/trunk@641 a1c6a512-1295-4272-9138-f99709370657 --- apps/menu.h | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) (limited to 'apps/menu.h') 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 @@ #ifndef __MENU_H__ #define __MENU_H__ -struct main_menu_items { - int menu_id; - const char *menu_desc; +struct menu_items { + int id; + char *desc; void (*function) (void); }; -int get_line_height(void); - -/* Reads in bmp file for logo */ -int show_logo(void); - -/* Shows the actual splash screen. - * Wrapper around show_logo making use of lcd functions */ -void show_splash(void); - -/* Cursor calls */ -void put_cursor(int target); -void put_cursor_menu_top(void); -void put_cursor_menu_bottom(void); -void move_cursor_up(void); -void move_cursor_down(void); -int is_cursor_menu_top(void); -int is_cursor_menu_bottom(void); - -/* Menu calls */ -void add_menu_item(int location, char *string); -void menu_init(void); +void menu_init(struct menu_items* items, int count); void menu_draw(void); -void execute_menu_item(void); #endif /* End __MENU_H__ */ - - - -- cgit v1.2.3