abstract class Glint::Shape::Shape

Overview

A Shape is a generic shape game object that can be drawn.

Direct Known Subclasses

Defined in:

glint/game_object/shape/shape.cr

Instance Method Summary

Instance methods inherited from class Glint::GameObject

<<(other : GameObject) <<, can_update? can_update?, children : Array(GameObject) children, delete(other : GameObject) delete, draw draw, draw_above_children : Bool draw_above_children, draw_above_children=(draw_above_children : Bool) draw_above_children=, draw_at(position) draw_at, draw_children : Bool draw_children, draw_children=(draw_children : Bool) draw_children=, draw_position : DrawPosition draw_position, draw_position=(draw_position : DrawPosition) draw_position=, extents : Dimension extents, game : Game | Nil game, game=(game : Game | Nil) game=, has?(other : GameObject) has?, parent : GameObject | Game | Nil parent, parent=(parent : GameObject | Game | Nil) parent=, pivot : Origin pivot, pivot=(pivot : Origin) pivot=, position : Glint::Vector2 position, position=(position : Glint::Vector2) position=, rotation : Float64 rotation, rotation=(rotation : Float64) rotation=, update(delta)
update(delta, &)
update
, update_mode : UpdateMode update_mode, update_mode=(update_mode : UpdateMode) update_mode=, visible : Bool visible, visible=(visible : Bool) visible=

Instance Method Detail

def fill_color : Glint::Color? #

Returns the fill color.


[View source]
def fill_color=(color : Color) #

Sets the fill color.


[View source]
def outline : Float32 #

Returns the outline width.


[View source]
def outline=(width : Number) #

Sets the outline width.


[View source]
def outline_color : Glint::Color? #

Returns the outline color.


[View source]
def outline_color=(color : Color) #

Sets the outline color.


[View source]
def outline_position : Glint::Shape::OutlinePosition #

Returns the outline position.


[View source]
def outline_position=(position : OutlinePosition) #

Sets the outline position.


[View source]