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

Method TableGetBoundSettings

tutorials/common/imgui/imgui_tables.cpp:3210–3222  ·  view source on GitHub ↗

Get settings for a given table, NULL if none

Source from the content-addressed store, hash-verified

3208
3209// Get settings for a given table, NULL if none
3210ImGuiTableSettings* ImGui::TableGetBoundSettings(ImGuiTable* table)
3211{
3212 if (table->SettingsOffset != -1)
3213 {
3214 ImGuiContext& g = *GImGui;
3215 ImGuiTableSettings* settings = g.SettingsTables.ptr_from_offset(table->SettingsOffset);
3216 IM_ASSERT(settings->ID == table->ID);
3217 if (settings->ColumnsCountMax >= table->ColumnsCount)
3218 return settings; // OK
3219 settings->ID = 0; // Invalidate storage, we won't fit because of a count change
3220 }
3221 return NULL;
3222}
3223
3224// Restore initial state of table (with or without saved settings)
3225void ImGui::TableResetSettings(ImGuiTable* table)

Callers

nothing calls this directly

Calls 1

ptr_from_offsetMethod · 0.80

Tested by

no test coverage detected