EventGrabBrokenProtocol

public protocol EventGrabBrokenProtocol

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

Generated when a pointer or keyboard grab is broken. On X11, this happens when the grab window becomes unviewable (i.e. it or one of its ancestors is unmapped), or if the same application grabs the pointer or keyboard again. Note that implicit grabs (which are initiated by button presses) can also cause GdkEventGrabBroken events.

  • ptr

    Untyped pointer to the underlying GdkEventGrabBroken instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventGrabBroken instance.

    Default Implementation

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

    Declaration

    Swift

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

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventGrabBroken Record: EventGrabBrokenProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_GRAB_BROKEN)

    Declaration

    Swift

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

    the window which received the event, i.e. the window that previously owned the grab

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

    true if a keyboard grab was broken, false if a pointer grab was broken

    Declaration

    Swift

    @inlinable
    var keyboard: gboolean { get set }
  • implicit Extension method

    true if the broken grab was implicit

    Declaration

    Swift

    @inlinable
    var implicit: gboolean { get set }
  • grabWindow Extension method

    If this event is caused by another grab in the same application, grab_window contains the new grab window. Otherwise grab_window is nil.

    Declaration

    Swift

    @inlinable
    var grabWindow: WindowRef! { get set }