Game::Pexeso::Spinner - A spinner used to show progress.
my $spinner = Game::Pexeso::Spinner->new(); $spinner->set_position(100, 100); $stage->add($spinner); $stage->signal_connect('button-release-event', sub { my ($actor, $event) = @_; if ($event->button == 1) { print "Start\n"; $spinner->pulse_animation_start(); } elsif ($event->button == 2) { print "Stop\n"; $spinner->pulse_animation_stop(); } else { print "Once\n"; $spinner->pulse_animation_step(); } });
A spinner showing progress that can be animated.
The following methods are available:
Creates a new spinner.
Usage:
my $spinner = Game::Pexeso::Spinner->new();
Animates the spinner group of one step.
Animates the spinner group continuously until pulse_animation_stop() is called.
Stop a previous animation that was started with pulse_animation_start().
Emmanuel Rodriguez <potyl@cpan.org>.
Copyright (C) 2009 by Emmanuel Rodriguez.
This library is free software; you can redistribute it and/or modify it under the same terms of:
This module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
You should have received a copy of the GNU Library General Public License along with this module; if not, see http://www.gnu.org/licenses/.
For the terms of The Artistic License, see perlartistic.
To install Game::Pexeso, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Game::Pexeso
CPAN shell
perl -MCPAN -e shell install Game::Pexeso
For more information on module installation, please visit the detailed CPAN module installation guide.