TouchpadEventProtocol
public protocol TouchpadEventProtocol : EventProtocol
The TouchpadEventProtocol
protocol exposes the methods and properties of an underlying GdkTouchpadEvent
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see TouchpadEvent
.
Alternatively, use TouchpadEventRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
An event related to a gesture on a touchpad device.
Unlike touchscreens, where the windowing system sends basic sequences of begin, update, end events, and leaves gesture recognition to the clients, touchpad gestures are typically processed by the system, resulting in these events.
-
Untyped pointer to the underlying
GdkTouchpadEvent
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
touchpad_event_ptr
Default implementationTyped pointer to the underlying
GdkTouchpadEvent
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkTouchpadEvent
instance.Declaration
Swift
var touchpad_event_ptr: UnsafeMutablePointer<GdkTouchpadEvent>! { get }
-
Required Initialiser for types conforming to
TouchpadEventProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
getDeltas(dx:
Extension methoddy: ) Extracts delta information from a touchpad event.
Declaration
Swift
@inlinable func getDeltas(dx: UnsafeMutablePointer<CDouble>!, dy: UnsafeMutablePointer<CDouble>!)
-
getGesturePhase()
Extension methodExtracts the touchpad gesture phase from a touchpad event.
Declaration
Swift
@inlinable func getGesturePhase() -> GdkTouchpadGesturePhase
-
getNFingers()
Extension methodExtracts the number of fingers from a touchpad event.
Declaration
Swift
@inlinable func getNFingers() -> Int
-
getPinchAngleDelta()
Extension methodExtracts the angle delta from a touchpad pinch event.
Declaration
Swift
@inlinable func getPinchAngleDelta() -> CDouble
-
getPinchScale()
Extension methodExtracts the scale from a touchpad pinch event.
Declaration
Swift
@inlinable func getPinchScale() -> CDouble
-
gesturePhase
Extension methodExtracts the touchpad gesture phase from a touchpad event.
Declaration
Swift
@inlinable var gesturePhase: GdkTouchpadGesturePhase { get }
-
nFingers
Extension methodExtracts the number of fingers from a touchpad event.
Declaration
Swift
@inlinable var nFingers: Int { get }
-
pinchAngleDelta
Extension methodExtracts the angle delta from a touchpad pinch event.
Declaration
Swift
@inlinable var pinchAngleDelta: CDouble { get }
-
pinchScale
Extension methodExtracts the scale from a touchpad pinch event.
Declaration
Swift
@inlinable var pinchScale: CDouble { get }