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

Method onMouseLostFocus

Plugins/Plugin_StrangeButton/StrangeButton.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 void StrangeButton::onMouseLostFocus(MyGUI::Widget* _new)
30 {
31 Base::onMouseLostFocus(_new);
32
33 if (getSubWidgetText() == nullptr)
34 return;
35
36 std::string s;
37 std::string str = getSubWidgetText()->getCaption();
38 for (int i = (int)str.length() - 1; i >= 0; i--)
39 s += str[i];
40
41 getSubWidgetText()->setCaption(s);
42 }
43
44} // namespace plugin

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
setCaptionMethod · 0.45

Tested by

no test coverage detected