Tickit...::HLine(3pm)
β¨ Tickit::Widget::HLine β the manual page, bestie edition β¨
okay so you're reading the Tickit...::HLine(3pm) page from the User Contributed Perl Documentation, and honestly? it's giving horizontal line excellence π
let's go
π NAME π
Tickit::Widget::HLine β a widget displaying a horizontal line π
β SYNOPSIS β
use Tickit::Widget::VBox;
use Tickit::Widget::HLine;
my $vbox = Tickit::Widget::VBox->new;
$vbox->add( ... );
$vbox->add( Tickit::Widget::HLine->new );
$vbox->add( ... );
Tickit->new( root => $vbox )->run;
π DESCRIPTION π
so this class hands you a widget that draws one single horizontal line, and it does it with line-drawing characters β yes, the pretty box-drawing ones, not some sad little hyphen situation π
it consumes the full width of the window its parent gives it. like, all of it. every column. no crumbs left. π
by default it's drawn in the vertical middle of the window, but bestie you can absolutely adjust that with the valign style value β¨
πΈ STYLE πΈ
the default style pen is used as the widget pen, no cap.
and then these extra style keys are in the mix:
line_style => INTβ the style to draw the line in ποΈ it must be one of theLINE_*constants fromTickit::RenderBuffer, so don't be out here making up your own numbers, iykyk.valign => NUM | STRβ a fraction giving a position within the window to draw the line. defaults to0.5, which puts it right in the middle π―
symbolic names of "top", "middle" and "bottom" are also accepted β very demure, very mindful πΈ
π¦ CONSTRUCTOR π¦
new
$hline = Tickit::Widget::HLine->new( %args );
constructs a new Tickit::Widget::HLine object π« that's it, that's the whole job, and it ate.
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk>
ok that's the whole page, you're basically a Tickit::Widget::HLine expert now π«Ά go draw a line, main character π
this was perl v5.40.0, dated 2024-09-16, and it's the Tickit...::HLine(3pm) page β mwah, periodt π
β¨
π¦ where this page comes from
- ubuntu resolute: libtickit-widgets-perl 0.42-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtickit-widgets-perl 0.42-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms