NAME
FLTK::Box - Define your own values for box()
on a widget by making one of these
Description
Functions
BORDER_BOX
my $box = FLTK::BORDER_BOX( );
-
1-pixel thick gray line around rectangle.
Import this function with the
:box
tag.
DOWN_BOX
my $down = FLTK::DOWN_BOX( );
-
Inset box in fltk's standard theme.
Import this function with the
:box
tag.
EMBOSSED_BOX
my $box = FLTK::EMBOSSED_BOX( );
-
2-pixel thick raised line around edge.
Import this function with the
:box
tag.
ENGRAVED_BOX
my $box = FLTK::ENGRAVED_BOX( );
-
2-pixel thick engraved line around edge.
Import this function with the
:box
tag.
FLAT_BOX
my $flat = FLTK::FLAT_BOX( );
-
Draws a flat rectangle of
getbgcolor()
.Import this function with the
:box
tag.
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.Import this function with the
:box
tag.
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.Import this function with the
:box
tag.
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.
Import this function with the
:box
tag.
THIN_DOWN_BOX
THIN_UP_BOX
UP_BOX
my $up = FLTK::UP_BOX( );
-
Up button in fltk's standard theme.
Import this function with the
:box
tag.
_draw
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.Emulates the fltk1
fl_frame2()
function.Import this function with the
:box
tag.
drawframe2
$box->drawframe2( $s, $x, $y, $w, $h );
-
Draw a spiral similar to
drawframe()
, but starts with the top edge and goes counter-clockwise.Emulates the fltk1
fl_frame()
function.Import this function with the
:box
tag.
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.