4#include "Widgets/Widget.h"
12 virtual int Init()
override;
13 virtual void Tick(
double deltaTime)
override;
14 virtual void Exit()
override;
20 m_widgets.push_back(std::make_unique<T>(
this));
21 return dynamic_cast<T*
>(m_widgets.back().get());
25 T* AddWidgetClassToRoot()
29 return m_rootWidget->AddChildWidget<T>();
33 std::vector<std::unique_ptr<Widget>> m_widgets;
34 Widget* m_rootWidget =
nullptr;