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

Method GetColumnsID

tutorials/common/imgui/imgui_tables.cpp:3844–3855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

GetCurrentWindowFunction · 0.85
GetIDMethod · 0.80

Tested by

no test coverage detected