class

GSDL::TabContainer

Inherits GSDL::Tweenable < Reference < Object

Constructors

new(tabs : Array(String) = [] of String, x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, width : Float32 | Int32 = 400, height : Float32 | Int32 = 300, tab_height : Float32 | Int32 = 40, active_index : Int32 = 0, origin : Tuple(Float32, Float32) = {0_f32, 0_f32}, scale : Tuple(Float32 | Int32, Float32 | Int32) = {1_f32, 1_f32}, on_tab_changed : Nil | Int32 -> _ = nil, z_index : Int32 = 0)
Source

Instance methods

active_index
Source
active_index=(active_index : Int32)
Source
active_tab_color
Source
active_tab_color=(active_tab_color : Color)
Source
background_color
Source
background_color=(background_color : Color)
Source
border_color
Source
border_color=(border_color : Color)
Source
changed?
Source
draw(draw : GSDL::Draw)
Source
height
Source
height=(height : Num)
Source
on_tab_changed
Source
on_tab_changed=(on_tab_changed : TabChangedCallback | Nil)
Source
origin
Source
origin=(origin : Tuple(Float32, Float32))
Source
origin_x
Source
origin_y
Source
render_height
Source
render_width
Source
render_x
Source
render_y
Source
scale
Source
scale=(scale : Tuple(Num, Num))
Source
scale_x
Source
scale_x=(scale_x : Num)
Source
scale_y
Source
scale_y=(scale_y : Num)
Source
tab_color
Source
tab_color=(tab_color : Color)
Source
tab_height
Source
tab_height=(tab_height : Num)
Source
text_color
Source
text_color=(text_color : Color)
Source
tweens
Source
update(dt : Float32)
Source
width
Source
width=(width : Num)
Source
x=(x : Num)
Source
y=(y : Num)
Source
z_index
Source
z_index=(z_index : Int32)
Source

Nested types