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

Method setValue

Tools/LayoutEditor/PropertyFieldEditBox.cpp:84–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 void PropertyFieldEditBox::setValue(std::string_view _value)
85 {
86 if (_value.empty())
87 {
88 std::string DEFAULT_VALUE = replaceTags("ColourDefault") + DEFAULT_STRING;
89
90 mField->setCaption(DEFAULT_VALUE);
91 }
92 else
93 {
94 mField->setOnlyText(MyGUI::UString(_value));
95 onCheckValue();
96 }
97 }
98
99 void PropertyFieldEditBox::setName(std::string_view _value)
100 {

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