3
* This file is part of LCDd, the lcdproc server.
5
* This file is released under the GNU General Public License. Refer to the
6
* COPYING file distributed with this package.
8
* Copyright (c) 1999, William Ferrell, Scott Scriven
12
* Creates all menuscreens, menus and handles the keypresses for the
23
extern Screen * menuscreen;
24
extern Menu * main_menu;
26
int menuscreens_init();
28
int menuscreens_shutdown();
30
/** This function indicates to the input part whether this key was the
33
bool is_menu_key (const char * key);
35
/** Meant for other parts of the program to inform the menuscreen that the
36
* item is about to be removed.
38
void menuscreen_inform_item_destruction (MenuItem * item);
40
/** Meant for other parts of the program to inform the menuscreen that some
41
* properties of the item have been modified.
43
void menuscreen_inform_item_modified (MenuItem * item);
45
/** This handler handles the keypresses for the menu.
47
void menuscreen_key_handler (const char *key);
49
/** Adds a menu for the given screen */
50
void menuscreen_add_screen (Screen * s);
52
/** Removes the menu of the given screen */
53
void menuscreen_remove_screen (Screen * s);
55
/** switches to menu. */
56
int menuscreen_goto (Menu * menu);
58
/** sets custom_main_menu. */
59
int menuscreen_set_main (Menu * menu);