update widgets
This commit is contained in:
parent
c41dcf9efa
commit
eb079e1386
24 changed files with 284 additions and 370 deletions
|
|
@ -8,12 +8,12 @@ namespace tp {
|
|||
public:
|
||||
LabelWidget() = default;
|
||||
|
||||
void drawBody(Canvas& canvas) override {
|
||||
void drawCallback(Canvas& canvas) override {
|
||||
canvas.text(mLabel.c_str(), this->mArea, fontSize, Canvas::CC, padding, fontColor);
|
||||
}
|
||||
|
||||
public:
|
||||
void updateConfigCache(WidgetManager& wm) override {
|
||||
void updateConfigCallback(WidgetManager& wm) override {
|
||||
wm.setActiveId("Label");
|
||||
|
||||
fontSize = wm.getNumber("Size", "FontSize");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue