NAME

Fl::Progress - Displays a Progress Bar for the User

Description

The Fl::Progress is a simple progress bar.

A full example of this widget can be found in eg/progress.pl

Methods

Fl::Progress inherits from Fl::Widget. On top of that, it exposes the following methods...

new(...)

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

The default colors are FL_BACKGROUND2_COLOR and FL_YELLOW, resp.

The destructor removes the widget.

maximum(...)

my $max = $pro_a->maximum();
$pro_a->maximum( 500.3 );

Gets or sets the maximum value in the progress widget.

minimum(...)

my $min = $pro_a->minimum();
$pro_a->minimum( 2 );

Gets or sets the minimum value in the progress widget.

maximum(...)

my $max = $pro_a->value();
$pro_a->value( 100 );

Gets or sets the current value in the progress widget.

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Sanko Robinson <sanko@cpan.org>