MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / GetColumnsID

Method GetColumnsID

extern/imgui/imgui_tables.cpp:3843–3854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3841}
3842
3843ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count)
3844{
3845 ImGuiWindow* window = GetCurrentWindow();
3846
3847 // Differentiate column ID with an arbitrary prefix for cases where users name their columns set the same as another widget.
3848 // In addition, when an identifier isn't explicitly provided we include the number of columns in the hash to make it uniquer.
3849 PushID(0x11223347 + (str_id ? 0 : columns_count));
3850 ImGuiID id = window->GetID(str_id ? str_id : "columns");
3851 PopID();
3852
3853 return id;
3854}
3855
3856void ImGui::BeginColumns(const char* str_id, int columns_count, ImGuiOldColumnFlags flags)
3857{

Callers

nothing calls this directly

Calls 2

GetCurrentWindowFunction · 0.85
GetIDMethod · 0.80

Tested by

no test coverage detected