![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXPacker.h>
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:
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.
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 | ) |
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::FXShutterItem, FX::FXShutter, 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::FXShutterItem, FX::FXShutter, FX::FXSpinner, FX::FXSpring, FX::FXStatusBar, FX::FXSwitcher, FX::FXTabBar, and FX::FXTreeListBox.
![]() |