abstract class TUI::Layout

Direct Known Subclasses

Defined in:

tui/layout.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(widget : TUI::Widget | Nil) #

[View source]

Instance Method Detail

abstract def <<(win : Widget) #

Add a widget with default values at least


[View source]
abstract def delete(win : Widget) #

[View source]
abstract def each_widget(&block : Widget -> Nil) #

Used to build draw tree


[View source]
def each_widget_mouse(&block : Widget -> Nil) #

Yield each widget that is mouse accessible

Overriden to stop mouse presses for modals


[View source]
abstract def set(event, rect : Rect) #

Define to set the actual layout


[View source]
def widget : Widget #

[View source]
def widget=(widget : TUI::Widget | Nil) #

[View source]
def widget? : Widget | Nil #

[View source]