From 6a065c913e9308cc72e1ad0723b6167048f439b6 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 8 Aug 2019 08:56:51 +0800 Subject: *misc --- Source/Asura.Editor/Controls/GUIState.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Source/Asura.Editor/Controls/GUIState.h (limited to 'Source/Asura.Editor/Controls/GUIState.h') 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 + +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 -- cgit v1.1-26-g67d0