* Initializes a new Text object. * * @param text Text to initialize. * @param fontSize The size of the text. * @param color The color of the font. * @param font Font to initialize. * @param spacing The spacing of the text. */
| 48 | * @param spacing The spacing of the text. |
| 49 | */ |
| 50 | Text( |
| 51 | const std::string& text = "", |
| 52 | float fontSize = 10, |
| 53 | const ::Color& color = WHITE, |
| 54 | const ::Font& font = ::GetFontDefault(), |
| 55 | float spacing = 0) |
| 56 | : text(text) |
| 57 | , fontSize(fontSize) |
| 58 | , color(color) |
| 59 | , font(font) |
| 60 | , spacing(spacing) { |
| 61 | // Nothing. |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Initializes a new Text object with a custom font. |
nothing calls this directly
no outgoing calls
no test coverage detected