Neo  0.5.0
Developer Documentation
WindowManager.h
Go to the documentation of this file.
1 #ifndef __WINDOW_MANAGER_H
2 #define __WINDOW_MANAGER_H
3 
4 #include <Neo2DEngine.h>
5 #include <Container.h>
6 #include <vector>
7 
8 namespace Neo2D
9 {
10 namespace Gui
11 {
12 using namespace Neo;
13 
14 // Forward declaration of Gui::Window
15 class Window;
16 
23 class NEO2D_EXPORT WindowManager : public Container
24 {
25  private:
26  Window* m_selectedWindow;
27 
28  public:
29  WindowManager(unsigned int x, unsigned int y, unsigned int width,
30  unsigned int height, const char* label)
31  : Container(x, y, width, height, label),
32  m_selectedWindow(NULL)
33  {
34  }
35 
36  ~WindowManager();
37 
38  DISOWN(Window* window) void addWindow(Window* window);
39  void draw();
40  void update();
41 
42  DISOWN(Window* window) void selectWindow(Window* w);
43  Window* getSelectedWindow() { return m_selectedWindow; }
44 
45  bool isMouseOver();
46 };
47 
48 }
49 }
50 
51 #endif
This class manages all windows on screen, that means managing order and selection of windows...
Definition: WindowManager.h:23
A Container organizes multiple Widgets into one to provide layout functionality.
Definition: Container.h:20
Window * getSelectedWindow()
Definition: WindowManager.h:43
Definition: Button.h:42
WindowManager(unsigned int x, unsigned int y, unsigned int width, unsigned int height, const char *label)
Definition: WindowManager.h:29
Definition: Color.h:29
This class implements a Window that can be used to display widgets.
Definition: Window.h:33