Refactor fixes

This commit is contained in:
IlyaShurupov 2024-10-09 19:36:17 +03:00
parent 4ad40058f9
commit e028ad1a41
5 changed files with 12 additions and 4 deletions

View file

@ -11,6 +11,10 @@ using namespace tp;
class WidgetApplication : public Application {
public:
WidgetApplication() {
setup1();
}
void setup1() {
mRootWidget.setRootWidget(&mDockLayout);
mDockLayout.addChild(&mFloatingMenu);
@ -43,6 +47,10 @@ public:
// mLayoutWidget.addChild(&mLabel);
}
void setup2() {
mRootWidget.setRootWidget(&mLabel);
}
void processFrame(EventHandler* eventHandler, halnf deltaTime) override {
const auto rec = RectF({ 0, 0 }, mWindow->getSize());
mRootWidget.processFrame(eventHandler, rec);