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

FX::FXPacker Class Reference

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

#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

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

Return default width.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXComboBox, FX::FXDockSite, FX::FXGroupBox, FX::FXHorizontalFrame, FX::FXListBox, FX::FXMatrix, FX::FXRealSpinner, FX::FXSpinner, FX::FXSpring, FX::FXStatusBar, FX::FXSwitcher, FX::FXTabBar, FX::FXTabBook, FX::FXToolBar, FX::FXTreeListBox, and FX::FXVerticalFrame.

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

Return default height.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXComboBox, FX::FXDockSite, FX::FXGroupBox, FX::FXHorizontalFrame, FX::FXListBox, FX::FXMatrix, FX::FXRealSpinner, FX::FXSpinner, FX::FXSpring, FX::FXStatusBar, FX::FXSwitcher, FX::FXTabBar, FX::FXTabBook, FX::FXToolBar, FX::FXTreeListBox, and FX::FXVerticalFrame.

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

Perform layout.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXComboBox, FX::FXDockSite, FX::FXGroupBox, FX::FXHorizontalFrame, FX::FXListBox, FX::FXMatrix, FX::FXRealSpinner, FX::FXShutter, FX::FXSpinner, FX::FXStatusBar, FX::FXSwitcher, FX::FXTabBar, FX::FXTabBook, FX::FXToolBar, FX::FXTreeListBox, and FX::FXVerticalFrame.

void FX::FXPacker::setFrameStyle FXuint  style  ) 
 

Change frame style.

FXuint FX::FXPacker::getFrameStyle  )  const
 

Get current frame style.

void FX::FXPacker::setPackingHints FXuint  ph  ) 
 

Change packing hints.

FXuint FX::FXPacker::getPackingHints  )  const
 

Return packing hints.

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

Get border width.

void FX::FXPacker::setPadTop FXint  pt  ) 
 

Change top padding.

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

Get top interior padding.

void FX::FXPacker::setPadBottom FXint  pb  ) 
 

Change bottom padding.

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

Get bottom interior padding.

void FX::FXPacker::setPadLeft FXint  pl  ) 
 

Change left padding.

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

Get left interior padding.

void FX::FXPacker::setPadRight FXint  pr  ) 
 

Change right padding.

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

Get right interior padding.

void FX::FXPacker::setHiliteColor FXColor  clr  ) 
 

Change highlight color.

FXColor FX::FXPacker::getHiliteColor  )  const [inline]
 

Get highlight color.

void FX::FXPacker::setShadowColor FXColor  clr  ) 
 

Change shadow color.

FXColor FX::FXPacker::getShadowColor  )  const [inline]
 

Get shadow color.

void FX::FXPacker::setBorderColor FXColor  clr  ) 
 

Change border color.

FXColor FX::FXPacker::getBorderColor  )  const [inline]
 

Get border color.

void FX::FXPacker::setBaseColor FXColor  clr  ) 
 

Change base gui color.

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

Get base gui color.

void FX::FXPacker::setHSpacing FXint  hs  ) 
 

Change horizontal inter-child spacing.

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

Return current horizontal inter-child spacing.

void FX::FXPacker::setVSpacing FXint  vs  ) 
 

Change vertical inter-child spacing.

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

Return current vertical inter-child spacing.

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

Save to stream.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXColorSelector, FX::FXComboBox, FX::FXDirBox, FX::FXDirSelector, FX::FXDockBar, FX::FXDriveBox, FX::FXFileSelector, FX::FXFontSelector, FX::FXGroupBox, FX::FXListBox, FX::FXRealSpinner, FX::FXSpinner, FX::FXSpring, FX::FXStatusBar, FX::FXSwitcher, FX::FXTabBar, and FX::FXTreeListBox.

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

Load from stream.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXColorSelector, FX::FXComboBox, FX::FXDirBox, FX::FXDirSelector, FX::FXDockBar, FX::FXDriveBox, FX::FXFileSelector, FX::FXFontSelector, FX::FXGroupBox, FX::FXListBox, FX::FXRealSpinner, FX::FXSpinner, FX::FXSpring, FX::FXStatusBar, FX::FXSwitcher, FX::FXTabBar, and FX::FXTreeListBox.

Copyright © 1997-2005 Jeroen van der Zijp