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

Method GetIDFromRectangle

Dependencies/ImGui/src/imgui.cpp:9194–9200  ·  view source on GitHub ↗

"

Source from the content-addressed store, hash-verified

9192
9193// "
9194ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs)
9195{
9196 ImGuiID seed = IDStack.back();
9197 ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs);
9198 ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed);
9199 return id;
9200}
9201
9202void ImGui::PushID(const char* str_id)
9203{

Callers 2

BeginDragDropSourceMethod · 0.80
BeginDragDropTargetMethod · 0.80

Calls 2

WindowRectAbsToRelFunction · 0.85
ImHashDataFunction · 0.85

Tested by

no test coverage detected