class Opal::UI::SplitView

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.cr

Constructors

Instance Method Summary

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 #

[View source]
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) #

[View source]
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 #

[View source]

Instance Method Detail

def direction : SplitDirection #

[View source]
def direction=(direction : SplitDirection) #

[View source]
def first : Element | Nil #

[View source]
def first=(first : Element | Nil) #

[View source]
def first_size : Int32 | Nil #

[View source]
def first_size=(first_size : Int32 | Nil) #

[View source]
def focused_pane : Symbol #

[View source]
def focused_pane=(focused_pane : Symbol) #

[View source]
def preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32) #

[View source]
def ratio : Float64 | Nil #

[View source]
def ratio=(ratio : Float64 | Nil) #

[View source]
def render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil #

[View source]
def second : Element | Nil #

[View source]
def second=(second : Element | Nil) #

[View source]
def second_size : Int32 | Nil #

[View source]
def second_size=(second_size : Int32 | Nil) #

[View source]
def separator : Char #

[View source]
def separator=(separator : Char) #

[View source]
def separator_fg : Color #

[View source]
def separator_fg=(separator_fg : Color) #

[View source]
def show_separator=(show_separator : Bool) #

[View source]
def show_separator? : Bool #

[View source]