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

Method BeginTabBar

tutorials/common/imgui/imgui_widgets.cpp:7359–7371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7357}
7358
7359bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags)
7360{
7361 ImGuiContext& g = *GImGui;
7362 ImGuiWindow* window = g.CurrentWindow;
7363 if (window->SkipItems)
7364 return false;
7365
7366 ImGuiID id = window->GetID(str_id);
7367 ImGuiTabBar* tab_bar = g.TabBars.GetOrAddByKey(id);
7368 ImRect tab_bar_bb = ImRect(window->DC.CursorPos.x, window->DC.CursorPos.y, window->WorkRect.Max.x, window->DC.CursorPos.y + g.FontSize + g.Style.FramePadding.y * 2);
7369 tab_bar->ID = id;
7370 return BeginTabBarEx(tab_bar, tab_bar_bb, flags | ImGuiTabBarFlags_IsFocused);
7371}
7372
7373bool ImGui::BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& tab_bar_bb, ImGuiTabBarFlags flags)
7374{

Callers

nothing calls this directly

Calls 3

GetIDMethod · 0.80
GetOrAddByKeyMethod · 0.80
ImRectFunction · 0.70

Tested by

no test coverage detected