class Game::RoundedRectangle

Defined in:

game/shapes/rounded_rectangle.cr

Constructors

Instance Method Summary

Instance methods inherited from class Game::Shape

color : Color color, color=(color : Color) color=, draw(image : Image, parent_x = 0, parent_y = 0)
draw(parent_x = 0, parent_y = 0)
draw
, draw_filled(image : Image, parent_x = 0, parent_y = 0)
draw_filled(parent_x = 0, parent_y = 0)
draw_filled
, draw_outlined(image : Image, parent_x = 0, parent_y = 0)
draw_outlined(parent_x = 0, parent_y = 0)
draw_outlined
, filled=(filled : Bool) filled=, filled? : Bool filled?, height height, height=(_height) height=, update(_frame_time) update, width width, width=(_width) width=, x x, x=(_x) x=, y y, y=(_y) y=

Constructor methods inherited from class Game::Shape

new(color, filled : Bool = FILLED) new

Constructor Detail

def self.new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, width : Float32 | Int32 = 1, height : Float32 | Int32 = 1, roundness : Float32 | Int32 = 10, segments : Int32 = 10, thickness : Int32 = 1, color = nil, filled = Shape::FILLED) #

[View source]

Instance Method Detail

def draw_filled(image : Image, parent_x = 0, parent_y = 0) #

[View source]
def draw_filled(parent_x = 0, parent_y = 0) #

[View source]
def draw_outlined(image : Image, parent_x = 0, parent_y = 0) #

[View source]
def draw_outlined(parent_x = 0, parent_y = 0) #

[View source]
def height : Int32 | Float32 #

[View source]
def height=(height : Int32 | Float32) #

[View source]
def roundness : Int32 | Float32 #

[View source]
def roundness=(roundness : Int32 | Float32) #

[View source]
def segments : Int32 #

[View source]
def segments=(segments : Int32) #

[View source]
def thickness : Int32 #

[View source]
def thickness=(thickness : Int32) #

[View source]
def width : Int32 | Float32 #

[View source]
def width=(width : Int32 | Float32) #

[View source]
def x : Int32 | Float32 #

[View source]
def x=(x : Int32 | Float32) #

[View source]
def y : Int32 | Float32 #

[View source]
def y=(y : Int32 | Float32) #

[View source]