MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / GetIDFromRectangle

Method GetIDFromRectangle

Dependencies/ImGui/src/imgui.cpp:9820–9826  ·  view source on GitHub ↗

"

Source from the content-addressed store, hash-verified

9818
9819// "
9820ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs)
9821{
9822 ImGuiID seed = IDStack.back();
9823 ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs);
9824 ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed);
9825 return id;
9826}
9827
9828void ImGui::PushID(const char* str_id)
9829{

Callers 2

BeginDragDropSourceMethod · 0.80
BeginDragDropTargetMethod · 0.80

Calls 2

WindowRectAbsToRelFunction · 0.85
ImHashDataFunction · 0.85

Tested by

no test coverage detected