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

Method getIconIndex

Common/MessageBox/MessageBoxStyle.h:102–117  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

100
101 // возвращает индекс иконки
102 size_t getIconIndex()
103 {
104 size_t index = 0;
105 int num = mValue >> _indexIcon1;
106
107 while (num != 0)
108 {
109 if ((num & 1) == 1)
110 return index;
111
112 ++index;
113 num >>= 1;
114 }
115
116 return ITEM_NONE;
117 }
118
119 // возвращает индекс иконки
120 size_t getButtonIndex()

Callers 1

setMessageIconMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected