Class gtk.Frame
Extends
gtk.Widget.
Defined in: jsgtk_merge_for_doc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
gtk.Frame(label)
Frame is a class to create a frame box to display text or image
|
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
|
|
getLabel()
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
|
|
resizeHeightComposite(height)
A method to resize the height of frame
|
|
resizeWidthComposite(width)
A method to resize the width of frame
|
|
setAttribute(The)
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
|
|
setLabelWidget(widget)
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