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

Method AlignTextToFramePadding

include/imgui/imgui_widgets.cpp:1631–1640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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