From b329a36d2707a94806f85e6d3af3b10c242f6440 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 2 Feb 2016 19:52:30 +0100 Subject: [PATCH] Moved declaration of SetItemAllowOverlap() to imgui.h (ref #517) --- imgui.h | 1 + imgui_internal.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.h b/imgui.h index a6a249d09..dbb7f8543 100644 --- a/imgui.h +++ b/imgui.h @@ -374,6 +374,7 @@ namespace ImGui IMGUI_API ImVec2 GetItemRectMin(); // get bounding rect of last item in screen space IMGUI_API ImVec2 GetItemRectMax(); // " IMGUI_API ImVec2 GetItemRectSize(); // " + IMGUI_API void SetItemAllowOverlap(); // allow last item to be overlapped by a subsequent item. sometimes useful with invisible buttons, selectables, etc. to catch unused area. IMGUI_API bool IsWindowHovered(); // is current window hovered and hoverable (not blocked by a popup) (differentiate child windows from each others) IMGUI_API bool IsWindowFocused(); // is current window focused IMGUI_API bool IsRootWindowFocused(); // is current root window focused (top parent window in case of child windows) diff --git a/imgui_internal.h b/imgui_internal.h index c8748ada1..54c777e0d 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -692,7 +692,6 @@ namespace ImGui IMGUI_API void FocusableItemUnregister(ImGuiWindow* window); IMGUI_API ImVec2 CalcItemSize(ImVec2 size, float default_x, float default_y); IMGUI_API float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x); - IMGUI_API void SetItemAllowOverlap(); // Allow last item to be overlapped by a subsequent item IMGUI_API void OpenPopupEx(const char* str_id, bool reopen_existing);