Refactor fixes
This commit is contained in:
parent
4ad40058f9
commit
e028ad1a41
5 changed files with 12 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue