21 Jan 2020 03:51:59 UTC
- Distribution: Fl
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (86 / 0 / 0)
- KwaliteeBus factor: 1
- License: artistic_2
- Perl: v5.8.1
- Activity24 month
- Download (122.46KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Fl::Box - Simple Box and Label Widget
my $box = Fl::Box->new(0, 0, 100, 200, 'Hello, World!');
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.
Fl::Box inherits from Fl::Widget and exposes the following methods...
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
FL_NO_BOXwhich means it is invisible. However such widgets are useful as placeholders or Fl::Group->resizable() values. To change the box to something visible, use
The third form of the constroctor sets the box to the specified box type.
The destructor removes the box.
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Sanko Robinson <email@example.com>