From 55957e1c645f825c07969e0065abe2db151cef50 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 4 Apr 2020 17:41:21 -0700 Subject: Moved ImGuiScopedDisabler to ImGui namespace and renamed to ScopedDisabler --- Imgui/interface/ImGuiUtils.hpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'Imgui/interface') diff --git a/Imgui/interface/ImGuiUtils.hpp b/Imgui/interface/ImGuiUtils.hpp index 8639742..f3c5a91 100644 --- a/Imgui/interface/ImGuiUtils.hpp +++ b/Imgui/interface/ImGuiUtils.hpp @@ -33,13 +33,13 @@ #include "../../ThirdParty/imgui/imgui.h" #include "../../ThirdParty/imgui/imgui_internal.h" -namespace Diligent +namespace ImGui { -class ImGuiScopedDisabler +class ScopedDisabler { public: - explicit ImGuiScopedDisabler(bool Disable, float AlphaScale = 0.25f) : + explicit ScopedDisabler(bool Disable, float AlphaScale = 0.25f) : m_IsDisabled{Disable} { if (m_IsDisabled) @@ -49,7 +49,7 @@ public: } } - ~ImGuiScopedDisabler() + ~ScopedDisabler() { if (m_IsDisabled) { @@ -62,11 +62,6 @@ private: const bool m_IsDisabled; }; -} // namespace Diligent - -namespace ImGui -{ - template inline bool Checkbox(const char* label, T* v) { -- cgit v1.2.3