Class Index | File Index

Classes


Class gtk.Label


Extends gtk.Widget.

Defined in: jsgtk_merge_for_doc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
gtk.Label(text)
Field Summary
Field Attributes Field Name and Description
 
'clicked' signal
 
'mouseout' signal
 
'mouseover' signal
Method Summary
Method Attributes Method Name and Description
 
display border left yellow when mouse hovered label text
 
Get attributes
 
Get label's text selectable
 
Get text from label
 
setAttribute(array)
Set attributes(style) to label
 
setJustify(justify)
Set the justify of Label
 
setSelectable(isSelectable)
Set label's text selectable
 
setStyle(properties)
Set the label style
 
setTabindex(index)
set tab index
 
setText(text)
Set text to label
 
Set the width of Label
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, 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.Label(text)
Parameters:
{String} text
The text to be displayed in label
Field Detail
LABEL_CLICKED
'clicked' signal

LABEL_MOUSEOUT
'mouseout' signal

LABEL_MOUSEOVER
'mouseover' signal
Method Detail
enableHoverStyle()
display border left yellow when mouse hovered label text

{Array} getAttribute()
Get attributes
Returns:
{Array} array of attributes object

{boolean} getSelectable()
Get label's text selectable
Returns:
{boolean}

{String} getText()
Get text from label
Returns:
{String} text

setAttribute(array)
Set attributes(style) to label
Parameters:
{array} array
of attributes object

setJustify(justify)
Set the justify of Label
Parameters:
{String} justify
The justify type to be set to label

setSelectable(isSelectable)
Set label's text selectable
Parameters:
{boolean} isSelectable

setStyle(properties)
Set the label style
Parameters:
{Object} properties
The properties to be set to Label style

setTabindex(index)
set tab index
Parameters:
index

setText(text)
Set text to label
Parameters:
{String} text

setWidthChars(width)
Set the width of Label
Parameters:
{Interger} width
The length of width to be set

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