mirror of
https://github.com/ocornut/imgui.git
synced 2024-10-16 16:25:15 -05:00
Dummy() create an item so functions such as IsItemHovered() can be used.
This commit is contained in:
parent
54805fd22a
commit
06d594e86b
1 changed files with 3 additions and 1 deletions
|
@ -8520,7 +8520,9 @@ void ImGui::Dummy(const ImVec2& size)
|
|||
ImGuiWindow* window = GetCurrentWindow();
|
||||
if (window->SkipItems)
|
||||
return;
|
||||
ItemSize(size);
|
||||
const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
|
||||
ItemSize(bb);
|
||||
ItemAdd(bb, NULL);
|
||||
}
|
||||
|
||||
bool ImGui::IsRectVisible(const ImVec2& size)
|
||||
|
|
Loading…
Reference in a new issue