|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--gtk.Object | +--gtk.Widget | +--gtk.Container | +--gtk.Box
Defined in jsgtk_min.js
Constructor Summary | |
gtk.Box(homogeneous, spacing)
|
Method Summary | |
void
|
_appendPackChild(element, space)
|
void
|
_connectChildrenSignal()
|
Object
|
_getChildDomByPos(pos, packType)
|
Object
|
_getLastPackEndChild()
|
void
|
_hideLastSpace()
|
Object
|
_isChild(dom)
|
void
|
_packChild(child, expand, fill, padding, packType)
|
boolean
|
getHomogeneous()
Returns whether the box is homogeneous (all children are allocated the same space) |
Object
|
getMinHeight()
|
Object
|
getMinWidth()
|
integer
|
getSpace()
returns the number of pixels used as padding between children as set by the set_spacing() |
void
|
packChildren(children)
Packed with reference to the start of box. |
void
|
packEnd(child, <boolean> expand, <boolean> fill, <integer> padding)
Adds child to the box, packed with reference to the end of the box. |
void
|
packEndDefaults(<gtk.Widget> child)
Pack the child from bottom to top widht default expend: true, fill: true, padding: 0 |
void
|
packStart(<gtk.Widget> child, <Boolean> expand, <boolean> fill, <integer> padding)
Packed with reference to the start of box. |
void
|
packStartDefaults(<gtk.Widget> child)
Pack the child from top to bottom widht default expend: true, fill: true, padding: 0 |
Object
|
queryChildPacking(<gtk.Widget> child)
Queray child information, contains: expand, fill, padding and packtype |
void
|
reorderChild(<gtk.Widget> childDom, <integer> position)
Reorder child to new position of same packtype |
void
|
resetHeightComposite()
|
void
|
resetWidthComposite()
|
void
|
resize(width, height)
|
void
|
setHomogeneous(homogeneous)
Sets the homogeneous (all children are allocated the same space) property of the box. |
void
|
setSize(<integer> width, <integer> height)
setSize() method : set the width and height of widget and emit signal 'bubble' signal 'bubble' will inform this widget's parent about it new size |
void
|
setSpace(spacing)
|
Methods inherited from class gtk.Container |
add, remove, getBorderWidth, setBorderWidth
|
Methods inherited from class gtk.Widget |
setBoldTitle, getNode, show, hide, activate, setActivateSignal, getActivateSignal, setSizeRequest, setWidth, getWidth, setHeight, getHeight, getSizeRequest, sizeRequest, getSize, _resizeHeight, _resizeWidth, getMinWidthComposite, getMinHeightComposite, resizeWidthComposite, resizeHeightComposite
|
Constructor Detail |
gtk.Box(homogeneous, spacing)
Method Detail |
void _appendPackChild(element, space)
void _connectChildrenSignal()
Object _getChildDomByPos(pos, packType)
Object _getLastPackEndChild()
void _hideLastSpace()
Object _isChild(dom)
void _packChild(child, expand, fill, padding, packType)
boolean getHomogeneous()
Object getMinHeight()
Object getMinWidth()
integer getSpace()
void packChildren(children)
child
- -widgets : [{child, expand, fill, padding, packType}, ...] - child : a widget - expaned : make the space given to a child widget expand to fill the vbox available space - padding : the size of top and bottom padding of a widget - packType: type of packing the child to vbox eg. gtk.PACK_START or gtk.PACK_END
void packEnd(child, <boolean> expand, <boolean> fill, <integer> padding)
expand
- True if child is to be given extra space allocated to box. The extra space will be divided evenly between all children of box that use this option.
fill
- True if space given to child by the expand option is actually allocated to child, rather than just padding it. This parameter has no effect if expand is set to False. A child is always allocated the full height of a gtk.HBox and the full width of a gtk.VBox. This option affects the other dimension.
padding
- Extra space in pixels to put between child and its neighbors, over and above the global amount specified by spacing in gtk.Box. If child is a widget at one of the reference ends of box, then padding pixels are also put between child and the reference edge of box.
The
- widget to be added to the box
void packEndDefaults(<gtk.Widget> child)
child
- The widget to be added to the box
void packStart(<gtk.Widget> child, <Boolean> expand, <boolean> fill, <integer> padding)
child
- The widget to be added to the box
expand
- True if child is to be given extra space allocated to box. The extra space will be divided evenly between all children of box that use this option
fill
- True if space given to child by the expand option is actually allocated to child, rather than just padding it. This parameter has no effect if expand is set to False. A child is always allocated the full height of a gtk.HBox and the full width of a gtk.VBox
padding
- Extra space in pixels to put between child and its neighbors, over and above the global amount specified by spacing in gtk.Box. If child is a widget at one of the reference ends of box, then padding pixels are also put between child and the reference edge of box.
void packStartDefaults(<gtk.Widget> child)
child
- The widget to be added to the box
Object queryChildPacking(<gtk.Widget> child)
child
- The child widget to be queried for its packing information
void reorderChild(<gtk.Widget> childDom, <integer> position)
childDom
- The child widget to move
position
- The new position for child in the children list of the box starting from 0. If negative, indicates the end of the list
void resetHeightComposite()
void resetWidthComposite()
void resize(width, height)
void setHomogeneous(homogeneous)
homogeneuous
- If True the box is homogeneous i.e. all children are allocated the same space otherwise the allocations vary for each child.
void setSize(<integer> width, <integer> height)
width
- : new width of widget
height
- : new height of widget
void setSpace(spacing)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |