struct

Commander::UI::DrawCommand

Inherits Struct < Value < Object

Constructors

clip(rect : Rect) : DrawCommand
Source
fill_rect(rect : Rect, color : String, style : String | Nil = nil) : DrawCommand
Source
new(kind : DrawKind, rect : Rect | Nil = nil, text : String | Nil = nil, color : String | Nil = nil, style : String | Nil = nil, metadata : Hash(String, String) = {} of String => String)
Source
stroke_rect(rect : Rect, color : String, style : String | Nil = nil) : DrawCommand
Source
text(rect : Rect, value : String, color : String, style : String | Nil = nil) : DrawCommand
Source

Instance methods

color
Source
kind
Source
metadata
Source
rect
Source
style
Source
text
Source