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

Method setString

core/ui/UITextAtlas.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void TextAtlas::setString(std::string_view value)
109{
110 if (value == _labelAtlasRenderer->getString())
111 {
112 return;
113 }
114 _stringValue = value;
115 _labelAtlasRenderer->setString(value);
116 updateContentSizeWithTextureSize(_labelAtlasRenderer->getContentSize());
117 _labelAtlasRendererAdaptDirty = true;
118 // AXLOGD("cssss w {}, h {}", _contentSize.width, _contentSize.height);
119}
120
121std::string_view TextAtlas::getString() const
122{

Callers 1

setPropertyMethod · 0.45

Calls 2

getStringMethod · 0.45
getContentSizeMethod · 0.45

Tested by

no test coverage detected