Class Index | File Index

Classes


Class gtk.Button


Extends gtk.Widget.

Defined in: jsgtk_merge_for_doc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
gtk.Button(Label)
Button is a class to create a button
Field Summary
Field Attributes Field Name and Description
 
'clicked' signal
 
'enterkeypressed' signal
 
'mouseout' signal
 
'mouseover' signal
Method Summary
Method Attributes Method Name and Description
 
Disable button button no longer function
 
Enable button button functions normally
 
Returns the image widget
 
Returns the text from the label of the button
 
Hide loading Image
 
 
 
setAsImage(imageWidget)
Change the button shape to be image shape
 
setButtonShape(imageObj)
 
setImage(imageWidget)
Set the image to be displayed next to the label
 
setLabel(labeWidget)
Sets label to be displayed in the button
 
setTabindex(index)
Set tab index
 
setTextLabel(strName)
Set text to button
 
show loading Image
Methods borrowed from class gtk.Widget:
activate, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideTooltip, isHidden, refresh, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, setActivateSignal, setBoldTitle, setEnable, setHeight, setParent, setSize, setSizeRequest, setTag, setTooltip, setWidth, show, showTooltip, sizeRequest
Methods borrowed from class gobject.GObject:
connect, disconnect, emit
Class Detail
gtk.Button(Label)
Button is a class to create a button
Parameters:
{String} Label
text to be displayed by in the middle of button
Field Detail
BUTTON_CLICKED
'clicked' signal

BUTTON_ENTERKEYPRESSED
'enterkeypressed' signal

BUTTON_MOUSEOUT
'mouseout' signal

BUTTON_MOUSEOVER
'mouseover' signal
Method Detail
disable()
Disable button button no longer function

enable()
Enable button button functions normally

{gtk.Image} getImage()
Returns the image widget
Returns:
{gtk.Image} imageWidget

{gtk.Label} getLabel()
Returns the text from the label of the button
Returns:
{gtk.Label} labelWidget

hideLoading()
Hide loading Image

resizeHeightComposite(height)
Parameters:
height

resizeWidthComposite(width)
Parameters:
width

setAsImage(imageWidget)
Change the button shape to be image shape
Parameters:
{gtk.Image} imageWidget

setButtonShape(imageObj)
Parameters:
imageObj

setImage(imageWidget)
Set the image to be displayed next to the label
Parameters:
{gtk.Image} imageWidget

setLabel(labeWidget)
Sets label to be displayed in the button
Parameters:
{gtk.Label} labeWidget

setTabindex(index)
Set tab index
Parameters:
{Integer} index

setTextLabel(strName)
Set text to button
Parameters:
{String} strName
name of button

showLoading()
show loading Image

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