MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / TableSettingsHandler_ReadOpen

Function TableSettingsHandler_ReadOpen

KBotExt/imgui/imgui_tables.cpp:3428–3445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3426}
3427
3428static 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
3447static void TableSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line)
3448{

Callers

nothing calls this directly

Calls 1

TableSettingsInitFunction · 0.85

Tested by

no test coverage detected