EventScrollProtocol

public protocol EventScrollProtocol

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

Generated from button presses for the buttons 4 to 7. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.

Some GDK backends can also generate “smooth” scroll events, which can be recognized by the GDK_SCROLL_SMOOTH scroll direction. For these, the scroll deltas can be obtained with gdk_event_get_scroll_deltas().

  • ptr

    Untyped pointer to the underlying GdkEventScroll instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventScroll instance.

    Default Implementation

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

    Declaration

    Swift

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

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventScroll Record: EventScrollProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_SCROLL).

    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 }
  • x Extension method

    the x coordinate of the pointer relative to the window.

    Declaration

    Swift

    @inlinable
    var x: gdouble { get set }
  • y Extension method

    the y coordinate of the pointer relative to the window.

    Declaration

    Swift

    @inlinable
    var y: gdouble { get set }
  • state Extension method

    a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType.

    Declaration

    Swift

    @inlinable
    var state: ModifierType { get set }
  • direction Extension method

    the direction to scroll to (one of GDK_SCROLL_UP, GDK_SCROLL_DOWN, GDK_SCROLL_LEFT, GDK_SCROLL_RIGHT or GDK_SCROLL_SMOOTH).

    Declaration

    Swift

    @inlinable
    var direction: GdkScrollDirection { get set }
  • device Extension method

    the master device that the event originated from. Use gdk_event_get_source_device() to get the slave device.

    Declaration

    Swift

    @inlinable
    var device: DeviceRef! { get set }
  • xRoot Extension method

    the x coordinate of the pointer relative to the root of the screen.

    Declaration

    Swift

    @inlinable
    var xRoot: gdouble { get set }
  • yRoot Extension method

    the y coordinate of the pointer relative to the root of the screen.

    Declaration

    Swift

    @inlinable
    var yRoot: gdouble { get set }
  • deltaX Extension method

    the x coordinate of the scroll delta

    Declaration

    Swift

    @inlinable
    var deltaX: gdouble { get set }
  • deltaY Extension method

    the y coordinate of the scroll delta

    Declaration

    Swift

    @inlinable
    var deltaY: gdouble { get set }
  • isStop Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var isStop: guint { get set }