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

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

Committer:
charly
Date:
Fri Mar 13 18:44:49 2015 +0000
Revision:
9:c9df0b33d176
Child:
10:2b6ddf53b05e
Refactored Selection to MenuItem; Added comments

Who changed what in which revision?

UserRevisionLine numberNew contents of line
charly 9:c9df0b33d176 1 #ifndef MENUITEM_H
charly 9:c9df0b33d176 2 #define MENUITEM_H
charly 9:c9df0b33d176 3
charly 9:c9df0b33d176 4 #include "Menu.h"
charly 9:c9df0b33d176 5
charly 9:c9df0b33d176 6 class Menu;
charly 9:c9df0b33d176 7
charly 9:c9df0b33d176 8 /** MenuItem is a menu-item of menu
charly 9:c9df0b33d176 9 */
charly 9:c9df0b33d176 10 class MenuItem {
charly 9:c9df0b33d176 11 private:
charly 9:c9df0b33d176 12
charly 9:c9df0b33d176 13 public:
charly 9:c9df0b33d176 14 /** pointer to user-action to execute when menu item is selected
charly 9:c9df0b33d176 15 */
charly 9:c9df0b33d176 16 void (*userAction)();
charly 9:c9df0b33d176 17 /** Text of Menue-Item to display
charly 9:c9df0b33d176 18 */
charly 9:c9df0b33d176 19 char* selText;
charly 9:c9df0b33d176 20 /** position of menuitem in menu
charly 9:c9df0b33d176 21 */
charly 9:c9df0b33d176 22 int pos;
charly 9:c9df0b33d176 23 /** Pointer to child-menue
charly 9:c9df0b33d176 24 */
charly 9:c9df0b33d176 25 Menu *childMenu;
charly 9:c9df0b33d176 26
charly 9:c9df0b33d176 27 /** a sub-menu
charly 9:c9df0b33d176 28 */
charly 9:c9df0b33d176 29 MenuItem(void (*)(), int, Menu *, char *);
charly 9:c9df0b33d176 30
charly 9:c9df0b33d176 31 };
charly 9:c9df0b33d176 32
charly 9:c9df0b33d176 33 #endif