MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / ApplyWindowSettings

Function ApplyWindowSettings

plugins/Cardinal/src/DearImGui/imgui.cpp:5282–5288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5280}
5281
5282static void ApplyWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings)
5283{
5284 window->Pos = ImFloor(ImVec2(settings->Pos.x, settings->Pos.y));
5285 if (settings->Size.x > 0 && settings->Size.y > 0)
5286 window->Size = window->SizeFull = ImFloor(ImVec2(settings->Size.x, settings->Size.y));
5287 window->Collapsed = settings->Collapsed;
5288}
5289
5290static void UpdateWindowInFocusOrderList(ImGuiWindow* window, bool just_created, ImGuiWindowFlags new_flags)
5291{

Callers 2

CreateNewWindowFunction · 0.85

Calls 2

ImFloorFunction · 0.85
ImVec2Function · 0.85

Tested by

no test coverage detected