MCPcopy Create free account
hub / github.com/RenderKit/embree / GetIDFromRectangle

Method GetIDFromRectangle

tutorials/common/imgui/imgui.cpp:3458–3464  ·  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

3456
3457// This is only used in rare/specific situations to manufacture an ID out of nowhere.
3458ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs)
3459{
3460 ImGuiID seed = IDStack.back();
3461 ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs);
3462 ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed);
3463 return id;
3464}
3465
3466static void SetCurrentWindow(ImGuiWindow* window)
3467{

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