This is only used in rare/specific situations to manufacture an ID out of nowhere.
| 3780 | |
| 3781 | // This is only used in rare/specific situations to manufacture an ID out of nowhere. |
| 3782 | ImGuiID 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 | |
| 3790 | static void SetCurrentWindow(ImGuiWindow* window) |
| 3791 | { |
no test coverage detected