MCPcopy Create free account
hub / github.com/Raais/ImStudio / AlignTextToFramePadding

Method AlignTextToFramePadding

src/third-party/imgui/imgui_widgets.cpp:1351–1360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1349}
1350
1351void ImGui::AlignTextToFramePadding()
1352{
1353 ImGuiWindow* window = GetCurrentWindow();
1354 if (window->SkipItems)
1355 return;
1356
1357 ImGuiContext& g = *GImGui;
1358 window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2);
1359 window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y);
1360}
1361
1362// Horizontal/vertical separating line
1363void ImGui::SeparatorEx(ImGuiSeparatorFlags flags)

Callers

nothing calls this directly

Calls 2

GetCurrentWindowFunction · 0.85
ImMaxFunction · 0.85

Tested by

no test coverage detected