Tickit::Widget::Border(3pm) | User Contributed Perl Documentation | Tickit::Widget::Border(3pm) |
"Tickit::Widget::Border" - draw a fixed-size border around a widget
use Tickit; use Tickit::Widget::Border; use Tickit::Widget::Static; my $hello = Tickit::Widget::Static->new( text => "Hello, world", align => "centre", valign => "middle", ); my $border = Tickit::Widget::Border->new; $border->set_child( $hello ); Tickit->new( root => $border )->run;
This container widget holds a single child widget and implements a border by using Tickit::WidgetRole::Borderable.
The default style pen is used as the widget pen.
Constructs a new "Tickit::Widget::Border" object.
Takes arguments having the names of any of the "set_*" methods listed below, without the "set_" prefix.
Return or set the number of lines of border at the top of the widget
Return or set the number of lines of border at the bottom of the widget
Return or set the number of cols of border at the left of the widget
Return or set the number of cols of border at the right of the widget
Set the number of cols of both horizontal (left and right) borders simultaneously
Set the number of lines of both vertical (top and bottom) borders simultaneously
Set the number of cols or lines in all four borders simultaneously
Paul Evans <leonerd@leonerd.org.uk>
2018-07-30 | perl v5.26.2 |