Fl::Progress - Displays a Progress Bar for the User
The Fl::Progress is a simple progress bar.
A full example of this widget can be found in eg/progress.pl
eg/progress.pl
Fl::Progress inherits from Fl::Widget. On top of that, it exposes the following methods...
my $pro_a = Fl::Progress->new(0, 0, 250, 500, 'Important Stuff'); my $pro_b = Fl::Progress->new(0, 0, 250, 500);
The constructor creates a new widget using the given position, size, and label.
You can set the background color with color() and the progress bar color with selection_color(), or you can set both colors together with color($bg, $sel).
color()
selection_color()
color($bg, $sel)
The default colors are FL_BACKGROUND2_COLOR and FL_YELLOW, resp.
The destructor removes the widget.
my $max = $pro_a->maximum(); $pro_a->maximum( 500.3 );
Gets or sets the maximum value in the progress widget.
my $min = $pro_a->minimum(); $pro_a->minimum( 2 );
Gets or sets the minimum value in the progress widget.
my $max = $pro_a->value(); $pro_a->value( 100 );
Gets or sets the current value in the progress widget.
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.