Get settings for a given table, NULL if none
| 3208 | |
| 3209 | // Get settings for a given table, NULL if none |
| 3210 | ImGuiTableSettings* 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) |
| 3225 | void ImGui::TableResetSettings(ImGuiTable* table) |
nothing calls this directly
no test coverage detected