MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetIDFromRectangle

Method GetIDFromRectangle

KBotExt/imgui/imgui.cpp:3782–3788  ·  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

3780
3781// This is only used in rare/specific situations to manufacture an ID out of nowhere.
3782ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs)
3783{
3784 ImGuiID seed = IDStack.back();
3785 ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs);
3786 ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed);
3787 return id;
3788}
3789
3790static void SetCurrentWindow(ImGuiWindow* window)
3791{

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