GestureMultiPressRef
public struct GestureMultiPressRef : GestureMultiPressProtocol, GWeakCapturing
GtkGestureMultiPress is a GtkGesture implementation able to recognize
multiple clicks on a nearby zone, which can be listened for through the
GtkGestureMultiPress::pressed signal. Whenever time or distance between
clicks exceed the GTK+ defaults, GtkGestureMultiPress::stopped is emitted,
and the click counter is reset.
Callers may also restrict the area that is considered valid for a >1
touch/button press through gtk_gesture_multi_press_set_area(), so any
click happening outside that area is considered to be a first click of
its own.
The GestureMultiPressRef type acts as a lightweight Swift reference to an underlying GtkGestureMultiPress instance.
It exposes methods that can operate on this data type through GestureMultiPressProtocol conformance.
Use GestureMultiPressRef only as an unowned reference to an existing GtkGestureMultiPress instance.
-
Untyped pointer to the underlying `GtkGestureMultiPress` instance.For type-safe access, use the generated, typed pointer
gesture_multi_press_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkGestureMultiPress>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkGestureMultiPress>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkGestureMultiPress>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkGestureMultiPress>?) -
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
GestureMultiPressProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : GestureMultiPressProtocol -
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> GestureMultiPressRef where T : GestureMultiPressProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
GestureMultiPressProtocol.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
GestureMultiPressProtocol.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
GestureMultiPressProtocol.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
GestureMultiPressProtocol.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
GestureMultiPressProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Returns a newly created `GtkGesture` that recognizes single and multiplepresses.
Declaration
Swift
@inlinable init<WidgetT>(widget: WidgetT) where WidgetT : WidgetProtocol
View on GitHub
Install in Dash
GestureMultiPressRef Structure Reference