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

FX::FXToolBar Class Reference

A tool bar widget can be docked in a dock site; it automatically adjusts its orientation based on the orientation of the dock site, and adjusts the layout options accordingly. More...

#include <FXToolBar.h>

Inheritance diagram for FX::FXToolBar:

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

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, 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)
virtual void layout ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual void dock (FXDockSite *docksite, FXWindow *before=NULL, FXbool notify=FALSE)
virtual void dock (FXDockSite *docksite, FXint localx, FXint localy, FXbool notify)
void setDockingSide (FXuint side=LAYOUT_SIDE_TOP)
FXuint getDockingSide () const

Detailed Description

A tool bar widget can be docked in a dock site; it automatically adjusts its orientation based on the orientation of the dock site, and adjusts the layout options accordingly.

See dock bar widget for more information on the docking behavior.


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 floatable toolbar, initially docked under parent p.

FX::FXToolBar::FXToolBar FXComposite p,
FXuint  opts,
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.


Member Function Documentation

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

Perform layout.

Reimplemented from FX::FXPacker.

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::dock FXDockSite docksite,
FXWindow before = NULL,
FXbool  notify = FALSE
[virtual]
 

Dock and optionally flip orientation of toolbar.

Reimplemented from FX::FXDockBar.

virtual void FX::FXToolBar::dock FXDockSite docksite,
FXint  localx,
FXint  localy,
FXbool  notify
[virtual]
 

Dock and optionally flip orientation of toolbar.

Reimplemented from FX::FXDockBar.

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

Set docking side.

FXuint FX::FXToolBar::getDockingSide  )  const
 

Return docking side.

Copyright © 1997-2005 Jeroen van der Zijp