class Game::TextInput

Defined in:

game/text_input.cr

Constructors

Instance Method Summary

Instance methods inherited from class Game::Text

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

Constructor methods inherited from class Game::Text

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) new

Constructor Detail

def self.new(text = "", font = Font.default, x = 0, y = 0, size = 16, spacing = 1, color = Color::Red, backspace_delay : Float32 = 0.035_f32) #

[View source]

Instance Method Detail

def backspace_delay : Float32 #

[View source]
def backspace_delay=(backspace_delay : Float32) #

[View source]
def backspace_delay? #

[View source]
def draw #

[View source]
def focused=(focused : Bool) #

[View source]
def focused? : Bool #

[View source]
def update(frame_time) #

[View source]