Curses::UI::Widget | +----Curses::UI::Progressbar
use Curses::UI; my $cui = new Curses::UI; my $win = $cui->add('window_id', 'Window'); my $progressbar = $win->add( 'myprogressbar', 'Progressbar', -max => 250, -pos => 42, ); $progressbar->draw;
+------------------------------------------+ |||||||||---------- 14% ------------------ | +------------------------------------------+
See exampes/demo-Curses::UI::Progressbar in the distribution for a short demo.
For an explanation of these standard options, see Curses::UI::Widget.
This opion sets the minimum value for the progress bar. Default is 0.
This opion sets the maximum value for the progress bar.
This option sets the startposition for the progress bar.
This option controls if a percentage indicator should be drawn in the widget. The default for the BOOLEAN value is false, so a percentage incdicator will be drawn.
If this option is set to a true value, the current position value will be drawn in the widget.
This option controls if a horizontal line should be drawn in the widget. The default for the BOOLEAN value is false, so a horizontal line will be drawn.
These are standard methods. See Curses::UI::Widget for an explanation of these.
This method will return the current -pos value of the widget.
This method will set the -pos value of the widget to SCALAR.
Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
This package is free software and is provided ``as is'' without express or implied warranty. It may be used, redistributed and/or modified under the same terms as perl itself.