forked from Dzejrou/tdt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGUIWindow.hpp
More file actions
49 lines (42 loc) · 917 Bytes
/
Copy pathGUIWindow.hpp
File metadata and controls
49 lines (42 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#include <CEGUI/CEGUI.h>
/**
* Abstract class that custom GUI windows inherit from, prevents unnecessary
* rewriting of common functions (like visibility setting and window_ assignment on init).
*/
class GUIWindow
{
public:
/**
* Constructor.
*/
GUIWindow();
/**
* Destructor.
*/
virtual ~GUIWindow() {}
/**
* Brief: Initializes the window_ variable and calls the protected
* init_ function.
*/
void init(CEGUI::Window*);
/**
* Brief: Sets the visibolity status of this window.
* Param: The new visibility status.
*/
virtual void set_visible(bool);
/**
* Brief: Returns true if the window is visible,
* false otherwise.
*/
bool is_visible() const;
protected:
/**
* Root window.
*/
CEGUI::Window* window_;
/**
* Brief: Specific init function for each inheriting class.
*/
virtual void init_() = 0;
};