MCPcopy Create free account
hub / github.com/cinder/Cinder / GetIDFromRectangle

Method GetIDFromRectangle

src/imgui/imgui.cpp:9024–9030  ·  view source on GitHub ↗

"

Source from the content-addressed store, hash-verified

9022
9023// "
9024ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs)
9025{
9026 ImGuiID seed = IDStack.back();
9027 ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs);
9028 ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed);
9029 return id;
9030}
9031
9032void ImGui::PushID(const char* str_id)
9033{

Callers 2

BeginDragDropSourceMethod · 0.80
BeginDragDropTargetMethod · 0.80

Calls 3

WindowRectAbsToRelFunction · 0.85
ImHashDataFunction · 0.85
backMethod · 0.80

Tested by

no test coverage detected