81 updateMenuItemsPosition();
98 updateMenuItemsPosition();
124 m_selected->defocus();
126 m_selected = this->getNext(m_selected);
129 m_selected = this->getNext();
146 m_selected->defocus();
148 m_selected = getPrev(m_selected);
151 m_selected = this->getPrev();
164 virtual void updateMenuItemsPosition() = 0;
184 this->
getTiler().getCanvas().setColor(0xFFFF);
185 this->
getTiler().getCanvas().drawRect(
191 void updateMenuItemsPosition()
override 199 p = this->getNext(p);
202 this->
m_rect.
p2.
x = this->getDisplay().width();
231 this->
getTiler().getCanvas().setColor(0xFFFF);
232 this->
getTiler().getCanvas().drawRect(
238 void updateMenuItemsPosition()
override 247 p = this->getNext(p);
struct _NanoPoint NanoPoint
Describes point.
lcdint_t height() const
Returns height of NanoObject.
void setSize(const NanoPoint &size)
Sets new size of NanoObject.
Template class for NanoEngine objects lists.
NanoPoint p2
right-bottom point of the rectangle area
int8_t lcdint_t
internal int type, used by the library.
SSD1306 HAL IO communication functions.
void focus()
Sets logic focus on NanoEngineObject.
lcdint_t y
y position in pixels
void insert(NanoObject< T > &object)
Adds new NanoObject to the beginning of the list and marks it for refresh.
This is base class for all NanoObjects.
T & getTiler()
Returns reference to NanoEngine.
NanoRect m_rect
Rectangle area occupied by the object.
void update() override
Updates NanoObject.
void add(NanoObject< T > &object)
Adds new NanoObject to the end of the list and marks it for refresh.
void draw() override
Draw all objects from the list in the buffer.
lcdint_t width() const
returns width of NanoRect
NanoPoint p1
top-left point of the rectangle area
lcdint_t x
x position in pixels
void setPos(const NanoPoint &p)
Sets position of NanoObject, doesn't mark for update content on the screen.