Tickit::WidgetRole::Borderable - implement widgets with a surrounding border
Tickit::WidgetRole::Borderable
Mixing this role into a Tickit::Widget subclass adds behaviour to handle a border around the widget's contents.
The following methods are provided on the caller package when this module is imported by
use Tickit::WidgetRole::Borderable;
Initialises the border state from constructor arguments in the referenced hash. Deletes keys that are used. Arguments may be the names any of the set_* methods named below.
set_*
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
Returns a 4-element list giving the geometry of the inside of the border; the area in which the bordered widget should draw.
Paul Evans <leonerd@leonerd.org.uk>
To install Tickit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tickit
CPAN shell
perl -MCPAN -e shell install Tickit
For more information on module installation, please visit the detailed CPAN module installation guide.