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

Method setMessageButton

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

Create button using MessageBoxStyle*/

Source from the content-addressed store, hash-verified

136
137 /** Create button using MessageBoxStyle*/
138 void setMessageButton(MessageBoxStyle _value)
139 {
140 clearButton();
141
142 std::vector<MessageBoxStyle> buttons = _value.getButtons();
143
144 for (const auto& info : buttons)
145 {
146 addButtonName(getButtonName(info));
147
148 mVectorButton.back()->_setInternalData(info);
149
150 if (mVectorButton.size() == 1)
151 mInfoOk = info;
152 mInfoCancel = info;
153 }
154
155 updateSize();
156 }
157
158 /** Set message style (button and icon)*/
159 void setMessageStyle(MessageBoxStyle _value)

Callers

nothing calls this directly

Calls 3

getButtonsMethod · 0.80
_setInternalDataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected