GesturePanRef
public struct GesturePanRef : GesturePanProtocol, GWeakCapturing
GtkGesturePan is a GtkGesture implementation able to recognize
pan gestures, those are drags that are locked to happen along one
axis. The axis that a GtkGesturePan handles is defined at
construct time, and can be changed through
gtk_gesture_pan_set_orientation().
When the gesture starts to be recognized, GtkGesturePan will
attempt to determine as early as possible whether the sequence
is moving in the expected direction, and denying the sequence if
this does not happen.
Once a panning gesture along the expected axis is recognized,
the GtkGesturePan::pan signal will be emitted as input events
are received, containing the offset in the given axis.
The GesturePanRef type acts as a lightweight Swift reference to an underlying GtkGesturePan instance.
It exposes methods that can operate on this data type through GesturePanProtocol conformance.
Use GesturePanRef only as an unowned reference to an existing GtkGesturePan instance.
-
Untyped pointer to the underlying `GtkGesturePan` instance.For type-safe access, use the generated, typed pointer
gesture_pan_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkGesturePan>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkGesturePan>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkGesturePan>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkGesturePan>?) -
Conditional initialiser from an optional
gpointerDeclaration
Swift
@inlinable init!(gpointer g: gpointer?) -
Conditional initialiser from an optional, non-mutable
gconstpointerDeclaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?) -
Reference intialiser for a related type that implements
GesturePanProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : GesturePanProtocol -
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> GesturePanRef where T : GesturePanProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
GesturePanProtocol.Declaration
Swift
@inlinable init<T>(cPointer: UnsafeMutablePointer<T>) -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
GesturePanProtocol.Declaration
Swift
@inlinable init<T>(constPointer: UnsafePointer<T>) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
GesturePanProtocol.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
GesturePanProtocol.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
GesturePanProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Returns a newly created
GtkGesturethat recognizes pan gestures.Declaration
Swift
@inlinable init<WidgetT>(widget: WidgetT, orientation: GtkOrientation) where WidgetT : WidgetProtocol
View on GitHub
Install in Dash
GesturePanRef Structure Reference