class

TuiEditor::CanvasNode

Inherits Reference / Object

Represents a placed widget in the canvas

Constructors

new(widget_def : TuiEditor::WidgetDef, id : String = "", attrs : Hash(String, String) = {} of String => String)
Source

Class methods

next_id(prefix : String) : String

Generate unique ID

Source

Instance methods

add_child(node : CanvasNode) : Nil
Source
alignment
Source
attrs
Source
attrs=(attrs : Hash(String, String))
Source
children
Source
children=(children : Array(CanvasNode))
Source
container?
Source
expanded
Source
expanded=(expanded : Bool)
Source
id=(id : String)
Source
name
Source
parent
Source
parent=(parent : CanvasNode | Nil)
Source
remove_child(node : CanvasNode) : Nil
Source
stack?
Source
widget_def
Source
widget_def=(widget_def : WidgetDef)
Source