struct Lime::Drawables::Rectangle
- Lime::Drawables::Rectangle
- Struct
- Value
- Object
Overview
A drawable rectangle.
Defined in:
lime/drawables.crConstructors
-
.new(x : Int32, y : Int32, width : Int32, height : Int32, type : Type = Default, color : Colorize::Color = Colorize::ColorANSI::Default)
Initializes a new
Rectangle
.
Instance Method Summary
- #color : Colorize::Color256 | Colorize::ColorANSI | Colorize::ColorRGB
- #color=(color : Colorize::Color)
-
#draw
Inserts the rectangle into the buffer.
- #height : Int32
- #height=(height : Int32)
- #type : Lime::Drawables::Rectangle::Type
- #type=(type : Lime::Drawables::Rectangle::Type)
- #width : Int32
- #width=(width : Int32)
- #x : Int32
- #x=(x : Int32)
- #y : Int32
- #y=(y : Int32)
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
.