Find existing settings
| 3251 | |
| 3252 | // Find existing settings |
| 3253 | ImGuiTableSettings* ImGui::TableSettingsFindByID(ImGuiID id) |
| 3254 | { |
| 3255 | // FIXME-OPT: Might want to store a lookup map for this? |
| 3256 | ImGuiContext& g = *GImGui; |
| 3257 | for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) |
| 3258 | if (settings->ID == id) |
| 3259 | return settings; |
| 3260 | return NULL; |
| 3261 | } |
| 3262 | |
| 3263 | // Get settings for a given table, NULL if none |
| 3264 | ImGuiTableSettings* ImGui::TableGetBoundSettings(ImGuiTable* table) |
nothing calls this directly
no test coverage detected