Interface ClickableObject
access this type via: ui.ClickableObject (provides, requires or uses)
A graphical entity that can be clicked on (e.g. with a mouse) triggering click events to any registered listeners.
Transfer fields
bool disabled
Events
click()
contextMenuOff()
requestFocus()
Functions
void setDisabled(bool d)
void click(int x, int y, int button)
void clickMulti(int x, int y, int button, int clicks)
void setFocus()
void loseFocus()
Events
click This application-level event is fired when a user clicks on this object.
clickMulti This application-level event is fired when a user clicks on this object.
contextMenuOn This windowing event is intended for the windowing system only, and is fired when the object requests a context menu to be displayed.
contextMenuOff This windowing event is intended for the windowing system only, and is fired when the object requests a context menu to be hidden.
requestFocus This windowing event is intended for the windowing system only, and is fired when the object requests focus.
void setDisabled(bool d)
Set whether this interact-able graphics entity is disabled (graphics entities are enabled by default).
Get the bounding rectangle for mouse click hit detection by the windowing system.
void click(int x, int y, int button)
This function is called when the object receives a mouse click from the windowing system.
void clickMulti(int x, int y, int button, int clicks)
This function is called when the object receives a mouse click from the windowing system.
This function is called by the windowing system when a context menu item is clicked on.
void setFocus()
This function can be called by an application to set this object as the one with focus.
This function is called by the windowing system when the object is being given focus. The function can return an array of hotkeys that will be tracked by the windowing system.
void loseFocus()
This function is called by the windowing system when the object is no longer given focus.
This function is called by the windowing system when a hot key returned by recvFocus() is pressed.