class SKryptonMouseEvent : SKryptonEvent
An event which indicates that a mouse action occurred.
SKryptonMouseEvent(type: MouseEventType, localPos: Point, button: MouseButton = MouseButton.NoButton, buttons: Set<MouseButton> = setOf(button), modifiers: KeyboardModifiers = KeyboardModifiers.NoModifier)
Main constructor. |
val button: MouseButton
Button that triggered this event. |
|
val buttons: Set<MouseButton>
Buttons involved in this event. |
|
val globalPos: Point
Point object relative to the top-left corner of the screen. |
|
val globalX: Int
x coordinates relative to the top-left corner of the screen. |
|
val globalY: Int
y coordinates relative to the top-left corner of the screen. |
|
val localPos: Point
Point object relative to the top-left corner of the SKryptonWebView. |
|
val screenPos: Point
Same as globalPos. |
|
val source: MouseEventSource
Event source. |
|
val x: Int
x coordinates relative to the top-left corner of the SKryptonWebView. |
|
val y: Int
y coordinates relative to the top-left corner of the SKryptonWebView. |
open val handle: CPointer
Native pointer backing this object. |
open fun close(): Unit
Disposes this event. |