Class Index | File Index

Classes


Class gtk.VBox


Extends gtk.Widget.

Defined in: jsgtk_merge_for_doc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
gtk.VBox(spacing, padding)
A class to create vertical box or container
Method Summary
Method Attributes Method Name and Description
 
Method to add a separator between children widget inside HBox
 
appendChild(widget, packOption)
Append child gtk.Widget to HBox
 
Method to clone the child widget
 
Assign property to disabled
 
Assign property to enabled
 
Return all children widget
 
Return number of children inside HBox
 
Return the first child
 
Return the last child
 
getNextSibling(childWidget)
Return a next child widget given current widget as reference
 
getPreviousSibling(childWidget)
Return a previous child widget given a current widget as reference
 
insertBefore(newWidget, reference, packOption)
Insert a child widget infront of give child reference
 
Make sure, the HBox size will not decrease when some children have been remove
 
Method to refresh HBox if gtk.HBox.lockSize() has been called, then the size of HBox will not decrease when some child have been remove else vice versa
 
removeChild(widget)
Remove a child widget from the HBox
 
Remove a child widget given an index
 
reorderChild(childWidget, position)
Re-order or relocatte the child widget
 
replaceChild(newWidget, reference, packOption)
Replace an existing child widget with new child widget
 
HBox size will decrease when some children have been remove
Methods borrowed from class gtk.Widget:
activate, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideLoading, hideTooltip, isHidden, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, resizeHeightComposite, resizeWidthComposite, setActivateSignal, setBoldTitle, setEnable, setHeight, setParent, setSize, setSizeRequest, setTag, setTooltip, setWidth, show, showLoading, showTooltip, sizeRequest
Methods borrowed from class gobject.GObject:
connect, disconnect, emit
Class Detail
gtk.VBox(spacing, padding)
A class to create vertical box or container
Parameters:
{Integer} spacing
{Integer} padding
Method Detail
addSeparator()
Method to add a separator between children widget inside HBox

appendChild(widget, packOption)
Append child gtk.Widget to HBox
Parameters:
{Object} widget
{Object} packOption
{fill: true || false, expand: true || false, padding: any integer, resizableHeight: true || false}

{Object} cloneWidget()
Method to clone the child widget
Returns:
{Object} widget new cloned widget

disable()
Assign property to disabled

enable()
Assign property to enabled

{array} getChildren()
Return all children widget
Returns:
{array} children inside the VBox

{integer} getChildrenLength()
Return number of children inside HBox
Returns:
{integer} length

{gtk.Widget} getFirstChild()
Return the first child
Returns:
{gtk.Widget} widget first child inside the HBox

{gtk.Widget} getLastChild()
Return the last child
Returns:
{gtk.Widget} widget the last child inside the HBox

{gtk.Widget} getNextSibling(childWidget)
Return a next child widget given current widget as reference
Parameters:
childWidget
Returns:
{gtk.Widget} widget the child to be returned

{Object} getPreviousSibling(childWidget)
Return a previous child widget given a current widget as reference
Parameters:
childWidget
Returns:
{Object} widget the child to be returned

insertBefore(newWidget, reference, packOption)
Insert a child widget infront of give child reference
Parameters:
{gtk.Widget} newWidget
{gtk.Widget} reference
widget
{Object} packOption
{fill: true || false, expand: true || false, padding: any integer, resizableHeight: true || false}

lockSize()
Make sure, the HBox size will not decrease when some children have been remove

refresh()
Method to refresh HBox if gtk.HBox.lockSize() has been called, then the size of HBox will not decrease when some child have been remove else vice versa

removeChild(widget)
Remove a child widget from the HBox
Parameters:
{Object} widget

removeChildByIndex(index)
Remove a child widget given an index
Parameters:
{Integer} index
value of the child to be removed

reorderChild(childWidget, position)
Re-order or relocatte the child widget
Parameters:
childWidget
position

replaceChild(newWidget, reference, packOption)
Replace an existing child widget with new child widget
Parameters:
{gtk.Widget} newWidget
{gtk.Widget} reference
widget
{Object} packOption
{fill: true || false, expand: true || false, padding: any integer, resizableHeight: true || false}

unlockSize()
HBox size will decrease when some children have been remove

Documentation generated by JsDoc Toolkit 2.1.0 on Tue Jul 06 2010 11:13:56 GMT+0700 (ICT)