LCDGFX LCD display driver  1.2.0
Lightweight graphics library for SSD1306, SSD1325, SSD1327, SSD1331, SSD1351, SH1106, SH1107, IL9163, ST7735, ST7789, ILI9341, PCD8544 displays over I2C/SPI
NanoEngineObject< T > Class Template Referenceabstract

Template class for all NanoEngine objects. More...

#include <tiler.h>

Inheritance diagram for NanoEngineObject< T >:
Collaboration diagram for NanoEngineObject< T >:

Public Member Functions

virtual void draw ()=0
 draw() method is called by NanoEngine, when it needs to refresh object graphics.
 
virtual void update ()=0
 update() method is called by NanoEngine, when it needs all objects to update their logic state.
 
virtual void refresh ()=0
 update() method is called by NanoEngine, when it needs object to mark occupied place for refreshing.
 
void focus ()
 Sets logic focus on NanoEngineObject.
 
void defocus ()
 Clears logic focus from NanoEngineObject.
 
bool isFocused ()
 Returns true if logic focus points to the object. More...
 
bool hasTiler ()
 Returns true if NanoEngineObject is bound to NanoEngine instance.
 
T & getTiler ()
 Returns reference to NanoEngine. More...
 

Protected Member Functions

void setTiler (T *tiler)
 Bind NanoEngineObject to specific NanoEngine. More...
 

Protected Attributes

T * m_tiler = nullptr
 Active tiler, assigned to the NanoEngineObject.
 
NanoEngineObject< T > * m_next = nullptr
 Next NanoEngineObject in the list.
 

Friends

template<class C , class D >
class NanoEngineTiler
 

Detailed Description

template<class T>
class NanoEngineObject< T >

Template class for all NanoEngine objects.

Definition at line 84 of file tiler.h.

Member Function Documentation

◆ getTiler()

template<class T>
T& NanoEngineObject< T >::getTiler ( )
inline

Returns reference to NanoEngine.

Before call to this function, please check that NanoEngine is valid via hasTiler() function.

Definition at line 148 of file tiler.h.

◆ isFocused()

template<class T>
bool NanoEngineObject< T >::isFocused ( )
inline

Returns true if logic focus points to the object.

At present NanoEngine allows many objects to be in focus at once

Definition at line 131 of file tiler.h.

◆ setTiler()

template<class T>
void NanoEngineObject< T >::setTiler ( T *  tiler)
inlineprotected

Bind NanoEngineObject to specific NanoEngine.

Parameters
tilerpointer to NanoEngine object

Definition at line 162 of file tiler.h.


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