fltk::InvisibleBox Class Reference

Inherits fltk::Widget.

List of all members.

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 NamedStyledefault_style = &::style

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following files: