EventPadAxisProtocol

public protocol EventPadAxisProtocol

The EventPadAxisProtocol protocol exposes the methods and properties of an underlying GdkEventPadAxis 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 EventPadAxis. Alternatively, use EventPadAxisRef as a lighweight, unowned reference if you already have an instance you just want to use.

Generated during GDK_SOURCE_TABLET_PAD interaction with tactile sensors.

  • ptr

    Untyped pointer to the underlying GdkEventPadAxis instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • _ptr Default implementation

    Typed pointer to the underlying GdkEventPadAxis instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GdkEventPadAxis instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GdkEventPadAxis>! { get }
  • Required Initialiser for types conforming to EventPadAxisProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventPadAxis Record: EventPadAxisProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_PAD_RING or GDK_PAD_STRIP).

    Declaration

    Swift

    @inlinable
    var type: GdkEventType { get set }
  • window Extension method

    the window which received the event.

    Declaration

    Swift

    @inlinable
    var window: WindowRef! { get set }
  • sendEvent Extension method

    true if the event was sent explicitly.

    Declaration

    Swift

    @inlinable
    var sendEvent: gint8 { get set }
  • time Extension method

    the time of the event in milliseconds.

    Declaration

    Swift

    @inlinable
    var time: guint32 { get set }
  • group Extension method

    the pad group the ring/strip belongs to. A GDK_SOURCE_TABLET_PAD device may have one or more groups containing a set of buttons/rings/strips each.

    Declaration

    Swift

    @inlinable
    var group: guint { get set }
  • index Extension method

    number of strip/ring that was interacted. This number is 0-indexed.

    Declaration

    Swift

    @inlinable
    var index: guint { get set }
  • mode Extension method

    The current mode of group. Different groups in a GDK_SOURCE_TABLET_PAD device may have different current modes.

    Declaration

    Swift

    @inlinable
    var mode: guint { get set }
  • value Extension method

    The current value for the given axis.

    Declaration

    Swift

    @inlinable
    var value: gdouble { get set }