MCPcopy Create free account
hub / github.com/axmolengine/axmol / setString

Method setString

core/ui/UIText.cpp:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void Text::setString(std::string_view text)
112{
113 if (text == _labelRenderer->getString())
114 {
115 return;
116 }
117 _labelRenderer->setString(text);
118 updateContentSizeWithTextureSize(_labelRenderer->getContentSize());
119 _labelRendererAdaptDirty = true;
120}
121
122std::string_view Text::getString() const
123{

Callers 6

initMethod · 0.95
setTitleTextMethod · 0.45
createMethod · 0.45
setTitleTextMethod · 0.45
setInactiveTextMethod · 0.45
setPlaceHolderMethod · 0.45

Calls 2

getStringMethod · 0.45
getContentSizeMethod · 0.45

Tested by

no test coverage detected