class fltk::InvisibleBox


Class Hierarchy

fltk::Widget
   |
   +----fltk::InvisibleBox

Include Files

#include <fltk/Box.h>

Description

This widget is the same as an plain fltk::Widget except if the box is set to fltk::NO_BOX it is completely invisible and attemps to draw it do absolutely nothing. This can be used as the resizable() of a group or window to get more complex resize effects.

You can also set the box to provide decorations, but you can use the plain fltk::Widget for that, too.

Methods

fltk::InvisibleBox::Box(int x, int y, int w, int h, const char * = 0)
fltk::InvisibleBox::Box(fltk::Box b, int x, int y, int w, int h, const char *)

The first constructor sets box() to fltk::NO_BOX, which means it is invisible. However such widgets are useful as placeholders or fltk::Group::resizable() values. To change the box to something visible, use box(n).

The second form of the constructor sets the box to the specified box type.

fltk::InvisibleBox::~InvisibleBox(void)