mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-19 09:13:11 +00:00
26 lines
444 B
C++
26 lines
444 B
C++
|
#include "icon-element.h"
|
||
|
|
||
|
IconElement::IconElement() {
|
||
|
}
|
||
|
|
||
|
IconElement::~IconElement() {
|
||
|
}
|
||
|
|
||
|
void IconElement::draw(Canvas* canvas) {
|
||
|
if(name != I_Empty_1x1) {
|
||
|
canvas_draw_icon_name(canvas, x, y, name);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
bool IconElement::input(InputEvent* event) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
void IconElement::set_icon(uint8_t _x, uint8_t _y, IconName _name) {
|
||
|
lock_model();
|
||
|
name = _name;
|
||
|
x = _x;
|
||
|
y = _y;
|
||
|
unlock_model(true);
|
||
|
}
|