Arduino menU-Ui magic 1.0
Arduino menu user interface library
|
#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] |
menuOption * | displayMenuOptionsPnt [menuOptionsMax] |
Screen base class, use addMenuOption to add menuoptions, to be added at menu class, inherit for fancy things like scroll and stuff
screenMenu::screenMenu | ( | const char * | text | ) |
constructor, sets text, needs menu
|
virtual |
called when leaving screen
|
virtual |
menu showing us tells to push Dn
|
virtual |
menu showing us tells to push left
|
virtual |
menu showing us tells to push right
|
virtual |
menu showing us tells to push Up
|
virtual |
called when menu changes and periodically if autoRefresh = true
|
virtual |
calls run() on the index menuoption
bool screenMenu::autoRefresh = false |
tells menu wants periodical refresh
menuOption* screenMenu::displayMenuOptionsPnt[menuOptionsMax] |
pointers to menu option/option objects shown , and run by menu
unsigned int screenMenu::offsetFromTop =0 |
to slide down tru menuoptions 'no dinamic-generated scroll', not used on inheritance
char screenMenu::titol[menuTextArrayLength] |
menu caption
unsigned int screenMenu::totalMenuOptions |
running time total inserted options/options
int screenMenu::whereICame |
for screen swapping, where i came from