NAME
Curses::Toolkit::Widget::ProgressBar - progress bar widget base class
VERSION
version 0.100630
THEME RELATED PROPERTIES
To set/get a theme properties, you should do :
$button->set_theme_property(property_name => $property_value);
$value = $button->get_theme_property('property_name');
Here is the list of properties related to the window, that can be changed in the associated theme. See the Curses::Toolkit::Theme class used for the default (default class to look at is Curses::Toolkit::Theme::Default)
Don't forget to look at properties from the parent class, as these are also inherited from!
border_width (inherited)
The width of the border of the button.
Example: # set buttons to have a border of 1 $button->set_theme_property(border_width => 1 );
default_width
Sets the value of the default width of the progress bar.
char_done
Sets the value of the char used to represent the done portion of the progress bar.
Example : # set char_done $entry->set_theme_property(char_done => '=' );
char_left
Sets the value of the char used to represent the left portion of the progress bar.
Example : # set char_left $entry->set_theme_property(char_left => '=' );
SYNOPSIS
# don't use this widget directly
DESCRIPTION
A ProgressBar widget is a widget that displays a progress bar horizontally or vertically
Don't use this widget directly. Please see Curses::Toolkit::Widget::HProgressBar and Curses::Toolkit::Widget::VProgressBar.
ATTRIBUTES
minimum
The minimum value (a float) for the progress bar. Default to 0.
maximum
The maximum value (a float) for the progress bar. Default to 100.
position
The current value of the progress bar. Default to 0.
label_type
What to show in the progress bar. Must be a PROGRESS_BAR_LABEL
- check Curses::Toolkit::Types for valid options. Default to percent
.
METHODS
new
input: none
output: a Curses::Toolkit::Widget::ProgressBar
possible_signals
my @signals = keys $button->possible_signals();
Returns the possible signals that can be used on this widget. See Curses::Toolkit::Widget::signal_connect to bind signals to actions
input: none
output: HASH, keys are signal names, values are signal classes
The progress bar accepts no signal.
AUTHOR
Damien "dams" Krotkine
COPYRIGHT AND LICENSE
This software is copyright (c) 2008 by Damien "dams" Krotkine.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.