| 7357 | } |
| 7358 | |
| 7359 | bool 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 | |
| 7373 | bool ImGui::BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& tab_bar_bb, ImGuiTabBarFlags flags) |
| 7374 | { |
nothing calls this directly
no test coverage detected