Dockables uses Name/ID in the global namespace. Non-dockable items use the ID stack.
| 6762 | |
| 6763 | // Dockables uses Name/ID in the global namespace. Non-dockable items use the ID stack. |
| 6764 | static 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 | |
| 6779 | static float ImGui::TabBarCalcMaxTabWidth() |
| 6780 | { |