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

NAME

Fl::Box - Simple Box and Label Widget

Synopsis

    my $box = Fl::Box->new(0, 0, 100, 200, 'Hello, World!');

Description

This widget simply draws its box, and possibly its label.

Putting it before some other widgets and making it big enough to surround them will let you draw a frame around them.

Methods

Fl::Box inherits from Fl::Widget and exposes the following methods...

new(...)

    my $box_a = Fl::Box->new(0, 0, 250, 500);
    my $box_b = Fl::Box->new(0, 0, 250, 500, 'Important Stuff');
    my $box_c = Fl::Box->new(FL_UP_BOX, 0, 0, 250, 500, 'Important Stuff');

The first two constructors set box() to FL_NO_BOX which means it is invisible. However such widgets are useful as placeholders or Fl::Group->resizable() values. To change the box to something visible, use box($type).

The third form of the constroctor sets the box to the specified box type.

The destructor removes the box.

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Sanko Robinson <sanko@cpan.org>