Picture object

The Picture widget displays an image and handles user interactions

Event Description
Picture:onClick() Event fired when the user clicks on the Picture
Picture:onContext() Event fired when the user right-click on the Picture
Picture:onCreate() Event fired when Picture has just been created
Picture:onDoubleClick() Event fired when the user doubleclicks on the Picture
Picture:onDrop() Event fired when the Picture received a drag and drop content
Picture:onHide() Event fired when the Picture is hidden
Picture:onHover() Event fired when the user moves the mouse over the Picture
Picture:onLeave() Event fired when the mouse cursor leaves the Picture
Picture:onMouseDown() Event fired when the user presses a mouse button over the Picture
Picture:onMouseUp() Event fired when the user releases a mouse button over the Picture
Picture:onShow() Event fired when the Picture is shown
Property Description Access Type
Picture.align Align the Picture relative to its parent readwrite boolean
Picture.allowdrop Controls whether the Picture is a drag and drop target readwrite boolean
Picture.cursor Get/set the image of the mouse cursor as it hovers over the Picture readwrite string
Picture.enabled Controls whether the Picture responds to mouse and other events readwrite boolean
Picture.height Get/set the Picture's height readwrite number
Picture.parent Get the Picture's parent widget readonly
Picture.tooltip Get/set the Picture tooltip text readwrite string
Picture.visible Controls whether the Picture appears onscreen readwrite boolean
Picture.width Get/set the Picture's width readwrite number
Picture.x Get/set the Picture horizontal position readwrite number
Picture.y Get/set the Picture vertical position readwrite number
Methods Description Return value
Picture:center() Centers the Picture on the parent widget -
Picture:constructor() Picture object constructor
Picture:hide() Hides the Picture -
Picture:load() Load the Picture image from disk boolean
Picture:resize() Resize the Picture -
Picture:save() Save the Picture image to disk boolean
Picture:show() Shows the Picture -
Picture:toback() Puts the widget to the back -
Picture:tofront() Brings the widget in front -