Sanko Robinson > FLTK-0.532009 > FLTK::FrameBox



Annotate this POD


View/Report Bugs
Module Version: 0.532006   Source  


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 ^


$framebox->_draw( $rect );


my $string = $framebox->data( );
$framebox->data( $string );


my $does_it = $framebox->fills_rectangle( );


$framebox->inset( $rect );


my $is_it = $framebox->is_frame( );


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 <> -

License and Legal ^

Copyright (C) 2008-2010 by Sanko Robinson <>

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.

syntax highlighting: