Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Commander::UI::Widget
Inherits
Reference
<
Object
Constructors
new
(id :
String
, bounds :
Rect
=
Rect
.new(0, 0, 0, 0), children :
Array
(
Widget
) = [] of
Widget
)
Source
Instance methods
bounds
Source
bounds=
(bounds :
Rect
)
Source
children
Source
id
Source
layout
(bounds :
Rect
) : self
Source
render
(context :
RenderContext
, commands :
Array
(
DrawCommand
)) :
Nil
Source
render_frame
(bounds :
Rect
, theme :
Theme
=
Theme
.new) :
DrawFrame
Source