fltk::BarHolder Class Reference

Inheritance diagram for fltk::BarHolder:

Inheritance graph
[legend]
Collaboration diagram for fltk::BarHolder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BarHolder (int, int, int, int, Flags=HALIGN_UNKNOWN)
 BarHolder (int, int, Flags)
void layout ()

Detailed Description

This class provides the methods for docking and undocking fltk::GripperBar and fltk::ToolBar.


Constructor & Destructor Documentation

BarHolder::BarHolder int  X,
int  Y,
int  W,
int  H,
Flags  a = HALIGN_UNKNOWN
 

See: DockHolder::DockHolder(int, int, int, int, Flags);

BarHolder::BarHolder int  W,
int  H,
Flags  a
 

See: DockHolder::DockHolder(int, int, Flags);


Member Function Documentation

void BarHolder::layout  )  [virtual]
 

Virtual function to respond to layout_damage(), it should calculate the correct size of this widget and all it's children. This function is called by fltk or by the layout() method in other widgets. User programs should not call it.

A widget is allowed to alter it's own size in a layout() method, to indicate a size that the data will fit in. A parent widget is then expected to rearrange itself to accomodate the new size. This may mean it will move the widget and thus layout() will be called again.

You can look at layout_damage() to find out why this is being called.

The base class redraws the widget and sets layout_damage() to zero.

Reimplemented from fltk::DockHolder.


Tue Jun 27 02:19:57 2006. FLTK Dock is copyright © 2006 by MD. Z. Hossain