GSDL::TextBox
Inherits GSDL::Tweenable < GSDL::Centerable < Reference < Object
Constants
Padding = 16
Constructors
new(font : Symbol | FontOld = FontManager.default, font_size : Num = FontManager.default_size, text : String | GSDL::Text = "", origin : Tuple(Float32, Float32) = {0_f32, 0_f32}, scale : Tuple(Float32 | Int32, Float32 | Int32) = {1_f32, 1_f32}, width : Int32 | Nil = nil, height : Int32 | Nil = nil, padding : Int32 | Nil = nil, padding_x : Int32 | Nil = nil, padding_y : Int32 | Nil = nil, align = FontOld::Align::Left, x : Num = 0_f32, y : Num = 0_f32, color = ColorScheme.get(:ui_text), z_index : Int32 = 900, draw_relative_to_camera : Bool = false)
SourceInstance methods
color
Sourcecolor=(value : Color)
Sourcedraw(draw : Draw)
Sourcedraw_background(draw : Draw)
Sourcedraw_border(draw : Draw)
Sourcedraw_relative_to_camera?
Sourceglobal_x
Sourceglobal_y
Sourceheight
Sourceorigin
Sourceorigin_x
Sourceorigin_y
Sourcepadding
Sourcepadding_x
Sourcepadding_y
Sourcerender_height
Sourcerender_width
Sourcerender_x
Sourcerender_y
Sourcescale
Sourcescale=(scale : Num)
Sourcescale_x
Sourcescale_x=(scale_x : Num)
Sourcescale_y
Sourcescale_y=(scale_y : Num)
Sourcescreen_height
Sourcescreen_width
Sourcescreen_y
Sourcetext
Sourcetweens
Sourcewidth
Sourcey=(y : Num)
Sourcez_index
Sourcez_index(*args, **options)
Sourcez_index(*args, **options, &)
Source