Update widgets
This commit is contained in:
parent
35cb553ecb
commit
0f8fb5c580
18 changed files with 171 additions and 124 deletions
|
|
@ -8,12 +8,12 @@ namespace tp {
|
|||
public:
|
||||
LabelWidget() = default;
|
||||
|
||||
void drawCallback(Canvas& canvas) override {
|
||||
void eventDraw(Canvas& canvas) override {
|
||||
canvas.text(mLabel.c_str(), this->mArea, fontSize, Canvas::CC, padding, fontColor);
|
||||
}
|
||||
|
||||
public:
|
||||
void updateConfigCallback(WidgetManager& wm) override {
|
||||
void eventUpdateConfiguration(WidgetManager& wm) override {
|
||||
wm.setActiveId("Label");
|
||||
|
||||
fontSize = wm.getNumber("Size", "FontSize");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue