FXPacker

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.


FXPacker(p, opts=0, x=0, y=0, w=0, h=0, pl=4, pr=4, pt=4, pb=4, hs=4, vs=4)

Construct packer layout manager.

ArgumentTypeDefaultDescription
pFXComposite  
optsInt0 
xInt0 
yInt0 
wInt0 
hInt0 
plInt4 
prInt4 
ptInt4 
pbInt4 
hsInt4 
vsInt4 


getBaseColor()

Get base gui color.


getBorderColor()

Get border color.


getBorderWidth()

Get border width.


getDefaultHeight()

Return default height.

Reimplemented from FXComposite.

Reimplemented in AFXToolbarGroup, AFXPrimFloatSpinner, AFXSlider, AFXVerticalAligner, FXComboBox, FXDockSite, FXGroupBox, FXHorizontalFrame, FXListBox, FXMatrix, FXSpinner, FXStatusbar, FXSwitcher, FXTabBar, FXTabBook, FXToolbar, FXTreeListBox, and FXVerticalFrame.


getDefaultWidth()

Return default width.

Reimplemented from FXComposite.

Reimplemented in AFXToolbarGroup, AFXOptionTreeItem, AFXPrimFloatSpinner, AFXSlider, AFXTextField, AFXVerticalAligner, FXComboBox, FXDockSite, FXGroupBox, FXHorizontalFrame, FXListBox, FXMatrix, FXSpinner, FXStatusbar, FXSwitcher, FXTabBar, FXTabBook, FXToolbar, FXTreeListBox, and FXVerticalFrame.


getFrameStyle()

Get current frame style.


getHiliteColor()

Get highlight color.


getHSpacing()

Return current horizontal inter-child spacing.


getPackingHints()

Return packing hints.


getPadBottom()

Get bottom interior padding.


getPadLeft()

Get left interior padding.


getPadRight()

Get right interior padding.


getPadTop()

Get top interior padding.


getShadowColor()

Get shadow color.


getVSpacing()

Return current vertical inter-child spacing.


setBaseColor(clr)

Change base gui color.

ArgumentTypeDefaultDescription
clrFXColor  


setBorderColor(clr)

Change border color.

ArgumentTypeDefaultDescription
clrFXColor  


setFrameStyle(style)

Change frame style.

ArgumentTypeDefaultDescription
styleInt  


setHiliteColor(clr)

Change highlight color.

ArgumentTypeDefaultDescription
clrFXColor  


setHSpacing(hs)

Change horizontal inter-child spacing.

ArgumentTypeDefaultDescription
hsInt  


setPackingHints(ph)

Change packing hints.

ArgumentTypeDefaultDescription
phInt  


setPadBottom(pb)

Change bottom padding.

ArgumentTypeDefaultDescription
pbInt  


setPadLeft(pl)

Change left padding.

ArgumentTypeDefaultDescription
plInt  


setPadRight(pr)

Change right padding.

ArgumentTypeDefaultDescription
prInt  


setPadTop(pt)

Change top padding.

ArgumentTypeDefaultDescription
ptInt  


setShadowColor(clr)

Change shadow color.

ArgumentTypeDefaultDescription
clrFXColor  


setVSpacing(vs)

Change vertical inter-child spacing.

ArgumentTypeDefaultDescription
vsInt