Peoplemon  0.1.0
Peoplemon 3 game source documentation
Page.hpp
Go to the documentation of this file.
1 #ifndef EDITOR_PAGES_PAGE_HPP
2 #define EDITOR_PAGES_PAGE_HPP
3 
4 #include <BLIB/Interfaces/GUI.hpp>
6 
21 namespace editor
22 {
24 namespace page
25 {
32 class Page {
33 public:
40 
45  virtual ~Page() = default;
46 
52  virtual void update(float dt) = 0;
53 
58  bl::gui::Box::Ptr getContent();
59 
65  void registerGui(bl::gui::GUI* parent);
66 
67 protected:
69  bl::gui::Box::Ptr content;
70  bl::gui::GUI* parent;
71 };
72 
73 } // namespace page
74 } // namespace editor
75 
76 #endif
All classes and functionality used for implementing the game editor.
Definition: Tile.hpp:11
Owns all primary systems and a reference to the engine.
Definition: Systems.hpp:47
Base class for all editor pages.
Definition: Page.hpp:32
virtual ~Page()=default
Destroy the Page.
virtual void update(float dt)=0
Any custom page update logic outside of event callbacks goes here.
bl::gui::Box::Ptr getContent()
Returns the content to put in the editor.
Definition: Page.cpp:11
bl::gui::Box::Ptr content
Definition: Page.hpp:69
bl::gui::GUI * parent
Definition: Page.hpp:70
Page(core::system::Systems &systems)
Construct a new Page.
Definition: Page.cpp:7
void registerGui(bl::gui::GUI *parent)
Registers the parent GUI.
Definition: Page.cpp:13
core::system::Systems & systems
Definition: Page.hpp:68