#include <BaseRenderers.h>
Public Member Functions | |
virtual void | started (BaseMenuRenderer *currentRenderer)=0 |
virtual void | reset ()=0 |
virtual void | renderLoop (unsigned int currentValue, RenderPressMode userClick)=0 |
By implementing this interface, you can take over the screen and handle reset events an OO fashion. Along with being able to take over the display using a drawing function that's called frequently, you can also implement this class and pass it to the renderer instead. It then handles all attempts to take over the display and also the reset callback.
|
pure virtual |
Called when the display is taken over before any calls to renderLoop. You can set up anything you need here.
currentRenderer | the renderer object that sent this event. |
Implemented in tcextras::IoaTouchScreenCalibrator, DrawableDashboard, and ResetCallbackFunctionCustomDraw.
|
pure virtual |
Called when the menu has become inactive, IE after the idle time out has triggered.
Implemented in tcextras::IoaTouchScreenCalibrator, DrawableDashboard, and ResetCallbackFunctionCustomDraw.
|
pure virtual |
After takeOverDisplay is called, you'll first get the started event, then this loop will be called repeatedly, you should check if anything needs painting, and redraw display sections if need be.
currentValue | the current value of the encoder, or simulated encoder. |
userClick | the selection state, eg of the select button. |
Implemented in ResetCallbackFunctionCustomDraw, tcextras::IoaTouchScreenCalibrator, and DrawableDashboard.