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

FX::FXToolBarGrip Class Reference

#include <FXToolBarGrip.h>

Inheritance diagram for FX::FXToolBarGrip:

FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Methods

 FXToolBarGrip (FXToolBar *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=TOOLBARGRIP_SINGLE, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct toolbar grip.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

void setDoubleBar (FXbool dbl=TRUE)
 Change toolbar grip to double.

FXuint getDoubleBar () const
 Return toolbar grip to double.

void setHiliteColor (FXColor clr)
 Change highlight color.

FXColor getHiliteColor () const
 Get highlight color.

void setShadowColor (FXColor clr)
 Change shadow color.

FXColor getShadowColor () const
 Get shadow color.

void setActiveColor (FXColor clr)
 Set the active color.

FXColor getActiveColor () const
 Get the active color.

virtual void save (FXStream &store) const
 Save to stream.

virtual void load (FXStream &store)
 Load from stream.


Detailed Description

A toolbar grip is used to move its parent [an FXToolBar]. The grip draws either a single or double bar; it is customary to use the single bar grip for toolbar-rearrangements only, and use the double-bar when the toolbar needs to be floated or docked. The toolbar grip is automatically oriented properly by the the toolbar widget.

See also: