Tickit::Widget::Spinner(3pm) | User Contributed Perl Documentation | Tickit::Widget::Spinner(3pm) |
"Tickit::Widget::Spinner" - a widget displaying a small text animation
use Tickit; use Tickit::Widget::Spinner; my $spinner = Tickit::Widget::Spinner->new( chars => [ "<X> ", " <X> ", " <X>", "> <X", "X> <" ], ); Tickit->new( root => $spinner )->run;
This class provides a widget which displays a simple animation, cycling through a fixed set of strings with a fixed interval.
The default style pen is used as the widget pen.
Constructs a new "Tickit::Widget::Spinner" object.
Takes the following named arguments:
Starts the animation effect.
Stops the animation effect.
Paul Evans <leonerd@leonerd.org.uk>
2018-07-30 | perl v5.26.2 |