class

Tui::SplitContainer

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

Constructors

new(direction : Direction = Direction::Horizontal, ratio : Float64 = 0.5, id : String | Nil = nil)
Source

Instance methods

border_color
Source
border_color=(border_color : Color)
Source
calculate_layout

Public method to trigger layout calculation (for nested junction detection)

Source
direction
Source
direction=(direction : Direction)
Source
first
Source
first=(widget : Widget | Nil) : Nil
Source
first_title
Source
first_title=(first_title : String)
Source
first_title_offset
Source
first_title_offset=(first_title_offset : Int32)
Source
focus_border_color

Focus highlighting

Source
focus_border_color=(focus_border_color : Color | Nil)

Focus highlighting

Source
focus_highlight
Source
focus_highlight=(focus_highlight : Bool)
Source
focus_title_color
Source
focus_title_color=(focus_title_color : Color | Nil)
Source
max_first
Source
max_first=(max_first : Int32 | Nil)
Source
max_second
Source
max_second=(max_second : Int32 | Nil)
Source
min_first
Source
min_first=(min_first : Int32)
Source
min_second
Source
min_second=(min_second : Int32)
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
on_resize
Source
ratio
Source
ratio=(ratio : Float64)
Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
second
Source
second=(widget : Widget | Nil) : Nil
Source
second_title
Source
second_title=(second_title : String)
Source
second_title_offset
Source
second_title_offset=(second_title_offset : Int32)
Source
show_border
Source
show_border=(show_border : Bool)
Source
splitter_color
Source
splitter_color=(splitter_color : Color)
Source
splitter_drag_color
Source
splitter_drag_color=(splitter_drag_color : Color)
Source
splitter_x
Source
splitter_y

Expose splitter position for nested containers

Source
title_color
Source
title_color=(title_color : Color)
Source

Nested types