fltk::ToolBar Class Reference

Inheritance diagram for fltk::ToolBar:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

void add (Widget &w)
void layout ()
void end ()

Detailed Description

This class provide the functionality of toolbar.


Member Function Documentation

void fltk::ToolBar::add Widget w  )  [inline]
 

The widget is removed from it's current group (if any) and then added to the end of this group.

Reimplemented from fltk::Group.

void fltk::ToolBar::end  )  [inline]
 

end() is exactly the same as current(this->parent()). Any new widgets added to the widget tree will be added to the parent of the group.

Reimplemented from fltk::Group.

void ToolBar::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::GripperBar.


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