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

Function MenuBarRect

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

Source from the content-addressed store, hash-verified

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
2342//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

TitleBarHeightFunction · 0.85
MenuBarHeightFunction · 0.85
ImRectFunction · 0.70

Tested by

no test coverage detected