EventControllerScrollRef
public struct EventControllerScrollRef : EventControllerScrollProtocol, GWeakCapturingGtkEventControllerScroll is an event controller that handles scroll
events.
It is capable of handling both discrete and continuous scroll
events from mice or touchpads, abstracting them both with the
[signalGtk.EventControllerScroll::scroll] signal. Deltas in
the discrete case are multiples of 1.
In the case of continuous scroll events, GtkEventControllerScroll
encloses all [signalGtk.EventControllerScroll::scroll] emissions
between two [signalGtk.EventControllerScroll::scroll-begin] and
[signalGtk.EventControllerScroll::scroll-end] signals.
The behavior of the event controller can be modified by the flags
given at creation time, or modified at a later point through
methodGtk.EventControllerScroll.set_flags.
The controller can be set up to emit motion for either/both vertical
and horizontal scroll events through GTK_EVENT_CONTROLLER_SCROLL_VERTICAL,
GTK_EVENT_CONTROLLER_SCROLL_HORIZONTAL and GTK_EVENT_CONTROLLER_SCROLL_BOTH_AXES.
If any axis is disabled, the respective [signalGtk.EventControllerScroll::scroll]
delta will be 0. Vertical scroll events will be translated to horizontal
motion for the devices incapable of horizontal scrolling.
The event controller can also be forced to emit discrete events on all
devices through GTK_EVENT_CONTROLLER_SCROLL_DISCRETE. This can be used
to implement discrete actions triggered through scroll events (e.g.
switching across combobox options).
The GTK_EVENT_CONTROLLER_SCROLL_KINETIC flag toggles the emission of the
[signalGtk.EventControllerScroll::decelerate] signal, emitted at the end
of scrolling with two X/Y velocity arguments that are consistent with the
motion that was received.
The EventControllerScrollRef type acts as a lightweight Swift reference to an underlying GtkEventControllerScroll instance.
It exposes methods that can operate on this data type through EventControllerScrollProtocol conformance.
Use EventControllerScrollRef only as an unowned reference to an existing GtkEventControllerScroll instance.
- 
                  
                  Untyped pointer to the underlying `GtkEventControllerScroll` instance.For type-safe access, use the generated, typed pointer event_controller_scroll_ptrproperty instead.DeclarationSwift public let ptr: UnsafeMutableRawPointer!
- 
                  
                  Designated initialiser from the underlying Cdata typeDeclarationSwift @inlinable init(_ p: UnsafeMutablePointer<GtkEventControllerScroll>)
- 
                  
                  Designated initialiser from a constant pointer to the underlying Cdata typeDeclarationSwift @inlinable init(_ p: UnsafePointer<GtkEventControllerScroll>)
- 
                  
                  Conditional initialiser from an optional pointer to the underlying Cdata typeDeclarationSwift @inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkEventControllerScroll>?)
- 
                  
                  Conditional initialiser from an optional, non-mutable pointer to the underlying Cdata typeDeclarationSwift @inlinable init!(_ maybePointer: UnsafePointer<GtkEventControllerScroll>?)
- 
                  
                  Conditional initialiser from an optional gpointerDeclarationSwift @inlinable init!(gpointer g: gpointer?)
- 
                  
                  Conditional initialiser from an optional, non-mutable gconstpointerDeclarationSwift @inlinable init!(gconstpointer g: gconstpointer?)
- 
                  
                  Reference intialiser for a related type that implements EventControllerScrollProtocolDeclarationSwift @inlinable init<T>(_ other: T) where T : EventControllerScrollProtocol
- 
                  
                  This factory is syntactic sugar for setting weak pointers wrapped in GWeak<T>DeclarationSwift @inlinable static func unowned<T>(_ other: T) -> EventControllerScrollRef where T : EventControllerScrollProtocol
- 
                  
                  Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to EventControllerScrollProtocol.DeclarationSwift @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 EventControllerScrollProtocol.DeclarationSwift @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 EventControllerScrollProtocol.DeclarationSwift @inlinable init(mutating raw: UnsafeRawPointer)
- 
                  
                  Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to EventControllerScrollProtocol.DeclarationSwift @inlinable init(raw: UnsafeMutableRawPointer)
- 
                  
                  Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to EventControllerScrollProtocol.DeclarationSwift @inlinable init(opaquePointer: OpaquePointer)
- 
                  
                  Creates a new event controller that will handle scroll events. DeclarationSwift @inlinable init(flags: EventControllerScrollFlags)
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           EventControllerScrollRef Structure Reference
      EventControllerScrollRef Structure Reference