- draw
void draw(RenderTarget renderTarget, RenderStates renderStates)
Draw the object to a render target.
- findCharacterPos
Vector2f findCharacterPos(size_t index)
Return the position of the index-th character.
- getCharacterSize
deprecated uint getCharacterSize()
- getColor
deprecated Color getColor()
Get the fill color of the text.
- getFont
deprecated const(Font) getFont()
- getGlobalBounds
deprecated FloatRect getGlobalBounds()
Get the global bounding rectangle of the entity.
- getLocalBounds
deprecated FloatRect getLocalBounds()
Get the local bounding rectangle of the entity.
- getString
deprecated const(T)[] getString()
Get a copy of the text's string.
- getStyle
deprecated Style getStyle()
- setCharacterSize
deprecated void setCharacterSize(uint size)
- setColor
deprecated void setColor(Color color)
Set the fill color of the text.
- setFont
deprecated void setFont(Font newFont)
- setString
deprecated void setString(const(T)[] text)
- setStyle
deprecated void setStyle(Style newStyle)
- characterSize
uint characterSize [@property setter]
uint characterSize [@property getter]
The character size in pixels.
- fillColor
Color fillColor [@property setter]
Color fillColor [@property getter]
The fill color of the text.
- font
Font font [@property setter]
const(Font) font [@property getter]
- globalBounds
FloatRect globalBounds [@property getter]
Get the global bounding rectangle of the entity.
- localBounds
FloatRect localBounds [@property getter]
Get the local bounding rectangle of the entity.
- outlineColor
Color outlineColor [@property setter]
Color outlineColor [@property getter]
The outline color of the text.
- outlineThickness
float outlineThickness [@property setter]
float outlineThickness [@property getter]
The outline color of the text.
- string
const(dchar)[] string [@property setter]
const(dchar)[] string [@property getter]
- style
Style style [@property setter]
Style style [@property getter]
- origin
Vector2f origin [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- origin
Vector2f origin [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- position
Vector2f position [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- position
Vector2f position [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- rotation
float rotation [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- rotation
float rotation [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- scale
Vector2f scale [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- scale
Vector2f scale [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- getInverseTransform
const(Transform) getInverseTransform()
Undocumented in source. Be warned that the author may not have intended to support it.
- getTransform
const(Transform) getTransform()
Undocumented in source. Be warned that the author may not have intended to support it.
- move
void move(Vector2f offset)
Undocumented in source. Be warned that the author may not have intended to support it.
Graphical text that can be drawn to a render target.