| 7522 | } |
| 7523 | |
| 7524 | static ImGuiTabBar* GetTabBarFromTabBarRef(const ImGuiPtrOrIndex& ref) |
| 7525 | { |
| 7526 | ImGuiContext& g = *GImGui; |
| 7527 | return ref.Ptr ? (ImGuiTabBar*)ref.Ptr : g.TabBars.GetByIndex(ref.Index); |
| 7528 | } |
| 7529 | |
| 7530 | static ImGuiPtrOrIndex GetTabBarRefFromTabBar(ImGuiTabBar* tab_bar) |
| 7531 | { |