logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

"Tickit::Widget::VLine" - a widget displaying a vertical line

Author

       Paul Evans <leonerd@leonerd.org.uk>

perl v5.40.0                                       2024-09-16                         Tickit::Widget::VLine(3pm)

Constructor

new
          $vline = Tickit::Widget::VLine->new( %args );

       Constructs a new "Tickit::Widget::VLine" object.

Description

       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.

Name

       "Tickit::Widget::VLine" - a widget displaying a vertical line

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. Must be one of the "LINE_*" constants from Tickit::RenderBuffer.

       align => NUM | STR
           A  fraction  giving  a position within the window to draw the line. Defaults to 0.5, which puts it in
           the centre.

           Symbolic names of "left", "centre" and "right" are also accepted.

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 Also