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

Method notifyNewGridStep

Tools/LayoutEditor/SettingsGeneralControl.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void SettingsGeneralControl::notifyNewGridStep(MyGUI::Widget* _sender, MyGUI::Widget* _new)
60 {
61 mGridStep = MyGUI::utility::parseInt(mGridEdit->getOnlyText());
62 mGridStep = (std::max)(1, mGridStep);
63 mGridEdit->setCaption(MyGUI::utility::toString(mGridStep));
64 }
65
66 void SettingsGeneralControl::notifyNewGridStepAccept(MyGUI::EditBox* _sender)
67 {

Callers

nothing calls this directly

Calls 4

parseIntFunction · 0.85
toStringFunction · 0.85
getOnlyTextMethod · 0.45
setCaptionMethod · 0.45

Tested by

no test coverage detected