MCPcopy Create free account
hub / github.com/RenderKit/embree / MenuBarHeight

Function MenuBarHeight

tutorials/common/imgui/imgui_internal.h:2338–2338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2336 float TitleBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + g.Style.FramePadding.y * 2.0f; }
2337 ImRect TitleBarRect() const { return ImRect(Pos, ImVec2(Pos.x + SizeFull.x, Pos.y + TitleBarHeight())); }
2338 float MenuBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_MenuBar) ? DC.MenuBarOffset.y + CalcFontSize() + g.Style.FramePadding.y * 2.0f : 0.0f; }
2339 ImRect MenuBarRect() const { float y1 = Pos.y + TitleBarHeight(); return ImRect(Pos.x, y1, Pos.x + SizeFull.x, y1 + MenuBarHeight()); }
2340};
2341

Callers 1

MenuBarRectFunction · 0.85

Calls 1

CalcFontSizeFunction · 0.85

Tested by

no test coverage detected