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

Method setMessageIcon

Common/MessageBox/MessageBox.h:110–125  ·  view source on GitHub ↗

Set message icon*/

Source from the content-addressed store, hash-verified

108
109 /** Set message icon*/
110 void setMessageIcon(MessageBoxStyle _value)
111 {
112 if (nullptr == mIcon)
113 return;
114
115 if (mIcon->getItemResource() != nullptr)
116 {
117 mIcon->setItemName(getIconName(_value.getIconIndex()));
118 }
119 else
120 {
121 mIcon->setImageIndex(_value.getIconIndex());
122 }
123
124 updateSize();
125 }
126
127 void endMessage(MessageBoxStyle _result)
128 {

Callers

nothing calls this directly

Calls 4

getItemResourceMethod · 0.80
getIconIndexMethod · 0.80
setItemNameMethod · 0.45
setImageIndexMethod · 0.45

Tested by

no test coverage detected