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

#include <menu.h>

Inheritance diagram for menuOption:
changeScreenMenuOption menuOptionOnOff menuOptionRangeValue

Public Member Functions

 menuOption ()
 
 menuOption (const char *text)
 
virtual void run ()
 
virtual bool refresh ()
 
virtual bool pushRt ()
 
virtual bool pushLt ()
 

Public Attributes

char text [menuTextArrayLength]
 
bool autoRefresh = true
 

Detailed Description

Simplest menuOption base class, is to be inherited, put your custom code at run()

Constructor & Destructor Documentation

◆ menuOption() [1/2]

menuOption::menuOption ( )

for compiler puposes, better not to use it

◆ menuOption() [2/2]

menuOption::menuOption ( const char *  text)

constructor, sets the caption text

Member Function Documentation

◆ pushLt()

bool menuOption::pushLt ( )
virtual

called then left left is pressed

Reimplemented in menuOptionOnOff, and menuOptionRangeValue.

◆ pushRt()

bool menuOption::pushRt ( )
virtual

called then right arrow is pressed

Reimplemented in menuOptionOnOff, and menuOptionRangeValue.

◆ refresh()

bool menuOption::refresh ( )
virtual

called when autoRefresh is set here and screenMenu

Reimplemented in menuOptionOnOff, menuOptionRangeValue, and changeScreenMenuOption.

◆ run()

void menuOption::run ( )
virtual

inherit to do your thing

Reimplemented in changeScreenMenuOption.

Member Data Documentation

◆ autoRefresh

bool menuOption::autoRefresh = true

wants refresh() to be called

◆ text

char menuOption::text[menuTextArrayLength]

Caption


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