DOKK / manpages / debian 10 / libtickit-widget-scroller-perl / Tickit::Widget::Scroller::Item::RichText.3pm.en
Tickit::Widget::Scroller::Item::RichText(3pm) User Contributed Perl Documentation Tickit::Widget::Scroller::Item::RichText(3pm)

"Tickit::Widget::Scroller::Item::RichText" - static text with render attributes

 use Tickit::Widget::Scroller;
 use Tickit::Widget::Scroller::Item::RichText;
 use String::Tagged;
 my $str = String::Tagged->new( "An important message" );
 $str->apply_tag( 3, 9, b => 1 );
 my $scroller = Tickit::Widget::Scroller->new;
 $scroller->push(
    Tickit::Widget::Scroller::Item::RichText->new( $str )
 );

This subclass of Tickit::Widget::Scroller::Item::Text draws static text with rendering attributes, used to apply formatting. The attributes are stored by supplying the text in an instance of a String::Tagged object.

The recognised attributes are those of Tickit::Pen, taking the same names and values.

Paul Evans <leonerd@leonerd.org.uk>

2018-08-02 perl v5.26.2