The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FLTK::FrameBox - Box drawing code for the Fast Light Tool Kit (FLTK)

Description

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.

The box is drawn by calling drawframe() or drawframe2() if the string starts with a '2'.

The normal up box draws the pattern AAWWHHTT

The normal down_ box draws the pattern 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.

The INVISIBLE flag will not draw the interior, which can make many widgets draw faster and with less blinking.

Functions

_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().

Author

Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/

License and Legal

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.