#include <menu.h>
Inheritance diagram for Menu:
Public Member Functions | |
virtual void | act ()=0 |
Main menu function, depends on currententry (changed by input), overload this. | |
void | setLast (Menu *lastmenu) |
Menu * | getLast () |
Uint8 | getSize () |
void | increaseEntry (bool forward=true) |
Public Attributes | |
string | title |
Name of the menu. | |
Protected Attributes | |
Menu * | last |
Pointer to the last used menu. NULL if there is no last menu. | |
Uint8 | currententry |
Currently selected menu entry. | |
std::vector< string > | entries |
List of all Menu entry names. | |
Font * | font |
Font for non highlighted menu entries. | |
Font * | font_title |
Font for the menu title. | |
Font * | font_high |
Font for the selected menu entry. |
Abstract base class for menus. The main part is in the constructor and in the virtual function act(), overload it in the child classes. Only the base class is needed to draw the menu in gfxeng. The background depends from where the menu is called.