Fl::ValueSlider - Slider with a Box Displaying the Current Value
The Fl::ValueSlider draws a widget with a box displaying the current value.
Fl::ValueSlider inherits from Fl::Slider, Fl::Valuator and Fl::Widget. On top of that, it exposes the following methods...
my $val_a = Fl::ValueSlider->new(0, 0, 250, 500, 'Important Stuff'); my $val_b = Fl::ValueSlider->new(0, 0, 250, 500);
The constructor creates a new widget using the given position, size, and label.
The default boxtype is FL_DOWN_BOX.
The destructor removes the widget.
$val_a->textcolor( FL_RED ); my $color = $val_b->textcolor( );
Gets or sets the color of the text in the value box.
$val_a->textfont( FL_BOLD ); my $font = $val_b->textfont( );
Gets or sets the typeface of the text in the value box.
$val_a->textsize( 18 ); my $size = $val_b->textsize( );
Gets or sets the size of the text in the value box.
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.