#include <BaseRenderers.h>
Public Member Functions | |
| MenuRenderer (RendererType rendererType, int bufferSize) | |
| virtual void | initialise ()=0 |
| virtual bool | tryTakeSelectIfNeeded (int currentReading, RenderPressMode press)=0 |
| virtual BaseDialog * | getDialog ()=0 |
| virtual | ~MenuRenderer () |
| char * | getBuffer () |
| uint8_t | getBufferSize () const |
| RendererType | getRendererType () |
Static Public Member Functions | |
| static MenuRenderer * | getInstance () |
Protected Attributes | |
| char * | buffer |
| uint8_t | bufferSize |
| RendererType | rendererType |
Static Protected Attributes | |
| static MenuRenderer * | theInstance = nullptr |
Each display must have a renderer, even if it is the NoRenderer, the NoRenderer is for situations where the control is performed exclusively by a remote device.
|
inlinevirtual |
virtual destructor is required by the language
|
pure virtual |
This is called when the menu manager is created, to let the display perform one off tasks to prepare the display for use
Implemented in BaseMenuRenderer, NoRenderer, and tcgfx::BaseGraphicalRenderer.
|
pure virtual |
Allows the select key to be overriden for situations such as dialogs and other special cases.
| held | true when the select was held down. |
Implemented in BaseMenuRenderer, and NoRenderer.
|
pure virtual |
Gets the dialog instance that is associated with this renderer or NULL if this renderer cannot display dialogs (only NoRenderer case).
Implemented in NoRenderer, and tcgfx::BaseGraphicalRenderer.
|
inline |
Gets the buffer that is used internally for render buffering.
|
inline |
Gets the buffer size of the buffer
|
inline |
Returns if this is a no display type renderer or a base renderer type.