| 8160 | } |
| 8161 | |
| 8162 | void ImGuiSelectionBasicStorage::SetItemSelected(ImGuiID id, bool selected) |
| 8163 | { |
| 8164 | int* p_int = _Storage.GetIntRef(id, 0); |
| 8165 | if (selected && *p_int == 0) { *p_int = _SelectionOrder++; Size++; } |
| 8166 | else if (!selected && *p_int != 0) { *p_int = 0; Size--; } |
| 8167 | } |
| 8168 | |
| 8169 | // Optimized for batch edits (with same value of 'selected') |
| 8170 | static void ImGuiSelectionBasicStorage_BatchSetItemSelected(ImGuiSelectionBasicStorage* selection, ImGuiID id, bool selected, int size_before_amends, int selection_order) |
no test coverage detected