fltk::InvisibleBox Class Reference

Inherits fltk::Widget.

List of all members.


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.


Public Member Functions

void draw ()
int handle (int)
 InvisibleBox (Box *b, int x, int y, int w, int h, const char *l)
 InvisibleBox (int x, int y, int w, int h, const char *l=0)

Static Public Attributes

static NamedStyledefault_style


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

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.

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.


Member Data Documentation

NamedStyle * InvisibleBox::default_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.


Fri Apr 2 15:19:55 2010. FLTK ©2007 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.