IWL::Spinner - a number spinner widget
IWL::Error -> IWL::Object -> IWL::Widget -> IWL::Input -> IWL::Entry -> IWL::Spinner
The spinner widget is a special entry, that can show a numerical counter
IWL::Spinner->new ([%ARGS])
Where %ARGS is an optional hash parameter with with key-values.
Set to true if the spinner input is read-only
The maximum number of characters the spinner can hold
The size of the spinner input
The starting value of the spinner. Defaults to 0
The lower range of the spinner. Defaults to 0
The upper range of the spinner. Defaults to 100
The step increment of the spinner. Defaults to 1.0
The page increment of the spinner. Defaults to 10.0
The acceleration of the spinner. Defaults to 0.1
True, if the spinner should snap. Defaults to false
True, if the spinner should wrap. Defaults to false
The numeric precision of the spinner, in fixed-point notation
The spinner mask
Sets the range of the spinner
Parameter: FROM - the lower numeric value, TO - the upper numeric value
Returns an array with the lower and upper numeric limits of the spinner
Sets the precision of the spinner, in fixed-point notation
Parameters: PRECISION - the precision number, between 0 and 20
Returns the precision of the spinner
Sets the step and page increments of the spinner
Parameters: STEP - a float number, corresponding to the step increment, PAGE - a float number, corresponding to the page increment (shift-click, shift-arrow)
Returns an array of the step and page increments
Sets the acceleration of the spinner incrementation
Parameters: ACCELERATION - a float number, corresponding to the acceleration of the spinner
Returns the spinner acceleration
Sets the initial value of the spinner
Parameters: VALUE - the numerical value of the spinner
Returns the initial value of the spinner
Sets whether the spinner will wrap if it gets an out-of-range value
Parameters: BOOL - true, if the spinner should wrap
Returns true if the spinner wraps
Sets whether the spinner will try to adjust incorrect values to the nearest possible one
Parameters: BOOL - true, if the spinner should snap
Returns true if the spinner snaps
Sets the mask of the spinner. A mask defines a string, a portion of which represents the numeric value, and the rest is text.
Parameters: MASK - a string mask. In order to display the spinner value, the string must contain #{number}. e.g.: "#{number} euro"
Returns the mask of the spinner
Copyright (c) 2006-2008 Viktor Kojouharov. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install IWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IWL
CPAN shell
perl -MCPAN -e shell install IWL
For more information on module installation, please visit the detailed CPAN module installation guide.