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):
Creates a pointer event payload.
| Parameter | Description |
|---|---|
source | Widget under the pointer. |
x | Window-client x coordinate. |
y | Window-client y coordinate. |
button | Button index, or 0 when not applicable. |
clickCount | Number of clicks represented by the event. |
event = MouseEvent(widget, 10, 20, 1)