EventType

public extension EventType
  • Cast constructor, converting any binary integer to a EventType.

    Declaration

    Swift

    @inlinable
    init!<I>(_ raw: I) where I : BinaryInteger

    Parameters

    raw

    The raw integer value to initialise the enum from

  • a special code to indicate a null event.

    Declaration

    Swift

    static let nothing: GdkEventType
  • the window manager has requested that the toplevel window be hidden or destroyed, usually when the user clicks on a special icon in the title bar.

    Declaration

    Swift

    static let delete: GdkEventType
  • the window has been destroyed.

    Declaration

    Swift

    static let destroy: GdkEventType
  • all or part of the window has become visible and needs to be redrawn.

    Declaration

    Swift

    static let expose: GdkEventType
  • the pointer (usually a mouse) has moved.

    Declaration

    Swift

    static let motionNotify: GdkEventType
  • a mouse button has been pressed.

    Declaration

    Swift

    static let buttonPress: GdkEventType
  • a mouse button has been double-clicked (clicked twice within a short period of time). Note that each click also generates a GDK_BUTTON_PRESS event.

    Declaration

    Swift

    static let _2buttonPress: GdkEventType
  • alias for GDK_2BUTTON_PRESS, added in 3.6.

    Declaration

    Swift

    static let doubleButtonPress: GdkEventType
  • a mouse button has been clicked 3 times in a short period of time. Note that each click also generates a GDK_BUTTON_PRESS event.

    Declaration

    Swift

    static let _3buttonPress: GdkEventType
  • alias for GDK_3BUTTON_PRESS, added in 3.6.

    Declaration

    Swift

    static let tripleButtonPress: GdkEventType
  • a mouse button has been released.

    Declaration

    Swift

    static let buttonRelease: GdkEventType
  • a key has been pressed.

    Declaration

    Swift

    static let keyPress: GdkEventType
  • a key has been released.

    Declaration

    Swift

    static let keyRelease: GdkEventType
  • the pointer has entered the window.

    Declaration

    Swift

    static let enterNotify: GdkEventType
  • the pointer has left the window.

    Declaration

    Swift

    static let leaveNotify: GdkEventType
  • the keyboard focus has entered or left the window.

    Declaration

    Swift

    static let focusChange: GdkEventType
  • the size, position or stacking order of the window has changed. Note that GTK+ discards these events for GDK_WINDOW_CHILD windows.

    Declaration

    Swift

    static let configure: GdkEventType
  • map

    the window has been mapped.

    Declaration

    Swift

    static let map: GdkEventType
  • the window has been unmapped.

    Declaration

    Swift

    static let unmap: GdkEventType
  • a property on the window has been changed or deleted.

    Declaration

    Swift

    static let propertyNotify: GdkEventType
  • the application has lost ownership of a selection.

    Declaration

    Swift

    static let selectionClear: GdkEventType
  • another application has requested a selection.

    Declaration

    Swift

    static let selectionRequest: GdkEventType
  • a selection has been received.

    Declaration

    Swift

    static let selectionNotify: GdkEventType
  • an input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet).

    Declaration

    Swift

    static let proximityIn: GdkEventType
  • an input device has moved out of contact with a sensing surface.

    Declaration

    Swift

    static let proximityOut: GdkEventType
  • the mouse has entered the window while a drag is in progress.

    Declaration

    Swift

    static let dragEnter: GdkEventType
  • the mouse has left the window while a drag is in progress.

    Declaration

    Swift

    static let dragLeave: GdkEventType
  • the mouse has moved in the window while a drag is in progress.

    Declaration

    Swift

    static let dragMotion: GdkEventType
  • the status of the drag operation initiated by the window has changed.

    Declaration

    Swift

    static let dragStatus: GdkEventType
  • a drop operation onto the window has started.

    Declaration

    Swift

    static let dropStart: GdkEventType
  • the drop operation initiated by the window has completed.

    Declaration

    Swift

    static let dropFinished: GdkEventType
  • a message has been received from another application.

    Declaration

    Swift

    static let clientEvent: GdkEventType
  • the window visibility status has changed.

    Declaration

    Swift

    static let visibilityNotify: GdkEventType
  • the scroll wheel was turned

    Declaration

    Swift

    static let scroll: GdkEventType
  • the state of a window has changed. See GdkWindowState for the possible window states

    Declaration

    Swift

    static let windowState: GdkEventType
  • a setting has been modified.

    Declaration

    Swift

    static let setting: GdkEventType
  • the owner of a selection has changed. This event type was added in 2.6

    Declaration

    Swift

    static let ownerChange: GdkEventType
  • a pointer or keyboard grab was broken. This event type was added in 2.8.

    Declaration

    Swift

    static let grabBroken: GdkEventType
  • the content of the window has been changed. This event type was added in 2.14.

    Declaration

    Swift

    static let damage: GdkEventType
  • A new touch event sequence has just started. This event type was added in 3.4.

    Declaration

    Swift

    static let touchBegin: GdkEventType
  • A touch event sequence has been updated. This event type was added in 3.4.

    Declaration

    Swift

    static let touchUpdate: GdkEventType
  • A touch event sequence has finished. This event type was added in 3.4.

    Declaration

    Swift

    static let touchEnd: GdkEventType
  • A touch event sequence has been canceled. This event type was added in 3.4.

    Declaration

    Swift

    static let touchCancel: GdkEventType
  • A touchpad swipe gesture event, the current state is determined by its phase field. This event type was added in 3.18.

    Declaration

    Swift

    static let touchpadSwipe: GdkEventType
  • A touchpad pinch gesture event, the current state is determined by its phase field. This event type was added in 3.18.

    Declaration

    Swift

    static let touchpadPinch: GdkEventType
  • A tablet pad button press event. This event type was added in 3.22.

    Declaration

    Swift

    static let padButtonPress: GdkEventType
  • A tablet pad button release event. This event type was added in 3.22.

    Declaration

    Swift

    static let padButtonRelease: GdkEventType
  • A tablet pad axis event from a “ring”. This event type was added in 3.22.

    Declaration

    Swift

    static let padRing: GdkEventType
  • A tablet pad axis event from a “strip”. This event type was added in 3.22.

    Declaration

    Swift

    static let padStrip: GdkEventType
  • A tablet pad group mode change. This event type was added in 3.22.

    Declaration

    Swift

    static let padGroupMode: GdkEventType
  • marks the end of the GdkEventType enumeration. Added in 2.18

    Declaration

    Swift

    static let eventLast: GdkEventType