#include <Menu.h>
|
|
| uint16_t | x (void) const |
| | Upper-left x-coordinate for menu.
|
| |
| uint16_t | y (void) const |
| | Upper-left y-coordinate for menu.
|
| |
| uint16_t | width (void) const |
| | Width of the menu.
|
| |
| uint16_t | height (void) const |
| | Height of the menu.
|
| |
|
|
| | SoloMenu (void) |
| | Creates a full size menu.
|
| |
| | SoloMenu (uint16_t x0, uint16_t y0, uint16_t width, uint16_t height) |
| | Creates a menu of the specified size and location.
|
| |
| | ~SoloMenu (void)=default |
| | Default Destructor.
|
| |
|
| int8_t | _pressButtonIfTouched (void) |
| | Protected method checks to see if one of the buttons has been "touched." If so, this method "presses" the button.
|
| |
| void | _register (Button **buttonPtrArray, uint8_t nButtons) |
| | Registers an array of buttons with this class.
|
| |
|
| virtual void | begin (void) |
| | Initializes the Menu object.
|
| |
| virtual void | update (void) |
| | Updates the Button, Menu, and Label objects managed by this class.
|
| |
| virtual void | show (void)=0 |
| | Shows the menu in the TFT. Derived classes will provide specific functionality.
|
| |
| void | loadConfig (void) |
| | Loads configuration data from EEPROM, placing it into RAM.
|
| |
| virtual void | checkButtons (void) |
| | Check to see if one of the menu's buttons has been pressed.
|
| |
| virtual void | releaseButton (void) |
| | Releases the currently pressed button.
|
| |
| static bool | hasScreenBeenTouched (void) |
| | Determines if the TFT screen has been touched.
|
| |
◆ SoloMenu() [1/2]
| SoloMenu::SoloMenu |
( |
void | | ) |
|
|
inlineprotected |
Creates a full size menu.
- Parameters
- None.
◆ SoloMenu() [2/2]
| SoloMenu::SoloMenu |
( |
uint16_t | x0, |
|
|
uint16_t | y0, |
|
|
uint16_t | width, |
|
|
uint16_t | height ) |
|
inlineprotected |
Creates a menu of the specified size and location.
- Parameters
-
| [in] | x0 | Upper left x-coordinate for the menu in the TFT display |
| [in] | y0 | Upper left y-coordinate for the menu in the TFT display |
| [in] | width | Width of this menu in pixels |
| [in] | height | Height of this menu in pixels |
- Note
- The parameters
x0 and y0 currently don't do anything.
◆ ~SoloMenu()
| SoloMenu::~SoloMenu |
( |
void | | ) |
|
|
protecteddefault |
Default Destructor.
- Parameters
- None.
◆ _pressButtonIfTouched()
| int8_t SoloMenu::_pressButtonIfTouched |
( |
void | | ) |
|
|
protected |
Protected method checks to see if one of the buttons has been "touched." If so, this method "presses" the button.
- Parameters
- None.
- Returns
ID of the button that was touched. Return value is -1 if no buttons were touched
◆ _register()
| void SoloMenu::_register |
( |
Button ** | buttonPtrArray, |
|
|
uint8_t | nButtons ) |
|
protected |
Registers an array of buttons with this class.
- Parameters
-
| [in] | buttonPtrArray | An array of pointers to Button objects |
| [in] | nButtons | Number of buttons in buttonPtrArray |
- Parameters
- None.
SoloMenu will "manage" buttons that have been registered via this method. Specifically, whenever the SoloMenu::checkButtons method is called, SoloMenu will check to see if a touch on the TFT screen hits one of the registered buttons. If it does, the button will be pressed and/or released as required.
◆ begin()
| void SoloMenu::begin |
( |
void | | ) |
|
|
virtual |
◆ checkButtons()
| void SoloMenu::checkButtons |
( |
void | | ) |
|
|
virtual |
Check to see if one of the menu's buttons has been pressed.
- Parameters
- None.
◆ hasScreenBeenTouched()
| bool SoloMenu::hasScreenBeenTouched |
( |
void | | ) |
|
|
static |
Determines if the TFT screen has been touched.
- Parameters
- None.
- Returns
- true if the screen has been touched, false otherwise
◆ height()
| uint16_t SoloMenu::height |
( |
void | | ) |
const |
|
inline |
Height of the menu.
- Parameters
- None.
- Returns
- Height of the menu
◆ loadConfig()
| void SoloMenu::loadConfig |
( |
void | | ) |
|
|
inline |
Loads configuration data from EEPROM, placing it into RAM.
- Parameters
- None.
◆ releaseButton()
| void SoloMenu::releaseButton |
( |
void | | ) |
|
|
virtual |
Releases the currently pressed button.
- Parameters
- None.
◆ show()
| virtual void SoloMenu::show |
( |
void | | ) |
|
|
pure virtual |
◆ update()
| void SoloMenu::update |
( |
void | | ) |
|
|
virtual |
◆ width()
| uint16_t SoloMenu::width |
( |
void | | ) |
const |
|
inline |
Width of the menu.
- Parameters
- None.
- Returns
- Width of the menu
◆ x()
| uint16_t SoloMenu::x |
( |
void | | ) |
const |
|
inline |
Upper-left x-coordinate for menu.
- Parameters
- None.
- Returns
- UL x-coordinate for the menu in the TFT display
◆ y()
| uint16_t SoloMenu::y |
( |
void | | ) |
const |
|
inline |
Upper-left y-coordinate for menu.
- Parameters
- None.
- Returns
- UL y-coordinate for the menu in the TFT display
The documentation for this class was generated from the following files:
- C:/Users/david/Documents/PlatformIO/Solo_Controller/Solo_Controller_Repo/src/Menu.h
- C:/Users/david/Documents/PlatformIO/Solo_Controller/Solo_Controller_Repo/src/Menu.cpp