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)
 InvisibleBox (int x, int y, int w, int h, const char *l=0)

Static Public Attributes

static NamedStyledefault_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.

References default_style.


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.

References fltk::ENTER, and fltk::NO_BOX.

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

Sets box() to fltk::NO_BOX, sets color() to fltk::GRAY75 for compatability with fltk1's Fl_Box widget.

Reimplemented from fltk::Widget.

Referenced by InvisibleBox().


Wed Jun 17 08:53:25 2009. 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.