EventControllerMotionRef

public struct EventControllerMotionRef : EventControllerMotionProtocol, GWeakCapturing

GtkEventControllerMotion is an event controller tracking the pointer position.

The event controller offers [signalGtk.EventControllerMotion::enter] and [signalGtk.EventControllerMotion::leave] signals, as well as [propertyGtk.EventControllerMotion:is-pointer] and [propertyGtk.EventControllerMotion:contains-pointer] properties which are updated to reflect changes in the pointer position as it moves over the widget.

The EventControllerMotionRef type acts as a lightweight Swift reference to an underlying GtkEventControllerMotion instance. It exposes methods that can operate on this data type through EventControllerMotionProtocol conformance. Use EventControllerMotionRef only as an unowned reference to an existing GtkEventControllerMotion instance.

  • ptr
    Untyped pointer to the underlying `GtkEventControllerMotion` instance.
    

    For type-safe access, use the generated, typed pointer event_controller_motion_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

EventControllerMotion Class