MCPcopy Create free account
hub / github.com/SFML/SFML / makeText

Function makeText

examples/keyboard/Keyboard.cpp:688–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688sf::Text makeText(const sf::Font& font, const sf::String& string, sf::Vector2f position)
689{
690 sf::Text text(font, string, textSize);
691 text.setLineSpacing(getSpacingFactor(font));
692 text.setPosition(position);
693
694 return text;
695}
696
697////////////////////////////////////////////////////////////
698// Utilities to describe keyboard events

Callers 1

mainFunction · 0.85

Calls 3

getSpacingFactorFunction · 0.85
setLineSpacingMethod · 0.80
setPositionMethod · 0.45

Tested by

no test coverage detected