Fl::RepeatButton - Button that Reapeats Callback when Held
use Fl; my $button = Fl::RepeatButton->new(0, 0, 100, 200, 'Hello, World!'); $button->callback(sub {print q[It's dat boi]} );
The Fl::RepeatButton class represents a button that triggers its callback repeatedly as long as it is pressed.
The speed of the repeat is fixed and depends on the implementation.
Fl::RepeatButton inherits from Fl::Button which in turns inherits from Fl::Widget. On top of that, it exposes the following methods...
my $button_a = Fl::RepeatButton->new(0, 0, 250, 500, 'Important Stuff'); my $button_b = Fl::RepeatButton->new(0, 0, 250, 500);
The constructor creates a new button using the given position, size, and label.
The destructor removes the button.
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Sanko Robinson <sanko@cpan.org>
To install Fl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fl
CPAN shell
perl -MCPAN -e shell install Fl
For more information on module installation, please visit the detailed CPAN module installation guide.