NAME

Fl::ValueSlider - Slider with a Box Displaying the Current Value

Description

The Fl::ValueSlider draws a widget with a box displaying the current value.

Methods

Fl::ValueSlider inherits from Fl::Slider, Fl::Valuator and Fl::Widget. On top of that, it exposes the following methods...

new(...)

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.

textcolor(...)

$val_a->textcolor( FL_RED );
my $color = $val_b->textcolor( );

Gets or sets the color of the text in the value box.

textfont(...)

$val_a->textfont( FL_BOLD );
my $font = $val_b->textfont( );

Gets or sets the typeface of the text in the value box.

textsize(...)

$val_a->textsize( 18 );
my $size = $val_b->textsize( );

Gets or sets the size of the text in the value box.

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>