View used to set a manual timer without EmlaLock in the background.
More...
#include <SetTimerView.h>
View used to set a manual timer without EmlaLock in the background.
◆ SetTimerView() [1/3]
views::SetTimerView::SetTimerView |
( |
LiquidCrystal_PCF8574 * |
display, |
|
|
RotaryEncoder * |
encoder, |
|
|
const int & |
numberOfColumns, |
|
|
const int & |
numberOfRows |
|
) |
| |
|
inline |
Construct the new set timer view.
- Parameters
-
display | pointer to the LCD instance |
encoder | pointer to the encoder instance |
numberOfColumns | number of display-columns |
numberOfRows | number of display-rows |
◆ SetTimerView() [2/3]
views::SetTimerView::SetTimerView |
( |
const SetTimerView & |
other | ) |
|
|
delete |
Copy constructor - not available.
◆ SetTimerView() [3/3]
Move constructor - not available.
◆ activate()
virtual void views::SetTimerView::activate |
( |
| ) |
|
|
inlineprotectedvirtual |
called as soon as the view becomes active
◆ handleEncoderClick()
bool views::SetTimerView::handleEncoderClick |
( |
bool & |
redraw | ) |
|
|
inlineprotected |
handles if the encoder was rotated
- Parameters
-
[in,out] | redraw | true if the content of the display must be redraw |
- Returns
- false if the current tick should be immediately skipped
◆ handleEncoderRotation()
void views::SetTimerView::handleEncoderRotation |
( |
bool & |
redraw | ) |
|
|
inlineprotected |
handles if the encoder was rotated
- Parameters
-
[in,out] | redraw | true if the content of the display must be redraw |
◆ tick()
virtual void views::SetTimerView::tick |
( |
const bool & |
forceRedraw | ) |
|
|
inlinevirtual |
called during the loop function
- Parameters
-
forceRedraw | if true everything should be redrawn |
◆ editIndex
uint8_t views::SetTimerView::editIndex |
|
protected |
selection what field can be changed:
0: number of days 1: number of hours 2: number of minutes
◆ encoder
RotaryEncoder* views::SetTimerView::encoder |
|
protected |
pointer to the encoder instance
◆ numberOfColumns
const int views::SetTimerView::numberOfColumns |
|
protected |
Number of display-columns.
◆ numberOfDays
uint8_t views::SetTimerView::numberOfDays |
|
protected |
current selection of the number of days
◆ numberOfHours
uint8_t views::SetTimerView::numberOfHours |
|
protected |
current selection of the number of hours
◆ numberOfMinutes
uint8_t views::SetTimerView::numberOfMinutes |
|
protected |
current selection of the number of minutes
◆ numberOfRows
const int views::SetTimerView::numberOfRows |
|
protected |
The documentation for this class was generated from the following file: