4d6b170769
* Fixing compiler warnings with -Wextra * More warnings suppression, WIP * Even more warning fixes * Added new lines at end of text files. * Padding fix * Additional fixes to warnings on different build configurations; added -Wextra to default build pipeline * Fixes for Secplus v1 * -additional warnings * +-Wredundant-decls fixes * FuriHal: print stack overflow task name in console * FuriHal: add missing include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
26 lines
441 B
C++
26 lines
441 B
C++
#include "icon_element.h"
|
|
|
|
IconElement::IconElement() {
|
|
}
|
|
|
|
IconElement::~IconElement() {
|
|
}
|
|
|
|
void IconElement::draw(Canvas* canvas) {
|
|
if(icon != NULL) {
|
|
canvas_draw_icon(canvas, x, y, icon);
|
|
}
|
|
}
|
|
|
|
bool IconElement::input(InputEvent* /* event */) {
|
|
return false;
|
|
}
|
|
|
|
void IconElement::set_icon(uint8_t _x, uint8_t _y, const Icon* _icon) {
|
|
lock_model();
|
|
icon = _icon;
|
|
x = _x;
|
|
y = _y;
|
|
unlock_model(true);
|
|
}
|