#include <BaseRenderers.h>
Public Member Functions | |
ResetCallbackFunctionCustomDraw (ResetCallbackFn fn) | |
void | started (BaseMenuRenderer *) override |
void | reset () override |
void | renderLoop (unsigned int, RenderPressMode) override |
This class provides the reset callback in a functional way without the need for custom drawing class. It simply calls the provided reset function on reset.
|
inlineoverridevirtual |
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. |
Implements CustomDrawing.
|
inlineoverridevirtual |
Called when the menu has become inactive, IE after the idle time out has triggered.
Implements CustomDrawing.
|
inlineoverridevirtual |
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. |
Implements CustomDrawing.