#include <Button.h>
|
|
| | ImmediateButton (Canvas &DestCanvas, const Block_Image &DestLoc, callback_function callback) |
| | ImmediateButton Constructor.
|
| |
| | ~ImmediateButton (void)=default |
| | Default destructor.
|
| |
|
| bool | press (FT5316::TouchLocation loc) override |
| | Presses the button if loc is within the bounds of the button.
|
| |
| | Button (Canvas &DestCanvas, const Block_Image &DestLoc, const DRAM_Canvas *Imgs, uint8_t maxNumStates) |
| | Constructor for creating a Button.
|
| |
| | ~Button (void)=default |
| | Default destructor.
|
| |
| void | begin (void) |
| | Initializes the button. This method should be called before first use.
|
| |
| virtual void | release (void) |
| | Releases the button if it has been pressed.
|
| |
| void | enable (void) |
| | Enables the button, makking it accept button presses.
|
| |
| void | disable (void) |
| | Disables the button, so that it ignores button presses.
|
| |
| bool | isEnabled (void) const |
| | Indicates whether the Button is enabled.
|
| |
| uint16_t | width (void) const |
| | Returns the width of the button in pixels.
|
| |
| uint16_t | height (void) const |
| | Returns the height of the button in pixels.
|
| |
| uint8_t | state (void) const |
| | Returns the current state of the button.
|
| |
◆ ImmediateButton()
ImmediateButton 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] | callback | Callback function when the button transitions to state 0 |
◆ ~ImmediateButton()
| ImmediateButton::~ImmediateButton |
( |
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