MouseWheelEvent
classin packageklyn.gui.event
public class MouseWheelEvent extends GuiEvent:
└ MouseWheelEvent

Mouse wheel event payload emitted by GUI widgets.

Deltas use the native wheel convention: a positive vertical delta means scrolling up, a negative vertical delta means scrolling down. Backends normalize one wheel notch to roughly 120, matching the Win32 convention.

widget.mouseWheel += lambda(e: MouseWheelEvent): print(e.deltaY)
Properties
Modifier and Type Member Description
public readonly property alt
alt as Boolean
Whether Alt was held during the wheel event.
public readonly property control
control as Boolean
Whether Control was held during the wheel event.
public readonly property deltaX
deltaX as Int
Horizontal wheel delta.
public readonly property deltaY
deltaY as Int
Vertical wheel delta.
public readonly property shift
shift as Boolean
Whether Shift was held during the wheel event.
public readonly property x
x as Int
Pointer x coordinate in window-client coordinates.
public readonl y
y property y as Int
Pointer y coordinate in window-client coordinates.
Properties inherited from Event: source, timestamp
Constructors
Modifier and Type Member Description
public MouseWheelEvent
MouseWheelEvent(source as Object, x as Int, y as Int, deltaX as Int = 0, deltaY as Int = 0, alt as Boolean = false, control as Boolean = false, shift as Boolean = false):
Creates a mouse wheel event payload.