class

Game::Text

Inherits Reference < Object

Constructors

new(text : String = "", font : ::Game::Font = Font.default, x : Float32 | Float64 | Int32 = 0, y : Float32 | Float64 | Int32 = 0, size : Float32 | Int32 = 16, spacing : Float32 | Int32 = 1, color : ::Game::Color = Color::Red)
Source

Instance methods

color
Source
color=(color : Color)
Source
draw(image : Image)
Source
draw
Source
font
Source
font=(font : Font)
Source
height
Source
measure
Source
size
Source
size=(size : Int32)
Source
size=(size : Int32 | Float32)
Source
spacing
Source
spacing=(spacing : Int32 | Float32)
Source
text
Source
text=(text : String)
Source
width
Source
x=(x : Int32 | Float32 | Float64)
Source
y=(y : Int32 | Float32 | Float64)
Source