DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
|
#include <ScreenInterface.h>
Public Member Functions | |
virtual void | handleUserConfirmationAction (UserConfirmationAction action)=0 |
Implement this method to define what to do when user confirmation actions are performed. | |
virtual void | handleUserSelectionAction (UserSelectionAction action, bool throttleInverted=false)=0 |
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. | |
virtual void | drawScreen (DisplayInterface *display)=0 |
Implement this method to draw the associated screen object on the specified display. | |
virtual | ~ScreenInterface ()=default |
Destructor for the object. | |
ScreenInterface * | getNext () |
Get the next screen object in the linked list. | |
void | setNext (ScreenInterface *screen) |
Set the next screen object in the linked list. | |
Private Attributes | |
ScreenInterface * | _next |
|
virtualdefault |
Destructor for the object.
|
pure virtual |
Implement this method to draw the associated screen object on the specified display.
display | Pointer to the display object |
Implemented in ErrorScreen, MenuScreen, ProgressScreen, StartupScreen, and ThrottleScreen.
|
inline |
Get the next screen object in the linked list.
|
pure virtual |
Implement this method to define what to do when user confirmation actions are performed.
action | UserConfirmationAction::[None|SingleClick|DoubleClick|LongPress] |
Implemented in ErrorScreen, MenuScreen, ProgressScreen, StartupScreen, and ThrottleScreen.
|
pure virtual |
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.
action | UserSelectionAction::[None|Up|UpFaster|UpFastest|Down|DownFaster|DownFastest] |
throttleInverted | True|False |
Implemented in MenuScreen, StartupScreen, ThrottleScreen, ErrorScreen, and ProgressScreen.
|
inline |
Set the next screen object in the linked list.
screen | Pointer to a screen object |
|
private |