MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / AlignTextToFramePadding

Method AlignTextToFramePadding

libs/imgui/imgui.cpp:6161–6170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6159}
6160
6161void ImGui::AlignTextToFramePadding()
6162{
6163 ImGuiWindow* window = GetCurrentWindow();
6164 if (window->SkipItems)
6165 return;
6166
6167 ImGuiContext& g = *GImGui;
6168 window->DC.CurrentLineHeight = ImMax(window->DC.CurrentLineHeight, g.FontSize + g.Style.FramePadding.y * 2);
6169 window->DC.CurrentLineTextBaseOffset = ImMax(window->DC.CurrentLineTextBaseOffset, g.Style.FramePadding.y);
6170}
6171
6172// Add a label+text combo aligned to other label+value widgets
6173void ImGui::LabelTextV(const char* label, const char* fmt, va_list args)

Callers

nothing calls this directly

Calls 2

GetCurrentWindowFunction · 0.85
ImMaxFunction · 0.85

Tested by

no test coverage detected