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/GUIButton.h | 5 +++-- Source/Asura.Editor/Controls/GUIClip.h | 10 ++++++++++ Source/Asura.Editor/Controls/GUIContent.h | 6 +++++- Source/Asura.Editor/Controls/GUIPanel.h | 10 +++++++++- Source/Asura.Editor/Controls/GUIState.h | 28 ++++++++++++++++++++++++++++ 5 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 Source/Asura.Editor/Controls/GUIState.h (limited to 'Source/Asura.Editor/Controls') diff --git a/Source/Asura.Editor/Controls/GUIButton.h b/Source/Asura.Editor/Controls/GUIButton.h index e1199db..47da571 100644 --- a/Source/Asura.Editor/Controls/GUIButton.h +++ b/Source/Asura.Editor/Controls/GUIButton.h @@ -2,13 +2,14 @@ #define _ASURA_EDITOR_GUI_BUTTON_H_ #include +#include namespace_begin(AsuraEditor) +bool GUIButton(int controlID); bool GUIButton(); - namespace_end -#endif +#endif \ No newline at end of file diff --git a/Source/Asura.Editor/Controls/GUIClip.h b/Source/Asura.Editor/Controls/GUIClip.h index 38b6094..f2aafad 100644 --- a/Source/Asura.Editor/Controls/GUIClip.h +++ b/Source/Asura.Editor/Controls/GUIClip.h @@ -1,6 +1,16 @@ #ifndef _ASURA_GUICLIP_H_ #define _ASURA_GUICLIP_H_ +#include +#include +namespace_begin(AsuraEditor) + +class GUIClip +{ + +}; + +namespace_end #endif diff --git a/Source/Asura.Editor/Controls/GUIContent.h b/Source/Asura.Editor/Controls/GUIContent.h index 88213f4..034aa42 100644 --- a/Source/Asura.Editor/Controls/GUIContent.h +++ b/Source/Asura.Editor/Controls/GUIContent.h @@ -8,10 +8,14 @@ namespace_begin(AsuraEditor) /// IMGUI content class GUIContent { +public: + + GUIContent(); + ~GUIContent(); }; namespace_end -#endif +#endif \ No newline at end of file diff --git a/Source/Asura.Editor/Controls/GUIPanel.h b/Source/Asura.Editor/Controls/GUIPanel.h index 105edde..0f98eaa 100644 --- a/Source/Asura.Editor/Controls/GUIPanel.h +++ b/Source/Asura.Editor/Controls/GUIPanel.h @@ -8,9 +8,17 @@ namespace_begin(AsuraEditor) /// IMGUI panel class GUIPanel { +public: + + GUIPanel(); + ~GUIPanel(); + +private: + + }; namespace_end -#endif +#endif \ No newline at end of file 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