This is only used in rare/specific situations to manufacture an ID out of nowhere.
| 3536 | |
| 3537 | // This is only used in rare/specific situations to manufacture an ID out of nowhere. |
| 3538 | ImGuiID 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 | |
| 3546 | static void SetCurrentWindow(ImGuiWindow* window) |
| 3547 | { |
no test coverage detected