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
GdkTouchpadEventinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
touchpad_event_ptrDefault implementationTyped pointer to the underlying
GdkTouchpadEventinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkTouchpadEventinstance.Declaration
Swift
var touchpad_event_ptr: UnsafeMutablePointer<GdkTouchpadEvent>! { get } -
Required Initialiser for types conforming to
TouchpadEventProtocolDeclaration
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 -
gesturePhaseExtension methodExtracts the touchpad gesture phase from a touchpad event.
Declaration
Swift
@inlinable var gesturePhase: GdkTouchpadGesturePhase { get } -
nFingersExtension methodExtracts the number of fingers from a touchpad event.
Declaration
Swift
@inlinable var nFingers: Int { get } -
pinchAngleDeltaExtension methodExtracts the angle delta from a touchpad pinch event.
Declaration
Swift
@inlinable var pinchAngleDelta: CDouble { get } -
pinchScaleExtension methodExtracts the scale from a touchpad pinch event.
Declaration
Swift
@inlinable var pinchScale: CDouble { get }
View on GitHub
Install in Dash
TouchpadEventProtocol Protocol Reference