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

#include <menu_items.h>

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

Public Member Functions

 NanoTextMenuItem (const char *name)
 
void update () override
 
void draw () override
 
- Public Member Functions inherited from NanoObject< T >
 NanoObject (const NanoPoint &pos)
 
 NanoObject (const NanoPoint &pos, const NanoPoint &size)
 
void draw () override
 
void refresh () override
 
void update () override
 
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 ()
 

Protected Attributes

const char * m_name
 
- 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.
 

Additional Inherited Members

- Protected Member Functions inherited from NanoEngineObject< T >
void setTiler (T *tiler)
 

Detailed Description

template<class T>
class NanoTextMenuItem< T >

Template class for font menu item with user-defined font

Definition at line 71 of file menu_items.h.

Constructor & Destructor Documentation

◆ NanoTextMenuItem()

template<class T >
NanoTextMenuItem< T >::NanoTextMenuItem ( const char *  name)
inlineexplicit

Creates instance of test menu item

Parameters
nametext of the item to display

Definition at line 79 of file menu_items.h.

Member Function Documentation

◆ draw()

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

Draws text menu item in the NanoEngine buffer

Implements NanoEngineObject< T >.

Definition at line 110 of file menu_items.h.

◆ update()

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

Updates menu item state. Automatically resizes menu item if width is not defined yet

Implements NanoEngineObject< T >.

Definition at line 89 of file menu_items.h.

Member Data Documentation

◆ m_name

template<class T >
const char* NanoTextMenuItem< T >::m_name
protected

Menu item text

Definition at line 130 of file menu_items.h.


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