dEngine
Simple 2D C++ game engine
UI.h
Go to the documentation of this file.
1 #ifndef DENGINE_UI_H
2 #define DENGINE_UI_H
3 
4 #include <string>
5 #include <vector>
6 #include "UIWindow.h"
7 
8 namespace dengine_UI {
25  class UI {
26  public:
31  UI();
32 
37  void Load();
38 
44  void Render();
45 
51  void Update();
52 
58  void Push(UIWindow* window);
63  void Pop();
64 
65  private:
66  std::vector<UIWindow*> windows;
67  };
68 }
69 #endif //DENGINE_UI_H
UI()
Constructor.
Definition: UI.cpp:5
void Load()
Load the UI.
Definition: UI.cpp:23
Used to manage the UI of a game See the code example below for a quick reference on how to use the UI...
Definition: UI.h:25
void Update()
Render the UI.
Definition: UI.cpp:16
void Pop()
Pop a UI window from the stack.
Definition: UI.cpp:31
Definition: Circle.h:11
void Push(UIWindow *window)
Push window to stack.
Definition: UI.cpp:27
UI window Meant to be a collection of related UIComponents to display at the same time...
Definition: UIWindow.h:26
std::vector< UIWindow * > windows
Definition: UI.h:66
void Render()
Render the UI.
Definition: UI.cpp:9