FLTK::Box - Define your own values for box() on a widget by making one of these
box()
BORDER_BOX
my $box = FLTK::BORDER_BOX( );
1-pixel thick gray line around rectangle.
Import this function with the :box tag.
:box
DOWN_BOX
my $down = FLTK::DOWN_BOX( );
Inset box in fltk's standard theme.
EMBOSSED_BOX
my $box = FLTK::EMBOSSED_BOX( );
2-pixel thick raised line around edge.
ENGRAVED_BOX
my $box = FLTK::ENGRAVED_BOX( );
2-pixel thick engraved line around edge.
FLAT_BOX
my $flat = FLTK::FLAT_BOX( );
Draws a flat rectangle of getbgcolor().
getbgcolor()
HIGHLIGHT_DOWN_BOX
my $box = FLTK::HIGHLIGHT_DOWN_BOX( );
Draws nothing normally, and as THIN_DOWN_BOX when the mouse pointer points at it or the value of the widget is turned on.
THIN_DOWN_BOX
HIGHLIGHT_UP_BOX
my $box = FLTK::HIGHLIGHT_UP_BOX( );
Draws nothing normally, and as THIN_UP_BOX when the mouse pointer points at it or the value of the widget is turned on.
THIN_UP_BOX
NO_BOX
my $none = FLTK::NO_BOX( );
Draws nothing.
Can be used as a box to make the background of a widget invisible. Also some widgets check specifically for this and change their behavior or drawing methods.
my $down = FLTK::THIN_DOWN_BOX( );
1-pixel-thick inset box.
my $up = FLTK::THIN_UP_BOX( );
1-pixel-thick raised box.
UP_BOX
my $up = FLTK::UP_BOX( );
Up button in fltk's standard theme.
_draw
$box->_draw( $rect );
drawframe
$box->drawframe( $s, $x, $y, $w, $h );
Draw a spiral, useful as a box edge, starting with the bottom edge and going in a counter-clockwise direction, from the outside in toward the center. The string is interpreted to get a gray shade: A is black, X is white, and all other letters are 24 possible steps of gray shade, and R is the normal background color of GRAY75. A leading '2' makes it start with the top edge, which will reverse exactly which pixels are drawn in the corner.
GRAY75
Emulates the fltk1 fl_frame2() function.
fl_frame2()
drawframe2
$box->drawframe2( $s, $x, $y, $w, $h );
Draw a spiral similar to drawframe(), but starts with the top edge and goes counter-clockwise.
drawframe()
Emulates the fltk1 fl_frame() function.
fl_frame()
Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/
Copyright (C) 2008-2010 by Sanko Robinson <sanko@cpan.org>
This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.
When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.
To install FLTK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FLTK
CPAN shell
perl -MCPAN -e shell install FLTK
For more information on module installation, please visit the detailed CPAN module installation guide.