MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / CalcFontSize

Function CalcFontSize

KBotExt/imgui/imgui_internal.h:2414–2414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2412 // We don't use g.FontSize because the window may be != g.CurrentWindow.
2413 ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); }
2414 float CalcFontSize() const { ImGuiContext& g = *Ctx; float scale = g.FontBaseSize * FontWindowScale; if (ParentWindow) scale *= ParentWindow->FontWindowScale; return scale; }
2415 float TitleBarHeight() const { ImGuiContext& g = *Ctx; return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + g.Style.FramePadding.y * 2.0f; }
2416 ImRect TitleBarRect() const { return ImRect(Pos, ImVec2(Pos.x + SizeFull.x, Pos.y + TitleBarHeight())); }
2417 float MenuBarHeight() const { ImGuiContext& g = *Ctx; return (Flags & ImGuiWindowFlags_MenuBar) ? DC.MenuBarOffset.y + CalcFontSize() + g.Style.FramePadding.y * 2.0f : 0.0f; }

Callers 2

TitleBarHeightFunction · 0.85
MenuBarHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected