Files
lcdproc/server/menuscreens.h
T
robijn dc619e596f - Moved some code from main.c to screenlist.c
- Implemented reloading by sending SIGHUP.
- Now doing 'real 8Hz' rendering and 32Hz input processing.
- Removed noscreen feature (that we rejected).
2002-08-04 20:58:51 +00:00

54 lines
1.3 KiB
C

/*
* menuscreens.h
* This file is part of LCDd, the lcdproc server.
*
* This file is released under the GNU General Public License. Refer to the
* COPYING file distributed with this package.
*
* Copyright (c) 1999, William Ferrell, Scott Scriven
*
* Creates all menuscreens, menus and handles the keypresses for the
* menuscreens.
*/
#ifndef MENUSCREENS_H
#define MENUSCREENS_H
#include "menu.h"
#include "menuitem.h"
#include "screen.h"
extern Screen * menuscreen;
extern Menu * main_menu;
int menuscreens_init();
int menuscreens_shutdown();
bool is_menu_key (char * key);
/* This function indicates to the input part whether this key was the
* reserved menu key.
*/
void menuscreen_inform_item_destruction (MenuItem * item);
/* Meant for other parts of the program to inform the menuscreen that the
* item is about to be removed.
*/
void menuscreen_inform_item_modified (MenuItem * item);
/* Meant for other parts of the program to inform the menuscreen that some
* properties of the item have been modified.
*/
void menuscreen_key_handler (char *key);
/* This handler handles the keypresses for the menu.
*/
void menuscreen_add_screen (Screen * s);
/* Adds a menu for the given screen */
void menuscreen_remove_screen (Screen * s);
/* Removes the menu of the screen */
#endif