LCDGFX LCD display driver  2.0.1
This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
NanoEngineObject< T > Class Template Referenceabstract

#include <tiler.h>

Inheritance diagram for NanoEngineObject< T >:
NanoObject< T > NanoMenuItem< T > NanoObjectList< T > NanoSprite< T > NanoTextMenuItem< T > NanoMenu< T > NanoFixedSprite< T > NanoFixedWidthMenu< T > NanoListMenu< 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 87 of file tiler.h.

Member Function Documentation

◆ defocus()

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

Clears logic focus from NanoEngineObject

Definition at line 123 of file tiler.h.

◆ draw()

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

draw() method is called by NanoEngine, when it needs to refresh object graphics.

Implemented in NanoObjectList< T >, NanoFixedWidthMenu< T >, NanoListMenu< T >, NanoTextMenuItem< T >, NanoObject< T >, and NanoSprite< T >.

◆ focus()

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

Sets logic focus on NanoEngineObject

Definition at line 114 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 147 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 141 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 133 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 >, and NanoObject< T >.

◆ setTiler()

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

Bind NanoEngineObject to specific NanoEngine

Parameters
tilerpointer to NanoEngine object

Definition at line 158 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 >, and NanoTextMenuItem< T >.


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