LCDGFX LCD display driver  1.1.5
This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
NanoEngineObject< T > Class Template Referenceabstract

#include <tiler.h>

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

Public Member Functions

virtual void draw ()=0
 
virtual void update ()=0
 
virtual void refresh ()=0
 
void focus ()
 
void defocus ()
 
bool isFocused ()
 
bool hasTiler ()
 
T & getTiler ()
 

Protected Member Functions

void setTiler (T *tiler)
 

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

◆ defocus()

template<class T>
void NanoEngineObject< T >::defocus ( )
inline

Clears logic focus from NanoEngineObject

Definition at line 121 of file tiler.h.

◆ draw()

template<class T>
virtual void NanoEngineObject< T >::draw ( )
pure virtual

◆ focus()

template<class T>
void NanoEngineObject< T >::focus ( )
inline

Sets logic focus on NanoEngineObject

Definition at line 112 of file tiler.h.

◆ 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.

◆ hasTiler()

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

Returns true if NanoEngineObject is bound to NanoEngine instance

Definition at line 139 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.

◆ refresh()

template<class T>
virtual void NanoEngineObject< T >::refresh ( )
pure virtual

update() method is called by NanoEngine, when it needs object to mark occupied place for refreshing.

Implemented in NanoObjectList< T >, NanoObject< T >, and NanoObject< GraphicsEngine::TilerT >.

◆ 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.

◆ update()

template<class T>
virtual void NanoEngineObject< T >::update ( )
pure virtual

update() method is called by NanoEngine, when it needs all objects to update their logic state.

Implemented in NanoObjectList< T >, NanoObject< T >, NanoObject< GraphicsEngine::TilerT >, and NanoTextMenuItem< T >.


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