Files
lcdproc/server/menuscreens.h
T

60 lines
1.4 KiB
C
Raw Normal View History

2008-11-30 22:31:20 +00:00
/** \file server/menuscreens.h
* Creates all menuscreens, menus and handles the keypresses for the
* menuscreens.
*/
/* This file is part of LCDd, the lcdproc server.
*
2008-11-30 22:31:20 +00:00
* This file is released under the GNU General Public License.
* Refer to the COPYING file distributed with this package.
*
2011-01-05 23:34:37 +00:00
* Copyright (c) 1999, William Ferrell, Selene Scriven
* 2003, Joris Robijn
*/
#ifndef MENUSCREENS_H
#define MENUSCREENS_H
#include "menu.h"
2002-05-26 19:21:23 +00:00
#include "screen.h"
2007-04-02 21:29:53 +00:00
extern Screen *menuscreen;
extern Menu *main_menu;
2002-05-26 19:21:23 +00:00
2007-04-02 21:29:53 +00:00
int menuscreens_init(void);
2007-04-02 21:29:53 +00:00
int menuscreens_shutdown(void);
2002-05-26 19:21:23 +00:00
/** This function indicates to the input part whether this key was the
2002-05-26 19:21:23 +00:00
* reserved menu key.
*/
2007-04-02 21:29:53 +00:00
bool is_menu_key(const char *key);
2002-05-26 19:21:23 +00:00
/** Meant for other parts of the program to inform the menuscreen that the
* item is about to be removed.
*/
2007-04-02 21:29:53 +00:00
void menuscreen_inform_item_destruction(MenuItem *item);
/** Meant for other parts of the program to inform the menuscreen that some
* properties of the item have been modified.
*/
2007-04-02 21:29:53 +00:00
void menuscreen_inform_item_modified(MenuItem *item);
/** This handler handles the keypresses for the menu.
2002-05-26 19:21:23 +00:00
*/
2007-04-02 21:29:53 +00:00
void menuscreen_key_handler(const char *key);
/** Adds a menu for the given screen */
2007-04-02 21:29:53 +00:00
void menuscreen_add_screen(Screen *s);
/** Removes the menu of the given screen */
2007-04-02 21:29:53 +00:00
void menuscreen_remove_screen(Screen *s);
/** switches to menu. */
2007-04-02 21:29:53 +00:00
int menuscreen_goto(Menu *menu);
2002-06-28 23:35:55 +00:00
/** sets custom_main_menu. */
2007-04-02 21:29:53 +00:00
int menuscreen_set_main(Menu *menu);
2002-06-28 23:35:55 +00:00
#endif