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

MenuItem.h

Committer:
charly
Date:
2015-03-13
Revision:
9:c9df0b33d176
Child:
10:2b6ddf53b05e

File content as of revision 9:c9df0b33d176:

#ifndef MENUITEM_H
#define MENUITEM_H

#include "Menu.h"

class Menu; 

/** MenuItem is a menu-item of menu
*/
class MenuItem {
    private:
        
    public:
        /** pointer to user-action to execute when menu item is selected
        */
        void (*userAction)();   
        /** Text of Menue-Item to display
        */
        char* selText;   
        /** position of menuitem in menu
        */
        int pos;         
        /** Pointer to child-menue
        */
        Menu *childMenu; 
        
        /** a sub-menu
        */
        MenuItem(void (*)(), int, Menu *, char *); 
         
};

#endif