summaryrefslogtreecommitdiff
path: root/apps/menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menu.h')
-rw-r--r--apps/menu.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/apps/menu.h b/apps/menu.h
new file mode 100644
index 0000000000..1e3075f7de
--- /dev/null
+++ b/apps/menu.h
@@ -0,0 +1,51 @@
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
23struct main_menu_items {
24 int menu_id;
25 const char *menu_desc;
26 void (*function) (void);
27};
28
29int get_line_height(void);
30
31/* Cursor calls */
32void put_cursor(int target);
33void put_cursor_menu_top(void);
34void put_cursor_menu_bottom(void);
35void move_cursor_up(void);
36void move_cursor_down(void);
37int is_cursor_menu_top(void);
38int is_cursor_menu_bottom(void);
39
40/* Menu calls */
41void add_menu_item(int location, char *string);
42void menu_init(void);
43void menu_draw(void);
44void execute_menu_item(void);
45
46#endif /* End __MENU_H__ */
47
48
49
50
51