tcMenu
Public Member Functions | List of all members
NoRenderer Class Reference

#include <BaseRenderers.h>

Inheritance diagram for NoRenderer:
MenuRenderer

Public Member Functions

bool tryTakeSelectIfNeeded (int, RenderPressMode) override
 
void initialise () override
 
BaseDialoggetDialog () override
 
- Public Member Functions inherited from MenuRenderer
 MenuRenderer (RendererType rendererType, int bufferSize)
 
virtual ~MenuRenderer ()
 
char * getBuffer ()
 
uint8_t getBufferSize ()
 
RendererType getRendererType ()
 

Additional Inherited Members

- Static Public Member Functions inherited from MenuRenderer
static MenuRenderergetInstance ()
 
- Protected Attributes inherited from MenuRenderer
char * buffer
 
uint8_t bufferSize
 
RendererType rendererType
 
- Static Protected Attributes inherited from MenuRenderer
static MenuRenderertheInstance = nullptr
 

Detailed Description

A renderer that does nothing, for cases where there's no display

Member Function Documentation

◆ tryTakeSelectIfNeeded()

bool NoRenderer::tryTakeSelectIfNeeded ( int  currentReading,
RenderPressMode  press 
)
inlineoverridevirtual

Allows the select key to be overriden for situations such as dialogs and other special cases.

Parameters
heldtrue when the select was held down.
Returns
true to indicate we consumed the event, otherwise false.

Implements MenuRenderer.

◆ initialise()

void NoRenderer::initialise ( )
inlineoverridevirtual

This is called when the menu manager is created, to let the display perform one off tasks to prepare the display for use

Implements MenuRenderer.

◆ getDialog()

BaseDialog * NoRenderer::getDialog ( )
overridevirtual

Gets the dialog instance that is associated with this renderer or NULL if this renderer cannot display dialogs (only NoRenderer case).

Implements MenuRenderer.


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