GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Tickit::Widget::Spinner(3) User Contributed Perl Documentation Tickit::Widget::Spinner(3)

"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.

   $spinner = Tickit::Widget::Spinner->new( %args )

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

Takes the following named arguments:

chars => ARRAY
Optional. An ARRAY reference containing the text strings to use.
interval => NUM
Optional. The time each string is displayed for. Defaults to 0.5.

   $spinner->start

Starts the animation effect.

   $spinner->stop

Stops the animation effect.

Paul Evans <leonerd@leonerd.org.uk>
2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.