#include <Button.h>
◆ ToggleButton()
ToggleButton Constructor.
- Parameters
-
| [in] | DestCanvas | Destination canvas to where the current button image is copied |
| [in] | DestLoc | UL x-y coordinate within DestCanvas where the button is to be copied |
| [in] | SrcCanvas | Source Canvas containing button images |
| [in] | Img0 | Location within SrcCanvas for button in state 0 |
| [in] | Img0Callback | Callback function when the button transitions to state 0 |
| [in] | Img1 | Location within SrcCanvas for button in state 1 |
| [in] | Img1Callback | Callback function when the button transitions to state 0 |
This constructor assumes that all button images are located on the same SrcCanvas. The locations, Img0 and Img1, point to locations within SrcCanvas.
◆ ~ToggleButton()
| ToggleButton::~ToggleButton |
( |
void | | ) |
|
|
default |
Default destructor.
- Parameters
- None.
◆ press()
Presses the button if loc is within the bounds of the button.
- Parameters
-
| [in] | loc | x-y coordinate where the TFT screen has been touched |
Reimplemented from Button.
The documentation for this class was generated from the following files:
- C:/Users/david/Documents/PlatformIO/Solo_Controller/Solo_Controller_Repo/src/Button.h
- C:/Users/david/Documents/PlatformIO/Solo_Controller/Solo_Controller_Repo/src/Button.cpp