class Game::Text

Direct Known Subclasses

Defined in:

game/text.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]

Instance Method Detail

def color : Color #

[View source]
def color=(color : Color) #

[View source]
def draw(image : Image) #

[View source]
def draw #

[View source]
def font : Font #

[View source]
def font=(font : Font) #

[View source]
def height : Int32 | Float32 #

[View source]
def measure #

[View source]
def size : Int32 | Float32 #

[View source]
def size=(size : Int32) #

[View source]
def size=(size : Int32 | Float32) #

[View source]
def spacing : Int32 | Float32 #

[View source]
def spacing=(spacing : Int32 | Float32) #

[View source]
def text : String #

[View source]
def text=(text : String) #

[View source]
def width : Int32 | Float32 #

[View source]
def x : Int32 | Float32 | Float64 #

[View source]
def x=(x : Int32 | Float32 | Float64) #

[View source]
def y : Int32 | Float32 | Float64 #

[View source]
def y=(y : Int32 | Float32 | Float64) #

[View source]