-
-
20 Nov 2021 15:13:20 UTC
- Distribution: Tickit-Widgets
- Module version: 0.34
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (12)
- Testers (80 / 1 / 38)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Perl: v5.20.0
- Activity
24 month- Tools
- Download (89.07KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Tickit::Widget::VSplit
- an adjustable vertical split between two widgetsSYNOPSIS
use Tickit; use Tickit::Widget::VSplit; use Tickit::Widget::Static; my $vsplit = Tickit::Widget::VSplit->new ->set_left_child ( Tickit::Widget::Static->new( text => "Text above" ) ), ->set_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
new
$vsplit = Tickit::Widget::VSplit->new( %args )
Constructs a new
Tickit::Widget::VSplit
object.ACCESSORS
left_child
set_left_child
$child = $hsplit->left_child $vsplit->set_left_child( $child )
Accessor for the child widget used in the left half of the display.
right_child
set_right_child
$child = $hsplit->right_child $vsplit->set_right_child( $child )
Accessor for the child widget used in the right half of the display.
These mutators returning the container widget itself making them suitable to use as chaining mutators; e.g.
my $container = Tickit::Widget::VSplit->new( ... ) ->set_left_child ( Tickit::Widget::Box->new ... ) ->set_right_child( Tickit::Widget::Box->new ... );
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
Module Install Instructions
To install Tickit::Widgets, copy and paste the appropriate command in to your terminal.
cpanm Tickit::Widgets
perl -MCPAN -e shell install Tickit::Widgets
For more information on module installation, please visit the detailed CPAN module installation guide.