MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / ApplyWindowSettings

Function ApplyWindowSettings

ImGUI GLFW Tutorial/imgui/imgui.cpp:5115–5121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5113}
5114
5115static void ApplyWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings)
5116{
5117 window->Pos = ImFloor(ImVec2(settings->Pos.x, settings->Pos.y));
5118 if (settings->Size.x > 0 && settings->Size.y > 0)
5119 window->Size = window->SizeFull = ImFloor(ImVec2(settings->Size.x, settings->Size.y));
5120 window->Collapsed = settings->Collapsed;
5121}
5122
5123static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags)
5124{

Callers 2

CreateNewWindowFunction · 0.70

Calls 2

ImFloorFunction · 0.70
ImVec2Function · 0.70

Tested by

no test coverage detected