MCPcopy Create free account
hub / github.com/RenderKit/embree / GetTabBarRefFromTabBar

Function GetTabBarRefFromTabBar

tutorials/common/imgui/imgui_widgets.cpp:7351–7357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7349}
7350
7351static ImGuiPtrOrIndex GetTabBarRefFromTabBar(ImGuiTabBar* tab_bar)
7352{
7353 ImGuiContext& g = *GImGui;
7354 if (g.TabBars.Contains(tab_bar))
7355 return ImGuiPtrOrIndex(g.TabBars.GetIndex(tab_bar));
7356 return ImGuiPtrOrIndex(tab_bar);
7357}
7358
7359bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags)
7360{

Callers 1

BeginTabBarExMethod · 0.85

Calls 3

ImGuiPtrOrIndexClass · 0.85
GetIndexMethod · 0.80
ContainsMethod · 0.45

Tested by

no test coverage detected