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
NanoObjectList< T > Class Template Reference

#include <object.h>

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

Public Member Functions

NanoObject< T > * getNext (NanoObject< T > *prev=nullptr)
 
NanoObject< T > * getPrev (NanoObject< T > *curr=nullptr)
 
void update () override
 
void refresh () override
 
void draw () override
 
bool has (NanoObject< T > &object)
 
void add (NanoObject< T > &object)
 
void insert (NanoObject< T > &object)
 
void remove (NanoObject< T > &object)
 
- Public Member Functions inherited from NanoObject< T >
 NanoObject (const NanoPoint &pos)
 
 NanoObject (const NanoPoint &pos, const NanoPoint &size)
 
lcdint_t width () const
 
lcdint_t height () const
 
void moveTo (const NanoPoint &p)
 
void moveBy (const NanoPoint &p)
 
void resize (const NanoPoint &size)
 
void setSize (const NanoPoint &size)
 
void setPos (const NanoPoint &p)
 
const NanoPoint bottom () const
 
const NanoPoint top () const
 
const NanoPoint left () const
 
const NanoPoint right () const
 
const NanoPoint center () const
 
lcdint_t x () const
 
lcdint_t y () const
 
const NanoPointgetPosition () const
 
const NanoRectgetRect () const
 
- Public Member Functions inherited from NanoEngineObject< T >
void focus ()
 
void defocus ()
 
bool isFocused ()
 
bool hasTiler ()
 
T & getTiler ()
 

Additional Inherited Members

- Protected Member Functions inherited from NanoEngineObject< T >
void setTiler (T *tiler)
 
- Protected Attributes inherited from NanoObject< T >
NanoRect m_rect
 
- Protected Attributes inherited from NanoEngineObject< T >
T * m_tiler = nullptr
 Active tiler, assigned to the NanoEngineObject.
 
NanoEngineObject< T > * m_next = nullptr
 Next NanoEngineObject in the list.
 

Detailed Description

template<class T>
class NanoObjectList< T >

Template class for NanoEngine objects lists

Definition at line 44 of file object.h.

Member Function Documentation

◆ add()

template<class T >
void NanoObjectList< T >::add ( NanoObject< T > &  object)
inline

Adds new NanoObject to the end of the list and marks it for refresh.

Parameters
objectobject to add.

Definition at line 338 of file object.h.

◆ draw()

template<class T >
void NanoObjectList< T >::draw ( )
inlineoverridevirtual

Draw all objects from the list in the buffer.

Reimplemented from NanoObject< T >.

Definition at line 308 of file object.h.

◆ getNext()

template<class T >
NanoObject<T>* NanoObjectList< T >::getNext ( NanoObject< T > *  prev = nullptr)
inline

Returns next object in the list. If no objects left, the function returns nullptr.

Parameters
prevprevious object. If nullptr, then first object is returned.

Definition at line 253 of file object.h.

◆ getPrev()

template<class T >
NanoObject<T>* NanoObjectList< T >::getPrev ( NanoObject< T > *  curr = nullptr)
inline

Returns previous object in the list. If no objects left, the function returns nullptr.

Parameters
currcurrent object. If nullptr, then last object is returned.

Definition at line 264 of file object.h.

◆ has()

template<class T >
bool NanoObjectList< T >::has ( NanoObject< T > &  object)
inline

Returns true if NanoObjectList contains specified object.

Parameters
objectobject to search for.

Definition at line 323 of file object.h.

◆ insert()

template<class T >
void NanoObjectList< T >::insert ( NanoObject< T > &  object)
inline

Adds new NanoObject to the beginning of the list and marks it for refresh.

Parameters
objectobject to insert.

Definition at line 362 of file object.h.

◆ refresh()

template<class T >
void NanoObjectList< T >::refresh ( )
inlineoverridevirtual

Refreshes all objects in the list.

Reimplemented from NanoObject< T >.

Definition at line 294 of file object.h.

◆ remove()

template<class T >
void NanoObjectList< T >::remove ( NanoObject< T > &  object)
inline

Removes NanoObject from the list and marks occupied area for refresh.

Parameters
objectobject to remove.

Definition at line 379 of file object.h.

◆ update()

template<class T >
void NanoObjectList< T >::update ( )
inlineoverridevirtual

Updates all objects in the list.

Reimplemented from NanoObject< T >.

Definition at line 281 of file object.h.


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