This is faster if you are holding on a Window already as we don't need to perform a search.
| 16376 | |
| 16377 | // This is faster if you are holding on a Window already as we don't need to perform a search. |
| 16378 | ImGuiWindowSettings* ImGui::FindWindowSettingsByWindow(ImGuiWindow* window) |
| 16379 | { |
| 16380 | ImGuiContext& g = *GImGui; |
| 16381 | if (window->SettingsOffset != -1) |
| 16382 | return g.SettingsWindows.ptr_from_offset(window->SettingsOffset); |
| 16383 | return FindWindowSettingsByID(window->ID); |
| 16384 | } |
| 16385 | |
| 16386 | // This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more. |
| 16387 | void ImGui::ClearWindowSettings(const char* name) |
nothing calls this directly
no test coverage detected