class

Opal::UI::SplitView

Inherits Opal::UI::Element < Opal::UI::Themable < Reference < Object

Multi-pane split view container supporting horizontal (side-by-side) and vertical (stacked) layouts with configurable proportions and borders.

Constructors

horizontal(first : Element | Nil = nil, second : Element | Nil = nil, ratio : Float64 | Nil = 0.5, first_width : Int32 | Nil = nil, second_width : Int32 | Nil = nil, separator : Char | Nil = nil, separator_fg : Color | Symbol | String = Color.none, focused_pane : Symbol = :first, show_separator : Bool = true) : SplitView
Source
new(first : Element | Nil = nil, second : Element | Nil = nil, direction : SplitDirection = SplitDirection::Horizontal, ratio : Float64 | Nil = 0.5, first_size : Int32 | Nil = nil, second_size : Int32 | Nil = nil, separator : Char | Nil = nil, separator_fg : Color | Symbol | String = Color.none, focused_pane : Symbol = :first, show_separator : Bool = true)
Source
vertical(first : Element | Nil = nil, second : Element | Nil = nil, ratio : Float64 | Nil = 0.5, first_height : Int32 | Nil = nil, second_height : Int32 | Nil = nil, separator : Char | Nil = nil, separator_fg : Color | Symbol | String = Color.none, focused_pane : Symbol = :first, show_separator : Bool = true) : SplitView
Source

Instance methods

direction
Source
direction=(direction : SplitDirection)
Source
first
Source
first=(first : Element | Nil)
Source
first_size
Source
first_size=(first_size : Int32 | Nil)
Source
focused_pane
Source
focused_pane=(focused_pane : Symbol)
Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
ratio
Source
ratio=(ratio : Float64 | Nil)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source
second
Source
second=(second : Element | Nil)
Source
second_size
Source
second_size=(second_size : Int32 | Nil)
Source
separator
Source
separator=(separator : Char)
Source
separator_fg
Source
separator_fg=(separator_fg : Color)
Source
show_separator=(show_separator : Bool)
Source
show_separator?
Source