MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetTabBarRefFromTabBar

Function GetTabBarRefFromTabBar

KBotExt/imgui/imgui_widgets.cpp:7530–7536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7528}
7529
7530static ImGuiPtrOrIndex GetTabBarRefFromTabBar(ImGuiTabBar* tab_bar)
7531{
7532 ImGuiContext& g = *GImGui;
7533 if (g.TabBars.Contains(tab_bar))
7534 return ImGuiPtrOrIndex(g.TabBars.GetIndex(tab_bar));
7535 return ImGuiPtrOrIndex(tab_bar);
7536}
7537
7538bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags)
7539{

Callers 1

BeginTabBarExMethod · 0.85

Calls 3

ImGuiPtrOrIndexClass · 0.85
ContainsMethod · 0.80
GetIndexMethod · 0.80

Tested by

no test coverage detected