Class gtk.Image
Extends
gtk.Widget.
Defined in: jsgtk_merge_for_doc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
gtk.Image(imagePath, imageWidth, imageHeight)
|
Field Attributes | Field Name and Description |
---|---|
'clicked' signal
|
Method Attributes | Method Name and Description |
---|---|
disable()
Assign property disabled to image
|
|
enable()
Assign property enabled to image
|
|
when mouseover the image, the frame will be visible
|
|
reset to the defualt size
|
|
resetSize(width, height)
reset the size of image
|
|
setAttribute(array)
Set attributes
|
|
setFromFile(filename, imageWidth, imageHeight)
Set Image src from given file
|
- Methods borrowed from class gtk.Widget:
- activate, 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.Image(imagePath, imageWidth, imageHeight)
- Parameters:
- imagePath
- imageWidth
- imageHeight
Field Detail
IMAGE_CLICKED
'clicked' signal
Method Detail
disable()
Assign property disabled to image
enable()
Assign property enabled to image
enableDelete()
when mouseover the image, the frame will be visible
resetDefaultSize()
reset to the defualt size
resetSize(width, height)
reset the size of image
- Parameters:
- {number} width
- {number} height
setAttribute(array)
Set attributes
- Parameters:
- {array} array
- of attributes object
setFromFile(filename, imageWidth, imageHeight)
Set Image src from given file
- Parameters:
- {String} filename
- which is assigned when we call the method.
- imageWidth
- imageHeight