scoop:scoop.window:0.1.0
src/native/input/abi.scoop
Selected production source · src/native/input/abi.scoop
1
package scoop.window3
@CLayout4
internal 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: Double19
)21
@Extern(name = "scoop_window_event_pointer")22
internal fun nativeEventPointer(event: Ptr<Unit>): NativePointerData24
@CLayout25
internal 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: Double36
)38
@Extern(name = "scoop_window_event_gesture")39
internal fun nativeEventGesture(event: Ptr<Unit>): NativeGestureData