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

Method BeginTabBar

KBotExt/imgui/imgui_widgets.cpp:7538–7550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7536}
7537
7538bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags)
7539{
7540 ImGuiContext& g = *GImGui;
7541 ImGuiWindow* window = g.CurrentWindow;
7542 if (window->SkipItems)
7543 return false;
7544
7545 ImGuiID id = window->GetID(str_id);
7546 ImGuiTabBar* tab_bar = g.TabBars.GetOrAddByKey(id);
7547 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);
7548 tab_bar->ID = id;
7549 return BeginTabBarEx(tab_bar, tab_bar_bb, flags | ImGuiTabBarFlags_IsFocused);
7550}
7551
7552bool ImGui::BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& tab_bar_bb, ImGuiTabBarFlags flags)
7553{

Callers

nothing calls this directly

Calls 3

GetIDMethod · 0.80
GetOrAddByKeyMethod · 0.80
ImRectFunction · 0.70

Tested by

no test coverage detected