| 8424 | } |
| 8425 | |
| 8426 | void ImGuiSelectionBasicStorage::SetItemSelected(ImGuiID id, bool selected) |
| 8427 | { |
| 8428 | int* p_int = _Storage.GetIntRef(id, 0); |
| 8429 | if (selected && *p_int == 0) { *p_int = _SelectionOrder++; Size++; } |
| 8430 | else if (!selected && *p_int != 0) { *p_int = 0; Size--; } |
| 8431 | } |
| 8432 | |
| 8433 | // Optimized for batch edits (with same value of 'selected') |
| 8434 | static void ImGuiSelectionBasicStorage_BatchSetItemSelected(ImGuiSelectionBasicStorage* selection, ImGuiID id, bool selected, int size_before_amends, int selection_order) |
no test coverage detected