| 7343 | } |
| 7344 | |
| 7345 | static ImGuiTabBar* GetTabBarFromTabBarRef(const ImGuiPtrOrIndex& ref) |
| 7346 | { |
| 7347 | ImGuiContext& g = *GImGui; |
| 7348 | return ref.Ptr ? (ImGuiTabBar*)ref.Ptr : g.TabBars.GetByIndex(ref.Index); |
| 7349 | } |
| 7350 | |
| 7351 | static ImGuiPtrOrIndex GetTabBarRefFromTabBar(ImGuiTabBar* tab_bar) |
| 7352 | { |