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

Method getButtonIndex

Common/MessageBox/MessageBoxStyle.h:120–135  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

118
119 // возвращает индекс иконки
120 size_t getButtonIndex()
121 {
122 size_t index = 0;
123 int num = mValue;
124
125 while (num != 0)
126 {
127 if ((num & 1) == 1)
128 return index;
129
130 ++index;
131 num >>= 1;
132 }
133
134 return ITEM_NONE;
135 }
136
137 // возвращает список кнопок
138 std::vector<MessageBoxStyle> getButtons()

Callers 1

getButtonNameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected