Scoop API

scoop:scoop.window:0.1.0

src/native/input/abi.scoop

Selected production source · src/native/input/abi.scoop

1package scoop.window
3@CLayout
4internal struct NativePointerData(
5 val kind: Int,
6 val button: Int,
7 val clickCount: Int,
8 val phase: Int,
9 val momentumPhase: Int,
10 val cancelReason: Int,
11 val modifiers: Long,
12 val x: Double,
13 val y: Double,
14 val physicalX: Double,
15 val physicalY: Double,
16 val scale: Double,
17 val deltaX: Double,
18 val deltaY: Double
21@Extern(name = "scoop_window_event_pointer")
22internal fun nativeEventPointer(event: Ptr<Unit>): NativePointerData
24@CLayout
25internal struct NativeGestureData(
26 val kind: Int,
27 val phase: Int,
28 val modifiers: Long,
29 val x: Double,
30 val y: Double,
31 val physicalX: Double,
32 val physicalY: Double,
33 val scale: Double,
34 val deltaX: Double,
35 val deltaY: Double
38@Extern(name = "scoop_window_event_gesture")
39internal fun nativeEventGesture(event: Ptr<Unit>): NativeGestureData