| 3426 | } |
| 3427 | |
| 3428 | static void* TableSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) |
| 3429 | { |
| 3430 | ImGuiID id = 0; |
| 3431 | int columns_count = 0; |
| 3432 | if (sscanf(name, "0x%08X,%d", &id, &columns_count) < 2) |
| 3433 | return NULL; |
| 3434 | |
| 3435 | if (ImGuiTableSettings* settings = ImGui::TableSettingsFindByID(id)) |
| 3436 | { |
| 3437 | if (settings->ColumnsCountMax >= columns_count) |
| 3438 | { |
| 3439 | TableSettingsInit(settings, id, columns_count, settings->ColumnsCountMax); // Recycle |
| 3440 | return settings; |
| 3441 | } |
| 3442 | settings->ID = 0; // Invalidate storage, we won't fit because of a count change |
| 3443 | } |
| 3444 | return ImGui::TableSettingsCreate(id, columns_count); |
| 3445 | } |
| 3446 | |
| 3447 | static void TableSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) |
| 3448 | { |
nothing calls this directly
no test coverage detected