diff options
author | chai <chaifix@163.com> | 2019-08-08 08:56:51 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-08 08:56:51 +0800 |
commit | 6a065c913e9308cc72e1ad0723b6167048f439b6 (patch) | |
tree | 58cb4f28113949469c56584e32a510713ddbc2c1 /Source/Asura.Editor/Controls/GUIState.h | |
parent | 0c391fdbce5a079cf03e483eb6174dd47806163d (diff) |
*misc
Diffstat (limited to 'Source/Asura.Editor/Controls/GUIState.h')
-rw-r--r-- | Source/Asura.Editor/Controls/GUIState.h | 28 |
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 |