CrImage::Draw::RectStyle
Inherits Reference / Object
RectStyle defines the appearance of a rectangle
Constructors
build
Sourcenew(outline_color : CrImage::Color::Color | Nil = nil, fill_color : CrImage::Color::Color | Nil = nil, corner_radius : Int32 = 0, blend_mode : CrImage::Draw::BlendMode | Nil = nil)
SourceInstance methods
blend_mode
Sourceblend_mode=(blend_mode : BlendMode | Nil)
Sourcecorner_radius
Sourcecorner_radius=(corner_radius : Int32)
Sourcefill_color
Sourcefill_color=(fill_color : Color::Color | Nil)
Sourceoutline_color
Sourceoutline_color=(outline_color : Color::Color | Nil)
Sourcewith_blend_mode(mode : BlendMode) : self
Sourcewith_corner_radius(radius : Int32) : self
Sourcewith_fill(color : Color::Color) : self
Sourcewith_outline(color : Color::Color) : self
Source