Class gtk.Frame
Object
|
+--gtk.Object
|
+--gtk.Widget
|
+--gtk.Container
|
+--gtk.Bin
|
+--gtk.Frame
- class
gtk.Frame
- extends gtk.Bin
Defined in jsgtk_min.js
Constructor Summary |
gtk.Frame(label)
A bin with a decorative frame and optional label
|
Methods inherited from class gtk.Widget |
setBoldTitle, getNode, show, hide, activate, setActivateSignal, getActivateSignal, setSizeRequest, setSize, setWidth, getWidth, setHeight, getHeight, getSizeRequest, sizeRequest, getSize, resetHeightComposite, resetWidthComposite
|
_child
Object _child
_childOffsetHeight
Object _childOffsetHeight
_childOffsetWidth
Object _childOffsetWidth
_label
Object _label
_labelXAlign
Object _labelXAlign
_labelYAlign
Object _labelYAlign
_minHeight
Object _minHeight
_minWidth
Object _minWidth
gtk.Frame
gtk.Frame(label)
A bin with a decorative frame and optional label
Parameters:
A
- string to use as the label text or None if no label is required.
_getSize
void _getSize()
_render
void _render()
_resetMinWidthMinHeight
void _resetMinWidthMinHeight(label)
_resizeChildren
void _resizeChildren(width, height)
_resizeHeight
void _resizeHeight(<integer> height)
_resizeHeight() method : Resize the height of widget's dom object and height
Parameters:
height
- : the new of height of widget
_resizeWidth
void _resizeWidth(width)
_resizeWidth() method : Resize the width of widget's dom object and width
Parameters:
height
- : the new of height of widget
_setLabelXAlign
void _setLabelXAlign()
add
void add(<gtk.widget> widget)
Add the child widget into Frame
Parameters:
widget
- A child widget to be displayed in Frame
getLabel
Object getLabel()
Returns the text in the label widget
Returns:
The text in the label, or None if there is no label widget.
getLabelAlign
Object getLabelAlign()
returns an Array containing the X and Y alignment of the frame's label widget and decoration
Returns:
An Array containing the x and y alignments of the frame's label widget
getLabelWidget
Object getLabelWidget()
Retrieves the label widget for the frame
Returns:
the label widget, or null if there is no label widget
getMinHeightComposite
Object getMinHeightComposite()
getMinWidthComposite
Object getMinWidthComposite()
resize
void resize(width, height)
resizeHeightComposite
void resizeHeightComposite(height)
resizeWidthComposite
void resizeWidthComposite(width)
setBackgroundColor
void setBackgroundColor(color)
setLabel
void setLabel(<String> label)
Sets the text of the label as specified by label. If label is None the current label is removed
Parameters:
label
- A string to be used as the label text
setLabelAlign
void setLabelAlign(<Float> xAlign, <Float> yAlign)
Sets the alignment of the frame's label widget and decoration (defaults are 0.0 and 0.5) as specified by xalign and yalign
Parameters:
xAlign
- The horizontal alignment of the label widget along the top edge of the frame (in the range of 0.0 to 1.0)
yAlign
- The vertical alignment of the decoration with respect to the label widget (in the range 0.0 to 1.0)
setLabelWidget
void setLabelWidget(<gtk.Widget> widget)
set the label widget (usually to something other than a gtk.Label widget) for the frame
Parameters:
widget
- The new label widget
Documentation generated by
JSDoc on Thu Jan 21 18:07:55 2010