Clear and initialize empty settings instance
| 3171 | |
| 3172 | // Clear and initialize empty settings instance |
| 3173 | static void TableSettingsInit(ImGuiTableSettings* settings, ImGuiID id, int columns_count, int columns_count_max) |
| 3174 | { |
| 3175 | IM_PLACEMENT_NEW(settings) ImGuiTableSettings(); |
| 3176 | ImGuiTableColumnSettings* settings_column = settings->GetColumnSettings(); |
| 3177 | for (int n = 0; n < columns_count_max; n++, settings_column++) |
| 3178 | IM_PLACEMENT_NEW(settings_column) ImGuiTableColumnSettings(); |
| 3179 | settings->ID = id; |
| 3180 | settings->ColumnsCount = (ImGuiTableColumnIdx)columns_count; |
| 3181 | settings->ColumnsCountMax = (ImGuiTableColumnIdx)columns_count_max; |
| 3182 | settings->WantApply = true; |
| 3183 | } |
| 3184 | |
| 3185 | static size_t TableSettingsCalcChunkSize(int columns_count) |
| 3186 | { |
no test coverage detected