class Game::Text
- Game::Text
- Reference
- Object
Direct Known Subclasses
Defined in:
game/text.crConstructors
Instance Method Summary
- #color : Color
- #color=(color : Color)
- #draw(image : Image)
- #draw
- #font : Font
- #font=(font : Font)
- #height : Int32 | Float32
- #measure
- #size : Int32 | Float32
- #size=(size : Int32)
- #size=(size : Int32 | Float32)
- #spacing : Int32 | Float32
- #spacing=(spacing : Int32 | Float32)
- #text : String
- #text=(text : String)
- #width : Int32 | Float32
- #x : Int32 | Float32 | Float64
- #x=(x : Int32 | Float32 | Float64)
- #y : Int32 | Float32 | Float64
- #y=(y : Int32 | Float32 | Float64)
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)
#