refactor(ui): simplify Button API with property setters

This commit is contained in:
2026-07-15 11:06:49 +08:00
parent 4653ae9f06
commit 8706723d53
11 changed files with 100 additions and 76 deletions

View File

@@ -5,8 +5,8 @@ ColumnLayout::ColumnLayout(Widget* parent) : Widget(parent) {}
ColumnLayout::~ColumnLayout() {}
void ColumnLayout::update(float dt) {
Widget::update(dt);
layout();
Widget::update(dt);
}
float ColumnLayout::width() const {