GSDL::Box
Inherits GSDL::Collidable < GSDL::Shape < GSDL::Centerable < GSDL::Tweenable < Reference < Object
Constructors
new(width : Num = 1, height : Num = 1, x : Num = 0, y : Num = 0, color : Color = Color::White, origin = {0_f32, 0_f32}, scale = {1_f32, 1_f32}, rotation : Num = 0, z_index : Int32 = 0, draw_mode : GSDL::Shape::DrawMode = GSDL::Shape::DrawMode::Fill, border_thickness : Num = 1, border_color : Color = Color::White, border_radius : Num = 0)
SourceInstance methods
border_radius
border_radius=(value : Num)
Sourcebottom
Sourcecollision_shape
Sourcefill_indices
Sourcefill_vertices
Sourceh=(height : Num)
Sourceheight
height=(value : Num)
Sourceleft
Sourceoutline_arc_points
Sourcerender_border_radius
Sourceright
Sourceto_frect
Sourceto_rect
Sourcetop
Sourceupdate_geometry
needs to be called at the end of initialization, and in every #draw method (only if #changed?)
w=(width : Num)
Sourcewidth
width=(value : Num)
Source