DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ScreenInterface Class Referenceabstract

#include <ScreenInterface.h>

Inheritance diagram for ScreenInterface:
Inheritance graph
[legend]
Collaboration diagram for ScreenInterface:
Collaboration graph
[legend]

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.
 
ScreenInterfacegetNext ()
 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
 

Constructor & Destructor Documentation

◆ ~ScreenInterface()

virtual ScreenInterface::~ScreenInterface ( )
virtualdefault

Destructor for the object.

Member Function Documentation

◆ drawScreen()

virtual void ScreenInterface::drawScreen ( DisplayInterface display)
pure virtual

Implement this method to draw the associated screen object on the specified display.

Parameters
displayPointer to the display object

Implemented in ErrorScreen, MenuScreen, ProgressScreen, StartupScreen, and ThrottleScreen.

◆ getNext()

ScreenInterface * ScreenInterface::getNext ( )
inline

Get the next screen object in the linked list.

Returns
Pointer to the screen object

◆ handleUserConfirmationAction()

virtual void ScreenInterface::handleUserConfirmationAction ( UserConfirmationAction  action)
pure virtual

Implement this method to define what to do when user confirmation actions are performed.

Parameters
actionUserConfirmationAction::[None|SingleClick|DoubleClick|LongPress]

Implemented in ErrorScreen, MenuScreen, ProgressScreen, StartupScreen, and ThrottleScreen.

◆ handleUserSelectionAction()

virtual void ScreenInterface::handleUserSelectionAction ( UserSelectionAction  action,
bool  throttleInverted = false 
)
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.

Parameters
actionUserSelectionAction::[None|Up|UpFaster|UpFastest|Down|DownFaster|DownFastest]
throttleInvertedTrue|False

Implemented in MenuScreen, StartupScreen, ThrottleScreen, ErrorScreen, and ProgressScreen.

◆ setNext()

void ScreenInterface::setNext ( ScreenInterface screen)
inline

Set the next screen object in the linked list.

Parameters
screenPointer to a screen object

Member Data Documentation

◆ _next

ScreenInterface* ScreenInterface::_next
private

The documentation for this class was generated from the following file: