class

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

Instance methods

border_radius
border_radius=(value : Num)
Source
bottom
Source
collision_bounding_box

collision bounding box of the collidable object as an FRect

Source
collision_polygon_vertices

For polygons, return the absolute coordinates of the vertices

Source
collision_shape
Source
fill_indices
Source
fill_vertices
Source
h=(height : Num)
Source
height
height=(value : Num)
Source
left
Source
outline_arc_points
Source
render_border_radius
Source
right
Source
to_frect
Source
to_rect
Source
update_geometry

needs to be called at the end of initialization, and in every #draw method (only if #changed?)

Source
w=(width : Num)
Source
width
width=(value : Num)
Source

Nested types