Tickit...::VLine(3pm)
π
Tickit::Widget::VLine β the 3pm manual page, bestie edition
okay so welcome to the Tickit::Widget::VLine page π this is a Perl thing (manual section 3pm, iykyk), and it's about drawing one single vertical line on your terminal. that's it. that's the whole job. and it does it gorgeously.
β¨ NAME β¨
Tickit::Widget::VLine β a widget displaying a vertical line π
like literally just a vertical line. vertical line main character energy. slay.
β¨ SYNOPSIS β¨
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;
see how it just... slots in between the ...s? no cap. it's giving divider. it's giving separation. π
β¨ DESCRIPTION β¨
so this class gives you a widget that displays a single vertical line, and it draws it using line-drawing characters β the fancy box-art ones, not sad little ASCII pipes. iconic behavior fr fr π
it consumes the full height of whatever window its parent hands it. like it takes up ALL the vertical real estate, no sharing, no compromise. periodt.
by default the line gets drawn in the horizontal centre of the window. but!! if centre isn't your vibe you can move it with the align style value π¦
β¨ STYLE β¨
the default style pen is used as the widget pen. π
the following additional style keys are used:
line_style => INTβ the style to draw the line in. it must be one of theLINE_*constants fromTickit::RenderBuffer. no random numbers, bestie, the constants or nothing πalign => NUM | STRβ a fraction giving the position within the window where the line gets drawn. defaults to0.5, which puts it dead centre π―
symbolic names of "left", "centre" and "right" are also accepted. so you can be all fancy and wordy about it if you want π
β¨ CONSTRUCTOR β¨
πΈ new
$vline = Tickit::Widget::VLine->new( %args );
constructs a new Tickit::Widget::VLine object. that's the whole thing. hand it your %args, get a line. obsessed. β
β¨ AUTHOR β¨
Paul Evans <leonerd@leonerd.org.uk> π
the legend who made the line happen.
no cap: this whole page was perl v5.40.0, dated 2024-09-16, filed under Tickit...::VLine(3pm). go draw a line, bestie ππ¦β¨
π¦ 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