MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / ApplyWindowSettings

Function ApplyWindowSettings

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:5730–5736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5728}
5729
5730static void ApplyWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings)
5731{
5732 window->Pos = ImTrunc(ImVec2(settings->Pos.x, settings->Pos.y));
5733 if (settings->Size.x > 0 && settings->Size.y > 0)
5734 window->Size = window->SizeFull = ImTrunc(ImVec2(settings->Size.x, settings->Size.y));
5735 window->Collapsed = settings->Collapsed;
5736}
5737
5738static void UpdateWindowInFocusOrderList(ImGuiWindow* window, bool just_created, ImGuiWindowFlags new_flags)
5739{

Callers 2

InitOrLoadWindowSettingsFunction · 0.85

Calls 2

ImTruncFunction · 0.85
ImVec2Function · 0.85

Tested by

no test coverage detected