Clear and initialize empty settings instance
| 3136 | |
| 3137 | // Clear and initialize empty settings instance |
| 3138 | static void TableSettingsInit(ImGuiTableSettings* settings, ImGuiID id, int columns_count, int columns_count_max) |
| 3139 | { |
| 3140 | IM_PLACEMENT_NEW(settings) ImGuiTableSettings(); |
| 3141 | ImGuiTableColumnSettings* settings_column = settings->GetColumnSettings(); |
| 3142 | for (int n = 0; n < columns_count_max; n++, settings_column++) |
| 3143 | IM_PLACEMENT_NEW(settings_column) ImGuiTableColumnSettings(); |
| 3144 | settings->ID = id; |
| 3145 | settings->ColumnsCount = (ImGuiTableColumnIdx)columns_count; |
| 3146 | settings->ColumnsCountMax = (ImGuiTableColumnIdx)columns_count_max; |
| 3147 | settings->WantApply = true; |
| 3148 | } |
| 3149 | |
| 3150 | static size_t TableSettingsCalcChunkSize(int columns_count) |
| 3151 | { |
no test coverage detected