MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / TabBarCalcTabID

Method TabBarCalcTabID

lib/imgui/imgui_widgets.cpp:6764–6777  ·  view source on GitHub ↗

Dockables uses Name/ID in the global namespace. Non-dockable items use the ID stack.

Source from the content-addressed store, hash-verified

6762
6763// Dockables uses Name/ID in the global namespace. Non-dockable items use the ID stack.
6764static ImU32 ImGui::TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label)
6765{
6766 if (tab_bar->Flags & ImGuiTabBarFlags_DockNode)
6767 {
6768 ImGuiID id = ImHashStr(label);
6769 KeepAliveID(id);
6770 return id;
6771 }
6772 else
6773 {
6774 ImGuiWindow* window = GImGui->CurrentWindow;
6775 return window->GetID(label);
6776 }
6777}
6778
6779static float ImGui::TabBarCalcMaxTabWidth()
6780{

Callers

nothing calls this directly

Calls 2

ImHashStrFunction · 0.85
GetIDMethod · 0.45

Tested by

no test coverage detected