CTor
Format a given string by using std.string.format. Therefore the formating pattern is identical.
Returns a pointer to the current Font
Returns the current text
Returns the used Texture which contains the last rendered Text
Concatenate the current string with another.
Set or reset the current text by using std.conv.to!(string) if the data is not a string
Set or reset the current Font
Update the Texture and redraw the text, if necessary. This method is called automatically if the Text is drawn onto the Window. But if you need specific informations (e.g. width/height) before the draw call, you can call the method by yourself.
Returns the height
Returns the width
The background color. Default is Color4b.White.
The foreground color. Default is Color4b.Black.
The Font mode which is default Font.Mode.Solid.
Returns the current matrix. If any transformations was made, the matrix is updated before
Sets the position
Sets the position
Move the position by offset (x, y)
Move the position by offset (x, y)
Returns the current position
Returns the x coordinate <b>by value</b>
Sets a new x coordinate
Returns the y coordinate <b>by value</b>
Sets a new y coordinate
Sets the center position
Sets the center of the rotation
Returns the current rotation center
Sets the origin. The origin is a offset which is added to the position and serves as center position for scaling and rotation.
Sets the origin. The origin is a offset which is added to the position and serves as center position for scaling and rotation.
Returns the current origin
Sets the scaling (for both, x and y)
Sets the scaling (for both, x and y)
Inc-/Decrease the scaling
Inc-/Decrease the scaling
Returns the current scaling
Set the rotation angle. If not in range of 0 .. 360 it will be set to 0.
Inc-/Decrease the rotation. If the rotation is <b>after</b> that not in range of 0 .. 360 it will be set to 0.
Returns the current rotation
Draw method which is called from the Window's draw method
Text defines a graphical 2D text, that can be drawn on screen.