This is faster if you are holding on a Window already as we don't need to perform a search.
| 15714 | |
| 15715 | // This is faster if you are holding on a Window already as we don't need to perform a search. |
| 15716 | ImGuiWindowSettings* ImGui::FindWindowSettingsByWindow(ImGuiWindow* window) |
| 15717 | { |
| 15718 | ImGuiContext& g = *GImGui; |
| 15719 | if (window->SettingsOffset != -1) |
| 15720 | return g.SettingsWindows.ptr_from_offset(window->SettingsOffset); |
| 15721 | return FindWindowSettingsByID(window->ID); |
| 15722 | } |
| 15723 | |
| 15724 | // This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more. |
| 15725 | void ImGui::ClearWindowSettings(const char* name) |
nothing calls this directly
no test coverage detected