MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / GetIDFromRectangle

Method GetIDFromRectangle

extern/imgui/imgui.cpp:3538–3544  ·  view source on GitHub ↗

This is only used in rare/specific situations to manufacture an ID out of nowhere.

Source from the content-addressed store, hash-verified

3536
3537// This is only used in rare/specific situations to manufacture an ID out of nowhere.
3538ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs)
3539{
3540 ImGuiID seed = IDStack.back();
3541 ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs);
3542 ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed);
3543 return id;
3544}
3545
3546static void SetCurrentWindow(ImGuiWindow* window)
3547{

Callers 3

IsItemHoveredMethod · 0.80
BeginDragDropSourceMethod · 0.80
BeginDragDropTargetMethod · 0.80

Calls 2

WindowRectAbsToRelFunction · 0.85
ImHashDataFunction · 0.85

Tested by

no test coverage detected