Game::Pexeso::Spinner - A spinner used to show progress.


Game-Pexeso documentation  | view source Contained in the Game-Pexeso distribution.

Index


NAME

Top

Game::Pexeso::Spinner - A spinner used to show progress.

SYNOPSIS

Top

	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();
		}
	});

DESCRIPTION

Top

A spinner showing progress that can be animated.

METHODS

Top

The following methods are available:

new

Creates a new spinner.

Usage:

	my $spinner = Game::Pexeso::Spinner->new();

pulse_animation_step

Animates the spinner group of one step.

pulse_animation_start

Animates the spinner group continuously until pulse_animation_stop() is called.

pulse_animation_stop

Stop a previous animation that was started with pulse_animation_start().

AUTHORS

Top

Emmanuel Rodriguez <potyl@cpan.org>.

COPYRIGHT AND LICENSE

Top


Game-Pexeso documentation  | view source Contained in the Game-Pexeso distribution.