MCPcopy Create free account
hub / github.com/ZeroMemoryEx/Chaos-Rootkit / AlignTextToFramePadding

Method AlignTextToFramePadding

ring3-gui/libs/imgui/imgui_widgets.cpp:1383–1392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383void ImGui::AlignTextToFramePadding()
1384{
1385 ImGuiWindow* window = GetCurrentWindow();
1386 if (window->SkipItems)
1387 return;
1388
1389 ImGuiContext& g = *GImGui;
1390 window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2);
1391 window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y);
1392}
1393
1394// Horizontal/vertical separating line
1395// 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