Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXToolBar Class Reference

ToolBar control. More...

#include <FXToolBar.h>

Inheritance diagram for FX::FXToolBar:

FX::FXPacker FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXMenuBar List of all members.

Public Types

enum  {
  ID_UNDOCK = FXPacker::ID_LAST,
  ID_DOCK_TOP,
  ID_DOCK_BOTTOM,
  ID_DOCK_LEFT,
  ID_DOCK_RIGHT,
  ID_TOOLBARGRIP,
  ID_LAST
}

Public Member Functions

 FXToolBar (FXComposite *p, FXComposite *q, FXuint opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=3, FXint pr=3, FXint pt=2, FXint pb=2, FXint hs=DEFAULT_SPACING, FXint vs=DEFAULT_SPACING)
 FXToolBar (FXComposite *p, FXuint opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=2, FXint pr=3, FXint pt=3, FXint pb=2, FXint hs=DEFAULT_SPACING, FXint vs=DEFAULT_SPACING)
void setDryDock (FXComposite *dry)
void setWetDock (FXComposite *wet)
FXCompositegetDryDock () const
FXCompositegetWetDock () const
FXbool isDocked () const
virtual void dock (FXuint side=LAYOUT_SIDE_TOP, FXWindow *after=(FXWindow *)-1L)
virtual void undock ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual void layout ()
virtual FXint getWidthForHeight (FXint h)
virtual FXint getHeightForWidth (FXint w)
void setDockingSide (FXuint side=LAYOUT_SIDE_TOP)
FXuint getDockingSide () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXToolBar ()

Detailed Description

ToolBar control.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ID_UNDOCK  Undock the toolbar.
ID_DOCK_TOP  Dock on the top.
ID_DOCK_BOTTOM  Dock on the bottom.
ID_DOCK_LEFT  Dock on the left.
ID_DOCK_RIGHT  Dock on the right.
ID_TOOLBARGRIP  Notifications from toolbar grip.


Constructor & Destructor Documentation

FX::FXToolBar::FXToolBar FXComposite p,
FXComposite q,
FXuint  opts = LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = 3,
FXint  pr = 3,
FXint  pt = 2,
FXint  pb = 2,
FXint  hs = DEFAULT_SPACING,
FXint  vs = DEFAULT_SPACING
 

Construct a floatable toolbar Normally, the toolbar is docked under window p.

When floated, the toolbar can be docked under window q, which is typically an FXToolBarShell window.

FX::FXToolBar::FXToolBar FXComposite p,
FXuint  opts = LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = 2,
FXint  pr = 3,
FXint  pt = 3,
FXint  pb = 2,
FXint  hs = DEFAULT_SPACING,
FXint  vs = DEFAULT_SPACING
 

Construct a non-floatable toolbar.

The toolbar can not be undocked.

virtual FX::FXToolBar::~FXToolBar  )  [virtual]
 

Destroy.


Member Function Documentation

void FX::FXToolBar::setDryDock FXComposite dry  ) 
 

Set parent when docked.

If it was docked, reparent under the new docking window.

void FX::FXToolBar::setWetDock FXComposite wet  ) 
 

Set parent when floating.

If it was undocked, then reparent under the new floating window.

FXComposite* FX::FXToolBar::getDryDock  )  const [inline]
 

Return parent when docked.

FXComposite* FX::FXToolBar::getWetDock  )  const [inline]
 

Return parent when floating.

FXbool FX::FXToolBar::isDocked  )  const
 

Return true if toolbar is docked.

virtual void FX::FXToolBar::dock FXuint  side = LAYOUT_SIDE_TOP,
FXWindow after = (FXWindow *)-1L
[virtual]
 

Dock the bar against the given side, after some other widget.

However, if after is -1, it will be docked as the innermost bar just before the work-area, while if after is 0, if will be docked as the outermost bar.

virtual void FX::FXToolBar::undock  )  [virtual]
 

Undock or float the bar.

The initial position of the wet dock is a few pixels below and to the right of the original docked position.

virtual FXint FX::FXToolBar::getDefaultWidth  )  [virtual]
 

Return default width.

Reimplemented from FX::FXPacker.

virtual FXint FX::FXToolBar::getDefaultHeight  )  [virtual]
 

Return default height.

Reimplemented from FX::FXPacker.

virtual void FX::FXToolBar::layout  )  [virtual]
 

Perform layout.

Reimplemented from FX::FXPacker.

virtual FXint FX::FXToolBar::getWidthForHeight FXint  h  )  [virtual]
 

Return width for given height.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXToolBar::getHeightForWidth FXint  w  )  [virtual]
 

Return height for given width.

Reimplemented from FX::FXWindow.

void FX::FXToolBar::setDockingSide FXuint  side = LAYOUT_SIDE_TOP  ) 
 

Set docking side.

FXuint FX::FXToolBar::getDockingSide  )  const
 

Return docking side.

virtual void FX::FXToolBar::save FXStream store  )  const [virtual]
 

Save toolbar to a stream.

Reimplemented from FX::FXPacker.

virtual void FX::FXToolBar::load FXStream store  )  [virtual]
 

Load toolbar from a stream.

Reimplemented from FX::FXPacker.

Copyright © 1997-2004 Jeroen van der Zijp