MCPcopy Create free account
hub / github.com/MyGUI/mygui / getButtons

Method getButtons

Common/MessageBox/MessageBoxStyle.h:138–156  ·  view source on GitHub ↗

возвращает список кнопок

Source from the content-addressed store, hash-verified

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

Callers 1

setMessageButtonMethod · 0.80

Calls 2

MYGUI_FLAGFunction · 0.85
EnumEnum · 0.70

Tested by

no test coverage detected