MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / AlignTextToFramePadding

Method AlignTextToFramePadding

imgui_tiny_app/imgui/imgui_widgets.cpp:1638–1647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1636}
1637
1638void ImGui::AlignTextToFramePadding()
1639{
1640 ImGuiWindow* window = GetCurrentWindow();
1641 if (window->SkipItems)
1642 return;
1643
1644 ImGuiContext& g = *GImGui;
1645 window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2);
1646 window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y);
1647}
1648
1649// Horizontal/vertical separating line
1650// FIXME: Surprisingly, this seemingly trivial widget is a victim of many different legacy/tricky layout issues.

Callers

nothing calls this directly

Calls 2

GetCurrentWindowFunction · 0.85
ImMaxFunction · 0.85

Tested by

no test coverage detected