class TUI::Layout::MessageBox

Defined in:

tui/layout/message_box.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 <<(but : Widget::Button) #

[View source]
def <<(but : Widget) #
Description copied from class TUI::Layout

Add a widget with default values at least


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

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

Used to build draw tree


[View source]
def message=(w : Widget) #

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

Right-aligned buttons at bottom

Message gets remaining space


[View source]