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

Method updateButton

Tools/LayoutEditor/PropertyFieldPosition.cpp:189–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 }
188
189 void PropertyFieldPosition::updateButton()
190 {
191 WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(mCurrentWidget);
192 if (widgetContainer->getRelativeMode())
193 mButton->setCaption(replaceTags("to_percents"));
194 else
195 mButton->setCaption(replaceTags("to_pixels"));
196 }
197
198 void PropertyFieldPosition::updatePositionCaption()
199 {

Callers

nothing calls this directly

Calls 4

replaceTagsFunction · 0.85
getRelativeModeMethod · 0.80
findMethod · 0.45
setCaptionMethod · 0.45

Tested by

no test coverage detected