Arduino menU-Ui magic 1.0
Arduino menu user interface library
Public Member Functions | Public Attributes | List of all members
screenMenu Class Reference

#include <menu.h>

Public Member Functions

 screenMenu (const char *text)
 
virtual bool pushUp ()
 
virtual bool pushDn ()
 
virtual bool pushRt (unsigned int index)
 
virtual bool pushLt (unsigned int index)
 
virtual bool addMenuOption (menuOption *menuoption)
 
virtual bool refreshMenu ()
 
virtual void run (unsigned int index)
 
virtual void bye ()
 

Public Attributes

int whereICame
 
bool autoRefresh = false
 
unsigned int totalMenuOptions
 
unsigned int offsetFromTop =0
 
char titol [menuTextArrayLength]
 
menuOptiondisplayMenuOptionsPnt [menuOptionsMax]
 

Detailed Description

Screen base class, use addMenuOption to add menuoptions, to be added at menu class, inherit for fancy things like scroll and stuff

Constructor & Destructor Documentation

◆ screenMenu()

screenMenu::screenMenu ( const char *  text)

constructor, sets text, needs menu

Member Function Documentation

◆ bye()

void screenMenu::bye ( )
virtual

called when leaving screen

◆ pushDn()

bool screenMenu::pushDn ( )
virtual

menu showing us tells to push Dn

◆ pushLt()

bool screenMenu::pushLt ( unsigned int  index)
virtual

menu showing us tells to push left

◆ pushRt()

bool screenMenu::pushRt ( unsigned int  index)
virtual

menu showing us tells to push right

◆ pushUp()

bool screenMenu::pushUp ( )
virtual

menu showing us tells to push Up

◆ refreshMenu()

bool screenMenu::refreshMenu ( )
virtual

called when menu changes and periodically if autoRefresh = true

◆ run()

void screenMenu::run ( unsigned int  index)
virtual

calls run() on the index menuoption

Member Data Documentation

◆ autoRefresh

bool screenMenu::autoRefresh = false

tells menu wants periodical refresh

◆ displayMenuOptionsPnt

menuOption* screenMenu::displayMenuOptionsPnt[menuOptionsMax]

pointers to menu option/option objects shown , and run by menu

◆ offsetFromTop

unsigned int screenMenu::offsetFromTop =0

to slide down tru menuoptions 'no dinamic-generated scroll', not used on inheritance

◆ titol

char screenMenu::titol[menuTextArrayLength]

menu caption

◆ totalMenuOptions

unsigned int screenMenu::totalMenuOptions

running time total inserted options/options

◆ whereICame

int screenMenu::whereICame

for screen swapping, where i came from


The documentation for this class was generated from the following files: