class

Tui::WindowManager

Inherits Tui::Widget / Tui::Reactive / Reference / Object

Constructors

new(id : String | Nil = nil)
Source

Class methods

next_id
Source

Instance methods

border_color

Style

Source
border_color=(border_color : Color)

Style

Source
close_window

Close focused window

Source
create_window(title : String, content : Widget | Nil = nil) : WindowNode

Create a simple window

Source
focus_down
Source
focus_left

Directional focus

Source
focus_next

Focus next focusable widget (Tab behavior)

Source
focus_prev

Focus previous focusable widget (Shift+Tab behavior)

Source
focus_right
Source
focus_up
Source
focus_window(window : WindowNode) : Nil
Source
focused_window
Source
hsplit(*windows : WindowNode) : SplitNode

Create a horizontal split containing windows

Source
on_event(event : Event) : Bool

Override to handle events for this widget (target/bubble phase) Called after children have had a chance to handle the event

Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
resize_focused(delta : Float64) : Nil

Resize focused window

Source
root
Source
root=(node : LayoutNode)
Source
split_horizontal(new_window : WindowNode | Nil = nil) : WindowNode | Nil

Split focused window horizontally

Source
split_vertical(new_window : WindowNode | Nil = nil) : WindowNode | Nil

Split focused window vertically

Source
vsplit(*windows : WindowNode) : SplitNode

Create a vertical split containing windows

Source

Nested types