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

FX::FXPacker Class Reference

#include <FXPacker.h>

Inheritance diagram for FX::FXPacker:
FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXColorSelector FX::FXComboBox FX::FXDirSelector FX::FXDockBar FX::FXDockSite FX::FXFileSelector FX::FXFontSelector FX::FXGroupBox FX::FXHorizontalFrame FX::FXListBox FX::FXMatrix FX::FXRealSpinner FX::FXSpinner FX::FXSpring FX::FXSwitcher FX::FXTabBar FX::FXTreeListBox FX::FXVerticalFrame

List of all members.

Public Member Functions

 FXPacker (FXComposite *p, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_SPACING, FXint pr=DEFAULT_SPACING, FXint pt=DEFAULT_SPACING, FXint pb=DEFAULT_SPACING, FXint hs=DEFAULT_SPACING, FXint vs=DEFAULT_SPACING)
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual void layout ()
void setFrameStyle (FXuint style)
FXuint getFrameStyle () const
void setPackingHints (FXuint ph)
FXuint getPackingHints () const
FXint getBorderWidth () const
void setPadTop (FXint pt)
FXint getPadTop () const
void setPadBottom (FXint pb)
FXint getPadBottom () const
void setPadLeft (FXint pl)
FXint getPadLeft () const
void setPadRight (FXint pr)
FXint getPadRight () const
void setHiliteColor (FXColor clr)
FXColor getHiliteColor () const
void setShadowColor (FXColor clr)
FXColor getShadowColor () const
void setBorderColor (FXColor clr)
FXColor getBorderColor () const
void setBaseColor (FXColor clr)
FXColor getBaseColor () const
void setHSpacing (FXint hs)
FXint getHSpacing () const
void setVSpacing (FXint vs)
FXint getVSpacing () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)

Detailed Description

Packer is a layout manager which automatically places child windows inside its area against the left, right, top, or bottom side.

Each time a child is placed, the remaining space is decreased by the amount of space taken by the child window. The side against which a child is placed is determined by the LAYOUT_SIDE_TOP, LAYOUT_SIDE_BOTTOM, LAYOUT_SIDE_LEFT, and LAYOUT_SIDE_RIGHT hints given by the child window. Other layout hints from the child are observed as far as sensible. So for example, a child placed against the right edge can still have LAYOUT_FILL_Y or LAYOUT_TOP, and so on. The last child may have both LAYOUT_FILL_X and LAYOUT_FILL_Y, in which case it will be placed to take all remaining space.

See also:


Constructor & Destructor Documentation

FX::FXPacker::FXPacker ( FXComposite p,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = DEFAULT_SPACING,
FXint  pr = DEFAULT_SPACING,
FXint  pt = DEFAULT_SPACING,
FXint  pb = DEFAULT_SPACING,
FXint  hs = DEFAULT_SPACING,
FXint  vs = DEFAULT_SPACING 
)

Construct packer layout manager.


Member Function Documentation

Change frame style.

Get current frame style.

Change packing hints.

Return packing hints.

FXint FX::FXPacker::getBorderWidth ( ) const [inline]

Get border width.

Change top padding.

FXint FX::FXPacker::getPadTop ( ) const [inline]

Get top interior padding.

Change bottom padding.

FXint FX::FXPacker::getPadBottom ( ) const [inline]

Get bottom interior padding.

Change left padding.

FXint FX::FXPacker::getPadLeft ( ) const [inline]

Get left interior padding.

Change right padding.

FXint FX::FXPacker::getPadRight ( ) const [inline]

Get right interior padding.

Change highlight color.

Get highlight color.

Change shadow color.

Get shadow color.

Change border color.

Get border color.

Change base gui color.

FXColor FX::FXPacker::getBaseColor ( ) const [inline]

Get base gui color.

Change horizontal inter-child spacing.

FXint FX::FXPacker::getHSpacing ( ) const [inline]

Return current horizontal inter-child spacing.

Change vertical inter-child spacing.

FXint FX::FXPacker::getVSpacing ( ) const [inline]

Return current vertical inter-child spacing.

Copyright © 1997-2005 Jeroen van der Zijp