struct Lime::Drawables::Rectangle

Overview

A drawable rectangle.

Defined in:

lime/drawables.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32, y : Int32, width : Int32, height : Int32, type : Type = Default, color : Colorize::Color = Colorize::ColorANSI::Default) #

Initializes a new Rectangle.

For specifying the type, you can use the top-level constants Default, Double and Round.


[View source]

Instance Method Detail

def color : Colorize::Color256 | Colorize::ColorANSI | Colorize::ColorRGB #

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

[View source]
def draw #

Inserts the rectangle into the buffer.


[View source]
def height : Int32 #

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

[View source]

[View source]

[View source]
def width : Int32 #

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

[View source]
def x : Int32 #

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

[View source]
def y : Int32 #

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

[View source]