dEngine
Simple 2D C++ game engine
UIWindow.h
Go to the documentation of this file.
1 #ifndef DENGINE_UIWINDOW_H
2 #define DENGINE_UIWINDOW_H
3 #include <vector>
4 #include "UIComponent.h"
5 
6 namespace dengine_UI{
26  class UIWindow{
27  public:
33  void Push(UIComponent *);
38  void Pop();
43  virtual void Render();
44 
49  virtual void Update();
50 
51  private:
52  std::vector<class UIComponent *> components;
53  };
54 }
55 #endif //DENGINE_UIWINDOW_H
void Pop()
Pop a UI element from the stack.
Definition: UIWindow.cpp:9
virtual void Update()
Update function.
Definition: UIWindow.cpp:20
std::vector< class UIComponent * > components
Definition: UIWindow.h:52
A component of a UI window.
Definition: UIComponent.h:14
Definition: Circle.h:11
virtual void Render()
Render function.
Definition: UIWindow.cpp:13
UI window Meant to be a collection of related UIComponents to display at the same time...
Definition: UIWindow.h:26
void Push(UIComponent *)
Push a component onto the stack.
Definition: UIWindow.cpp:5