Class Index | File Index

Classes


Class gtk.Frame


Extends gtk.Widget.

Defined in: jsgtk_merge_for_doc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
gtk.Frame(label)
Frame is a class to create a frame box to display text or image
Method Summary
Method Attributes Method Name and Description
 
add(widget)
A method to add the child widget into Frame
 
appendChild(widget)
A method to add or append child inside its body
 
A method to return the text in the label widget
 
A method to get or return an array containing the X and Y alignment of the frame's label widget and decoration
 
A method to retrieve the label widget for the frame
 
A method to get the minimum height of frame
 
A method to get the minimum width of frame
 
removeChild(widget)
A method to remove a child from its body
 
A method to resize the height of frame
 
A method to resize the width of frame
 
A method to set and apply style given an object literal of an object
 
setLabel(label)
A method to set the text of the label as specified by label.
 
setLabelAlign(xAlign, yAlign)
A method to set the alignment of the frame's label widget and decoration (defaults are 0.0 and 0.5) as specified by xalign and yalign
 
A method to set the label widget (usually to something other than a gtk.Label widget) for the frame
Methods borrowed from class gtk.Widget:
activate, disable, enable, getActivateSignal, getHeight, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideLoading, hideTooltip, isHidden, refresh, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, 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.Frame(label)
Frame is a class to create a frame box to display text or image
Parameters:
{String} label
The label or text display as title of the frame
Method Detail
add(widget)
A method to add the child widget into Frame
Parameters:
{gtk.widget} widget
A child widget to be displayed in frame

appendChild(widget)
A method to add or append child inside its body
Parameters:
{Dom} widget
The Dom widget to be set

{String} getLabel()
A method to return the text in the label widget
Returns:
{String} The text in the label, or None if there is no label widget.

{Array} getLabelAlign()
A method to get or return an array containing the X and Y alignment of the frame's label widget and decoration
Returns:
{Array} An Array containing the x and y alignments of the frame's label widget

{Dom} getLabelWidget()
A method to retrieve the label widget for the frame
Returns:
{Dom} The label widget, or null if there is no label widget

{Integer} getMinHeightComposite()
A method to get the minimum height of frame
Returns:
{Integer} The minimum height of frame

{Integer} getMinWidthComposite()
A method to get the minimum width of frame
Returns:
{Integer} The minimum width of frame

removeChild(widget)
A method to remove a child from its body
Parameters:
{Dom} widget
The Dom widget to be remove

resizeHeightComposite(height)
A method to resize the height of frame
Parameters:
{Interger} height
The length of width to be resize.

resizeWidthComposite(width)
A method to resize the width of frame
Parameters:
{Interger} width
The length of width to be resize.

setAttribute(The)
A method to set and apply style given an object literal of an object
Parameters:
{Array} The
array of attributes object styles

setLabel(label)
A method to set the text of the label as specified by label. If label is None the current label is removed
Parameters:
{String} label
A string to be used as the label text

setLabelAlign(xAlign, yAlign)
A method to set the alignment of the frame's label widget and decoration (defaults are 0.0 and 0.5) as specified by xalign and yalign
Parameters:
{Double} xAlign
The horizontal alignment of the label widget along the top edge of the frame (in the range of 0.0 to 1.0)
{Double} yAlign
The vertical alignment of the decoration with respect to the label widget (in the range 0.0 to 1.0)

setLabelWidget(widget)
A method to set the label widget (usually to something other than a gtk.Label widget) for the frame
Parameters:
{gtk.Widget} widget
The new label widget

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