diff options
author | Robert Hak <adiamas@rockbox.org> | 2002-05-06 08:41:49 +0000 |
---|---|---|
committer | Robert Hak <adiamas@rockbox.org> | 2002-05-06 08:41:49 +0000 |
commit | 083e7d451b5ca220a7f54af5867bfe7fa0f24790 (patch) | |
tree | 66f827ff4374a5482dbb76e96c0c77c7c7a9be43 /uisimulator/menu.h | |
parent | 2370cd4d67bf77fa817499f445d380073a4983d0 (diff) | |
download | rockbox-083e7d451b5ca220a7f54af5867bfe7fa0f24790.tar.gz rockbox-083e7d451b5ca220a7f54af5867bfe7fa0f24790.zip |
Initial creation. This removes alot of the cursor and menuing overhead
from the calling routines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@464 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/menu.h')
-rw-r--r-- | uisimulator/menu.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/uisimulator/menu.h b/uisimulator/menu.h new file mode 100644 index 0000000000..25dfd393a2 --- /dev/null +++ b/uisimulator/menu.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 Robert E. Hak | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef __MENU_H__ | ||
21 | #define __MENU_H__ | ||
22 | |||
23 | struct Main_Menu_Items { | ||
24 | int menu_id; | ||
25 | const char *menu_desc; | ||
26 | void (*function) (void); | ||
27 | }; | ||
28 | |||
29 | int get_line_height(void); | ||
30 | |||
31 | /* Cursor calls */ | ||
32 | void put_cursor(int target); | ||
33 | void put_cursor_menu_top(void); | ||
34 | void put_cursor_menu_bottom(void); | ||
35 | void move_cursor_up(void); | ||
36 | void move_cursor_down(void); | ||
37 | int is_cursor_menu_top(void); | ||
38 | int is_cursor_menu_bottom(void); | ||
39 | |||
40 | /* Menu calls */ | ||
41 | void add_menu_item(int location, char *string); | ||
42 | void menu_init(void); | ||
43 | void execute_menu_item(void); | ||
44 | |||
45 | #endif /* End __MENU_H__ */ | ||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||