MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / createText

Method createText

extlibs/sfe/src/RichText.cpp:329–342  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

327
328 ////////////////////////////////////////////////////////////////////////////////
329 sf::Text RichText::createText(const sf::String& string) const
330 {
331 sf::Text text;
332 text.setString(string);
333 text.setFillColor(m_currentFillColor);
334 text.setOutlineColor(m_currentOutlineColor);
335 text.setOutlineThickness(m_currentOutlineThickness);
336 text.setStyle(m_currentStyle);
337 text.setCharacterSize(m_characterSize);
338 if (m_font)
339 text.setFont(*m_font);
340
341 return text;
342 }
343
344
345 ////////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 5

setFillColorMethod · 0.80
setOutlineColorMethod · 0.80
setOutlineThicknessMethod · 0.80
setCharacterSizeMethod · 0.45
setFontMethod · 0.45

Tested by

no test coverage detected