MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / PushStyleCompact

Function PushStyleCompact

extern/imgui/imgui_demo.cpp:3739–3744  ·  view source on GitHub ↗

Make the UI compact because there are so many fields

Source from the content-addressed store, hash-verified

3737
3738// Make the UI compact because there are so many fields
3739static void PushStyleCompact()
3740{
3741 ImGuiStyle& style = ImGui::GetStyle();
3742 ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(style.FramePadding.x, (float)(int)(style.FramePadding.y * 0.60f)));
3743 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x, (float)(int)(style.ItemSpacing.y * 0.60f)));
3744}
3745
3746static void PopStyleCompact()
3747{

Callers 1

ShowDemoWindowTablesFunction · 0.85

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected