Dummy() create an item so functions such as IsItemHovered() can be used.

features/sdl_renderer3_multiviewports
ocornut ago%!(EXTRA string=10 years)
parent 54805fd22a
commit 06d594e86b
  1. 4
      imgui.cpp

@ -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…
Cancel
Save