class

CrImage::Draw::RectStyle

Inherits Reference / Object

RectStyle defines the appearance of a rectangle

Constructors

build
Source
new(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)
Source

Instance methods

blend_mode
Source
blend_mode=(blend_mode : BlendMode | Nil)
Source
corner_radius
Source
corner_radius=(corner_radius : Int32)
Source
fill_color
Source
fill_color=(fill_color : Color::Color | Nil)
Source
outline_color
Source
outline_color=(outline_color : Color::Color | Nil)
Source
with_blend_mode(mode : BlendMode) : self
Source
with_corner_radius(radius : Int32) : self
Source
with_fill(color : Color::Color) : self
Source
with_outline(color : Color::Color) : self
Source