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

SKryptonMouseEvent

class SKryptonMouseEvent : SKryptonEvent

An event which indicates that a mouse action occurred.

Constructors

<init>

SKryptonMouseEvent(type: MouseEventType, localPos: Point, button: MouseButton = MouseButton.NoButton, buttons: Set<MouseButton> = setOf(button), modifiers: KeyboardModifiers = KeyboardModifiers.NoModifier)

Main constructor.

Properties

button

val button: MouseButton

Button that triggered this event.

buttons

val buttons: Set<MouseButton>

Buttons involved in this event.

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.

localPos

val localPos: Point

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

screenPos

val screenPos: Point

Same as globalPos.

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.