MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / AlignTextToFramePadding

Method AlignTextToFramePadding

include/imgui/imgui_widgets.cpp:1637–1646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1635}
1636
1637void ImGui::AlignTextToFramePadding()
1638{
1639 ImGuiWindow* window = GetCurrentWindow();
1640 if (window->SkipItems)
1641 return;
1642
1643 ImGuiContext& g = *GImGui;
1644 window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2);
1645 window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y);
1646}
1647
1648// Horizontal/vertical separating line
1649// 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