Class gtk.Container
Extends
gtk.Widget.
Defined in: jsgtk_merge_for_doc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Container is a class to create a container to load a child widget
|
Field Attributes | Field Name and Description |
---|---|
A registered signal name 'added' when a child widget is added
|
|
A registered signal name 'removed' when a child widget is removed
|
Method Attributes | Method Name and Description |
---|---|
add(widget)
A method to add child widget into its body
|
|
A method to get or return border width of the widget
|
|
remove(widget)
A method to remove a child widget given an object of the to-be removed widget
|
|
setBorderWidth(value)
A method to set border width to the widget
|
- Methods borrowed from class gtk.Widget:
- activate, disable, enable, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideLoading, hideTooltip, isHidden, refresh, resetHeightComposite, resetMinHeight, 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
Field Detail
CONTAINER_ADDED
A registered signal name 'added' when a child widget is added
CONTAINER_REMOVED
A registered signal name 'removed' when a child widget is removed
Method Detail
add(widget)
A method to add child widget into its body
- Parameters:
- {Dom} widget
- A child widget from JSGTK to be added
- See:
- gtk.Container#remove
{Integer}
getBorderWidth()
A method to get or return border width of the widget
- Returns:
- {Integer} The border width in pixel value
remove(widget)
A method to remove a child widget given an object of the to-be removed widget
- Parameters:
- {Dom} widget
- The child widget to be remove
- See:
- gtk.Container#add
setBorderWidth(value)
A method to set border width to the widget
- Parameters:
- {Integer} value
- The border width in pixel value to be set