Class gtk.VBox
Object
|
+--gtk.Object
|
+--gtk.Widget
|
+--gtk.Container
|
+--gtk.Box
|
+--gtk.VBox
- class
gtk.VBox
- extends gtk.Box
Defined in jsgtk_min.js
Constructor Summary |
gtk.VBox(<boolean> homogeneous, <integer> spacing)
Class gtk.VBox : Create a vertical box
|
Methods inherited from class gtk.Box |
packChildren, packStart, packEnd, setSpace, getSpace, queryChildPacking, packStartDefaults, packEndDefaults, setHomogeneous, getHomogeneous, reorderChild, setSize, _packChild, _connectChildrenSignal, _appendPackChild, _isChild, _getChildDomByPos, _getLastPackEndChild, _hideLastSpace, getMinWidth, getMinHeight, resize, resetWidthComposite, resetHeightComposite
|
Methods inherited from class gtk.Widget |
setBoldTitle, getNode, show, hide, activate, setActivateSignal, getActivateSignal, setSizeRequest, setWidth, getWidth, setHeight, getHeight, getSizeRequest, sizeRequest, getSize, _resizeHeight, _resizeWidth
|
gtk.VBox
gtk.VBox(<boolean> homogeneous, <integer> spacing)
Class gtk.VBox : Create a vertical box
Parameters:
homogeneous
- : resovle to true will divide vbox into equally height small vboxs
spacing
- : number of pixel of space height between vboxs
_createElement
Object _createElement(packType)
_createSpace
Object _createSpace()
_getChildHeight
Object _getChildHeight(child)
PRIVATE METHODS *
**********************************************************************************
/**
get child's height plus its top and bottom padding
_getMaxChildSize
void _getMaxChildSize()
_getWidgetsSizeNoHomo
void _getWidgetsSizeNoHomo()
_handleH
void _handleH()
_handleNH
void _handleNH()
_resizeElement
void _resizeElement(<object> element, <object> domObj, <integer> width, <integer> height, <integer> padding)
_resizeElement() method : resize the element which hold the widget that have added into vbox
Parameters:
element
- : the element that hold the widget that has been added to vbox
domObj
- : the dom object of widget that has been added to vbox
width
- : width of element and widget
height
- : height of widget
padding
- : padding to be added as an extra height of widget to make it fill the element
_resizeWidgetsHomo
void _resizeWidgetsHomo(wi, hi)
_resizeWidgetsNoHomo
void _resizeWidgetsNoHomo(containerWidth, containerHeight)
getMinHeightComposite
integer getMinHeightComposite()
getMinHeightComposite() composite method : get the min height of vbox.
if it has children then the min height of children,
else the min height of vbox itself.
Returns:
minWidth : the min height to be used when need decrease the height of vbox thus the decreasing can't go smaller then the minHeight
getMinHeightCompositeH
Object getMinHeightCompositeH()
getMinHeightCompositeNH
Object getMinHeightCompositeNH()
getMinWidthComposite
integer getMinWidthComposite()
getMinWidthComposite() composite method : get the min width of vbox.
if it has children then the min width of children,
else the min width of vbox itself.
Returns:
minWidth : the min width to be used when need decrease the width of vbox thus the decreasing can't go smaller then the minWidth
resizeHeightComposite
void resizeHeightComposite(height)
resizeHeightComposite() composite method : decrease the height of vbox.
decrease vbox's height and all the composite children
resizeWidthComposite
void resizeWidthComposite(width)
resizeWidthComposite() composite method : decrease the width of vbox.
decrease vbox's width and all the composite children
Documentation generated by
JSDoc on Thu Jan 21 18:07:55 2010