klyn.gui.event.MouseEvent.MouseEvent
constructor
public MouseEvent(source as Object, x as Int, y as Int, button as Int = 0, clickCount as Int = 1, alt as Boolean = false, control as Boolean = false, shift as Boolean = false):
Description

Creates a pointer event payload.

Parameters
ParameterDescription
sourceWidget under the pointer.
xWindow-client x coordinate.
yWindow-client y coordinate.
buttonButton index, or 0 when not applicable.
clickCountNumber of clicks represented by the event.
Example
event = MouseEvent(widget, 10, 20, 1)