FLTK::FrameBox - Box drawing code for the Fast Light Tool Kit (FLTK)
This box class interprets a small string stored in data() to indicate the gray shades to draw around the edge of the box and can be used to draw simple bezels.
data()
The box is drawn by calling drawframe() or drawframe2() if the string starts with a '2'.
drawframe()
drawframe2()
The normal up box draws the pattern AAWWHHTT
AAWWHHTT
The normal down_ box draws the pattern WWHHPPAA
WWHHPPAA
The PUSHED or STATE flags will cause the pattern from down_() to be used instead, allowing you to draw a different bezel when pushed in.
PUSHED
STATE
down_()
The INVISIBLE flag will not draw the interior, which can make many widgets draw faster and with less blinking.
INVISIBLE
_draw
$framebox->_draw( $rect );
data
my $string = $framebox->data( );
$framebox->data( $string );
fills_rectangle
my $does_it = $framebox->fills_rectangle( );
inset
$framebox->inset( $rect );
is_frame
my $is_it = $framebox->is_frame( );
new
my $box = $framebox->new( $name, $x, $y, $w, $h, $pattern, $down );
Constructor where you give the thickness of the borders used by inset().
inset()
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.