возвращает список кнопок
| 136 | |
| 137 | // возвращает список кнопок |
| 138 | std::vector<MessageBoxStyle> getButtons() |
| 139 | { |
| 140 | std::vector<MessageBoxStyle> buttons; |
| 141 | |
| 142 | size_t index = 0; |
| 143 | int num = mValue; |
| 144 | while (index < _indexIcon1) |
| 145 | { |
| 146 | if ((num & 1) == 1) |
| 147 | { |
| 148 | buttons.emplace_back(MessageBoxStyle::Enum(MYGUI_FLAG(index))); |
| 149 | } |
| 150 | |
| 151 | ++index; |
| 152 | num >>= 1; |
| 153 | } |
| 154 | |
| 155 | return buttons; |
| 156 | } |
| 157 | |
| 158 | using MapAlign = std::map<std::string, int>; |
| 159 |
no test coverage detected