klyn.gui.events.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

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.

Example

    event = MouseEvent(widget, 10, 20, 1)