MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / GetIDFromRectangle

Method GetIDFromRectangle

imgui_tiny_app/imgui/imgui.cpp:9832–9838  ·  view source on GitHub ↗

"

Source from the content-addressed store, hash-verified

9830
9831// "
9832ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs)
9833{
9834 ImGuiID seed = IDStack.back();
9835 ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs);
9836 ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed);
9837 return id;
9838}
9839
9840void ImGui::PushID(const char* str_id)
9841{

Callers 2

BeginDragDropSourceMethod · 0.80
BeginDragDropTargetMethod · 0.80

Calls 2

WindowRectAbsToRelFunction · 0.85
ImHashDataFunction · 0.85

Tested by

no test coverage detected