EventTouchpadSwipeProtocol
public protocol EventTouchpadSwipeProtocol
The EventTouchpadSwipeProtocol protocol exposes the methods and properties of an underlying GdkEventTouchpadSwipe 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 EventTouchpadSwipe.
Alternatively, use EventTouchpadSwipeRef as a lighweight, unowned reference if you already have an instance you just want to use.
Generated during touchpad swipe gestures.
-
Untyped pointer to the underlying
GdkEventTouchpadSwipeinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GdkEventTouchpadSwipeinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventTouchpadSwipeinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventTouchpadSwipe>! { get } -
Required Initialiser for types conforming to
EventTouchpadSwipeProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
typeExtension methodthe type of the event (
GDK_TOUCHPAD_SWIPE)Declaration
Swift
@inlinable var type: GdkEventType { get set } -
windowExtension methodthe window which received the event
Declaration
Swift
@inlinable var window: WindowRef! { get set } -
sendEventExtension methodtrueif the event was sent explicitlyDeclaration
Swift
@inlinable var sendEvent: gint8 { get set } -
phaseExtension methodthe current phase of the gesture
Declaration
Swift
@inlinable var phase: gint8 { get set } -
nFingersExtension methodThe number of fingers triggering the swipe
Declaration
Swift
@inlinable var nFingers: gint8 { get set } -
timeExtension methodthe time of the event in milliseconds
Declaration
Swift
@inlinable var time: guint32 { get set } -
xExtension methodThe X coordinate of the pointer
Declaration
Swift
@inlinable var x: gdouble { get set } -
yExtension methodThe Y coordinate of the pointer
Declaration
Swift
@inlinable var y: gdouble { get set } -
dxExtension methodMovement delta in the X axis of the swipe focal point
Declaration
Swift
@inlinable var dx: gdouble { get set } -
dyExtension methodMovement delta in the Y axis of the swipe focal point
Declaration
Swift
@inlinable var dy: gdouble { get set } -
xRootExtension methodThe X coordinate of the pointer, relative to the root of the screen.
Declaration
Swift
@inlinable var xRoot: gdouble { get set } -
yRootExtension methodThe Y coordinate of the pointer, relative to the root of the screen.
Declaration
Swift
@inlinable var yRoot: gdouble { get set } -
stateExtension methoda bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See
GdkModifierType.Declaration
Swift
@inlinable var state: ModifierType { get set }
View on GitHub
Install in Dash
EventTouchpadSwipeProtocol Protocol Reference