Tickit::Widget::VLine(3pm) | User Contributed Perl Documentation | Tickit::Widget::VLine(3pm) |
"Tickit::Widget::VLine" - a widget displaying a vertical line
use Tickit::Widget::HBox; use Tickit::Widget::VLine; my $hbox = Tickit::Widget::HBox->new; $hbox->add( ... ); $hbox->add( Tickit::Widget::VLine->new ); $hbox->add( ... ); Tickit->new( root => $hbox )->run;
This class provides a widget which displays a single vertical line, using line-drawing characters. It consumes the full height of the window given to it by its parent. By default it is drawn in the horizontal centre of the window but this can be adjusted by the "align" style value.
The default style pen is used as the widget pen.
The following additional style keys are used:
Symbolic names of "left", "centre" and "right" are also accepted.
$vline = Tickit::Widget::VLine->new( %args );
Constructs a new "Tickit::Widget::VLine" object.
Paul Evans <leonerd@leonerd.org.uk>
2024-01-02 | perl v5.36.0 |