Inherits fltk::Widget.
Public Member Functions | |
void | draw () |
int | handle (int) |
InvisibleBox (Box *b, int x, int y, int w, int h, const char *l) | |
Static Public Attributes | |
static NamedStyle * | default_style = &::style |
This Widget is invisible due to not having a box(). The label still prints so it can be used to position labels. Also this is useful as a Group::resizable() widget.
InvisibleBox::InvisibleBox | ( | Box * | b, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
const char * | l | ||
) |
This constructor is for compatability with the fltk1 Fl_Box widget, and sets box() to b.
void InvisibleBox::draw | ( | void | ) | [virtual] |
All special-casing for NO_BOX has been moved to the base Widget::draw() so this just calls that.
Reimplemented from fltk::Widget.
int InvisibleBox::handle | ( | int | event | ) | [virtual] |
Handles enter/exit only if a tooltip is set. Otherwise it is assummed this is used for resizable and otherwise has no effect, so all e
Reimplemented from fltk::Widget.
NamedStyle * InvisibleBox::default_style = &::style [static] |
Sets box() to fltk::NO_BOX
, sets color() to fltk::GRAY75
for compatability with fltk1's Fl_Box widget.
Reimplemented from fltk::Widget.