This is only used in rare/specific situations to manufacture an ID out of nowhere.
| 3456 | |
| 3457 | // This is only used in rare/specific situations to manufacture an ID out of nowhere. |
| 3458 | ImGuiID 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 | |
| 3466 | static void SetCurrentWindow(ImGuiWindow* window) |
| 3467 | { |
no test coverage detected