| 219 | |
| 220 | template<int N> |
| 221 | void SetItems(const ItemExt (&items)[N]) |
| 222 | { |
| 223 | for (int i = 0; i < N; ++i) |
| 224 | { |
| 225 | const ItemExt& item = items[i]; |
| 226 | if (item.itemFormat == kSeparatorString) |
| 227 | Ui::Windows::gDropdown.items[i] = Separator(); |
| 228 | else |
| 229 | Ui::Windows::gDropdown.items[i] = ToggleOption(item.stringId); |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | template<int N> |
| 234 | constexpr bool ItemIDsMatchIndices(const ItemExt (&items)[N]) |
no test coverage detected