#include <ProgressScreen.h>
◆ ProgressScreen()
ProgressScreen::ProgressScreen |
( |
| ) |
|
Constructor for the progress screen.
◆ drawScreen()
Implement this method to draw the associated screen object on the specified display.
- Parameters
-
display | Pointer to the display object |
Implements ScreenInterface.
◆ handleUserConfirmationAction()
Implement this method to define what to do when user confirmation actions are performed.
- Parameters
-
action | UserConfirmationAction::[None|SingleClick|DoubleClick|LongPress] |
Implements ScreenInterface.
◆ handleUserSelectionAction()
void ProgressScreen::handleUserSelectionAction |
( |
UserSelectionAction |
action, |
|
|
bool |
throttleInverted = false |
|
) |
| |
|
overridevirtual |
Implement this method to define what to do when user selection actions are performed throttleInverted enables an interface to decrease speed when moving up and vice versa, which is handy for a rotary encoder.
- Parameters
-
action | UserSelectionAction::[None|Up|UpFaster|UpFastest|Down|DownFaster|DownFastest] |
throttleInverted | True|False |
Implements ScreenInterface.
◆ setActivity()
void ProgressScreen::setActivity |
( |
const char * |
activity | ) |
|
Set the current activity in progress.
- Parameters
-
activity | Activity text to display |
◆ setCounter()
void ProgressScreen::setCounter |
( |
uint8_t |
counter | ) |
|
Set the current attempt in progress.
- Parameters
-
counter | Current attempt count |
◆ _activity
const char* ProgressScreen::_activity |
|
private |
◆ _counter
uint8_t ProgressScreen::_counter |
|
private |
The documentation for this class was generated from the following files: