skrypton-api / com.waicool20.skrypton.jni.objects / SKryptonWheelEvent

SKryptonWheelEvent

class SKryptonWheelEvent : SKryptonEvent

An event which indicates a mouse wheel event occurred.

Constructors

<init>

SKryptonWheelEvent(delta: Int, localPos: Point, buttons: List<MouseButton> = listOf(MouseButton.NoButton), modifiers: KeyboardModifiers = KeyboardModifiers.NoModifier, orientation: Orientation = Orientation.Vertical)

Main constructor

Properties

buttons

val buttons: Set<MouseButton>

Buttons involved in this event.

delta

val delta: Int

Amount of steps the mouse wheel was turned. Negative number means wheel UP.

globalPos

val globalPos: Point

Point object relative to the top-left corner of the screen.

globalX

val globalX: Int

x coordinates relative to the top-left corner of the screen.

globalY

val globalY: Int

y coordinates relative to the top-left corner of the screen.

isInverted

val isInverted: Boolean

Whether or not the value of delta was inverted.

localPos

val localPos: Point

Point object relative to the top-left corner of the SKryptonWebView.

phase

val phase: ScrollPhase

Scrolling phase of this wheel event

source

val source: MouseEventSource

Event source.

x

val x: Int

x coordinates relative to the top-left corner of the SKryptonWebView.

y

val y: Int

y coordinates relative to the top-left corner of the SKryptonWebView.

Inherited Properties

handle

open val handle: CPointer

Native pointer backing this object.

Inherited Functions

close

open fun close(): Unit

Disposes this event.