class
Opal::UI::SplitView
- Opal::UI::SplitView
- Opal::UI::Element
- Reference
- Object
Overview
Multi-pane split view container supporting horizontal (side-by-side) and vertical (stacked) layouts with configurable proportions and borders.
Defined in:
opal/ui/components/split_view.crConstructors
- .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
- .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)
- .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
Instance Method Summary
- #direction : SplitDirection
- #direction=(direction : SplitDirection)
- #first : Element | Nil
- #first=(first : Element | Nil)
- #first_size : Int32 | Nil
- #first_size=(first_size : Int32 | Nil)
- #focused_pane : Symbol
- #focused_pane=(focused_pane : Symbol)
- #preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
- #ratio : Float64 | Nil
- #ratio=(ratio : Float64 | Nil)
- #render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
- #second : Element | Nil
- #second=(second : Element | Nil)
- #second_size : Int32 | Nil
- #second_size=(second_size : Int32 | Nil)
- #separator : Char
- #separator=(separator : Char)
- #separator_fg : Color
- #separator_fg=(separator_fg : Color)
- #show_separator=(show_separator : Bool)
- #show_separator? : Bool
Instance methods inherited from class Opal::UI::Element
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
preferred_size,
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
render
Constructor Detail
def self.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
#
def self.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)
#
def self.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
#