summaryrefslogtreecommitdiffstats
path: root/source/cWindowOwner.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cWindowOwner.h')
-rw-r--r--source/cWindowOwner.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/cWindowOwner.h b/source/cWindowOwner.h
new file mode 100644
index 000000000..b60b97b6c
--- /dev/null
+++ b/source/cWindowOwner.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "MemoryLeak.h"
+
+class cWindow;
+class cWindowOwner
+{
+public:
+ cWindowOwner() : m_Window( 0 ) {}
+ void CloseWindow() { m_Window = 0; }
+ void OpenWindow( cWindow* a_Window ) { m_Window = a_Window; }
+
+ cWindow* GetWindow() { return m_Window; }
+private:
+ cWindow* m_Window;
+}; \ No newline at end of file