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

Method setValue

Tools/LayoutEditor/PropertyFieldPosition.cpp:141–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 }
140
141 void PropertyFieldPosition::setValue(std::string_view _value)
142 {
143 if (_value.empty())
144 {
145 std::string DEFAULT_VALUE = replaceTags("ColourDefault") + DEFAULT_STRING;
146
147 mField->setCaption(DEFAULT_VALUE);
148 }
149 else
150 {
151 mField->setOnlyText(MyGUI::UString(_value));
152 onCheckValue();
153 }
154 }
155
156 void PropertyFieldPosition::setName(std::string_view _value)
157 {

Callers

nothing calls this directly

Calls 5

replaceTagsFunction · 0.85
UStringFunction · 0.85
setOnlyTextMethod · 0.80
emptyMethod · 0.45
setCaptionMethod · 0.45

Tested by

no test coverage detected