public class MouseEvent extends GuiEvent:
Pointer event payload emitted by GUI widgets.
Coordinates are window-client coordinates, matching widget bounds and custom painting coordinates.
canvas.mouseMoved += lambda(e: MouseEvent): print(e.x)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | altalt as Boolean |
Whether Alt was held during the pointer event. |
| public readonly property | buttonbutton as Int |
Pointer button index, or 0 when no button is associated with the event. |
| public readonly property | clickCountclickCount as Int |
Number of clicks represented by the event. |
| public readonly property | controlcontrol as Boolean |
Whether Control was held during the pointer event. |
| public readonly property | shiftshift as Boolean |
Whether Shift was held during the pointer event. |
| public readonly property | xx as Int |
Pointer x coordinate in window-client coordinates. |
| public readonl | yy property y as Int |
Pointer y coordinate in window-client coordinates. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | MouseEvent | Creates a pointer event payload. |