NAME
Tickit::Widget::VSplit
- an adjustable vertical split between two widgets
SYNOPSIS
use Tickit;
use Tickit::Widget::VSplit;
use Tickit::Widget::Static;
my $vsplit = Tickit::Widget::VSplit->new(
left_child => Tickit::Widget::Static->new( text => "Text above" ),
right_child => Tickit::Widget::Static->new( text => "Text below" ),
);
Tickit->new( root => $vsplit )->run;
DESCRIPTION
This container widget holds two child widgets, displayed side by side. The two widgets are displayed with a vertical split bar between them, which reacts to mouse click-drag events, allowing the user to adjust the proportion of space given to the two widgets.
STYLE
The default style pen is used as the widget pen. The following style pen prefixes are also used:
The following style keys are used:
The following style tags are used:
CONSTRUCTOR
$vsplit = Tickit::Widget::VSplit->new( %args )
Constructs a new Tickit::Widget::VSplit
object.
Takes the following named arguments
ACCESSORS
$child = $hsplit->left_child
$vsplit->set_left_child( $child )
Accessor for the child widget used in the left half of the display.
$child = $hsplit->right_child
$vsplit->set_right_child( $child )
Accessor for the child widget used in the right half of the display.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>