Tickit::Widget::Scroller::Item(3pm) | User Contributed Perl Documentation | Tickit::Widget::Scroller::Item(3pm) |
"Tickit::Widget::Scroller::Item" - interface for renderable scroller items
Items added to a "Tickit::Widget::Scroller" must adhere to the interface documented here.
$height = $item->height_for_width( $width )
Returns the number of screen lines the item would occupy if rendered to the given width.
$item->render( $rb, %args )
Renders the item to the given Tickit::RenderBuffer. %args will contain the following keys:
These are passed for informational purposes. Item implementations are free to ignore this if they wish, as clipping will be performed by the RenderBuffer.
Paul Evans <leonerd@leonerd.org.uk>
2020-06-18 | perl v5.30.3 |