| 7536 | } |
| 7537 | |
| 7538 | bool 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 | |
| 7552 | bool ImGui::BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& tab_bar_bb, ImGuiTabBarFlags flags) |
| 7553 | { |
nothing calls this directly
no test coverage detected