summaryrefslogtreecommitdiff
path: root/Source/Asura.Editor/Controls/GUIState.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-08 08:56:51 +0800
committerchai <chaifix@163.com>2019-08-08 08:56:51 +0800
commit6a065c913e9308cc72e1ad0723b6167048f439b6 (patch)
tree58cb4f28113949469c56584e32a510713ddbc2c1 /Source/Asura.Editor/Controls/GUIState.h
parent0c391fdbce5a079cf03e483eb6174dd47806163d (diff)
*misc
Diffstat (limited to 'Source/Asura.Editor/Controls/GUIState.h')
-rw-r--r--Source/Asura.Editor/Controls/GUIState.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/Asura.Editor/Controls/GUIState.h b/Source/Asura.Editor/Controls/GUIState.h
new file mode 100644
index 0000000..424a12f
--- /dev/null
+++ b/Source/Asura.Editor/Controls/GUIState.h
@@ -0,0 +1,28 @@
+#ifndef _ASURA_EDITOR_GUI_STATE_H_
+#define _ASURA_EDITOR_GUI_STATE_H_
+
+#include <asura-base/Classes.h>
+
+namespace_begin(AsuraEditor)
+
+/// GUI widgets uniqueID
+class GUIState
+{
+public:
+
+ inline int GetDepth() { return m_Depth; };
+ inline int GetCurrentControlID() { return m_CurrentControlID};
+
+private:
+
+ int m_Depth;
+ bool m_Changed;
+ int m_CurrentControlID;
+
+};
+
+extern GUIState g_GUIState;
+
+namespace_end
+
+#endif \ No newline at end of file