This is faster if you are holding on a Window already as we don't need to perform a search.
| 13353 | |
| 13354 | // This is faster if you are holding on a Window already as we don't need to perform a search. |
| 13355 | ImGuiWindowSettings* ImGui::FindWindowSettingsByWindow(ImGuiWindow* window) |
| 13356 | { |
| 13357 | ImGuiContext& g = *GImGui; |
| 13358 | if (window->SettingsOffset != -1) |
| 13359 | return g.SettingsWindows.ptr_from_offset(window->SettingsOffset); |
| 13360 | return FindWindowSettingsByID(window->ID); |
| 13361 | } |
| 13362 | |
| 13363 | // This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more. |
| 13364 | void ImGui::ClearWindowSettings(const char* name) |
nothing calls this directly
no test coverage detected