class TUI::Layout::Horizontal

Defined in:

tui/layout/horizontal.cr

Instance Method Summary

Instance methods inherited from class TUI::Layout

<<(win : Widget) <<, delete(win : Widget) delete, each_widget(&block : Widget -> Nil) each_widget, each_widget_mouse(&block : Widget -> Nil) each_widget_mouse, set(event, rect : Rect) set, widget : Widget widget, widget=(widget : TUI::Widget | Nil) widget=, widget? : Widget | Nil widget?

Constructor methods inherited from class TUI::Layout

new(widget : TUI::Widget | Nil) new

Instance Method Detail

def <<(win : Widget) #
Description copied from class TUI::Layout

Add a widget with default values at least


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

[View source]
def each_widget(&) #
Description copied from class TUI::Layout

Used to build draw tree


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

Very basic, lays out each Widget with width/no. of widget as the width and full height


[View source]