Library to display menus on TextLCDs. Interaction with functions Up,Down and Select (Buttons or RPG) Based on menu-library from pyeh9

Fork of Menu by Peihsun Yeh

Embed: (wiki syntax)

« Back to documentation index

Menu Class Reference

Menu Class Reference

Menu: Create Menues with Submenues, MenuItems, actions,... More...

#include <Menu.h>

Public Member Functions

 Menu (char *)
 a menu
void add (const MenuItem &toAdd)
 add an Item to the menu
void changeText (int position, char *newText)
 change the text of an menu-item
char * getText (int)
 get current text of menu-item

Data Fields

vector< MenuItemselections
 vector of of Menu-Items
char * menuID
 name of a menu

Detailed Description

Menu: Create Menues with Submenues, MenuItems, actions,...

Definition at line 13 of file Menu.h.


Constructor & Destructor Documentation

Menu ( char *  id )

a menu

Definition at line 5 of file Menu.cpp.


Member Function Documentation

void add ( const MenuItem toAdd )

add an Item to the menu

Definition at line 11 of file Menu.cpp.

void changeText ( int  position,
char *  newText 
)

change the text of an menu-item

Definition at line 16 of file Menu.cpp.

char* getText ( int   )

get current text of menu-item


Field Documentation

char* menuID

name of a menu

Definition at line 23 of file Menu.h.

vector of of Menu-Items

Definition at line 19 of file Menu.h.