Clear and initialize empty settings instance
| 3225 | |
| 3226 | // Clear and initialize empty settings instance |
| 3227 | static void TableSettingsInit(ImGuiTableSettings* settings, ImGuiID id, int columns_count, int columns_count_max) |
| 3228 | { |
| 3229 | IM_PLACEMENT_NEW(settings) ImGuiTableSettings(); |
| 3230 | ImGuiTableColumnSettings* settings_column = settings->GetColumnSettings(); |
| 3231 | for (int n = 0; n < columns_count_max; n++, settings_column++) |
| 3232 | IM_PLACEMENT_NEW(settings_column) ImGuiTableColumnSettings(); |
| 3233 | settings->ID = id; |
| 3234 | settings->ColumnsCount = (ImGuiTableColumnIdx)columns_count; |
| 3235 | settings->ColumnsCountMax = (ImGuiTableColumnIdx)columns_count_max; |
| 3236 | settings->WantApply = true; |
| 3237 | } |
| 3238 | |
| 3239 | static size_t TableSettingsCalcChunkSize(int columns_count) |
| 3240 | { |
no test coverage detected