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.
-
Untyped pointer to the underlying
GdkEventGrabBrokeninstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GdkEventGrabBrokeninstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventGrabBrokeninstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventGrabBroken>! { get } -
Required Initialiser for types conforming to
EventGrabBrokenProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
typeExtension methodthe type of the event (
GDK_GRAB_BROKEN)Declaration
Swift
@inlinable var type: GdkEventType { get set } -
windowExtension methodthe window which received the event, i.e. the window that previously owned the grab
Declaration
Swift
@inlinable var window: WindowRef! { get set } -
sendEventExtension methodtrueif the event was sent explicitly.Declaration
Swift
@inlinable var sendEvent: gint8 { get set } -
keyboardExtension methodtrueif a keyboard grab was broken,falseif a pointer grab was brokenDeclaration
Swift
@inlinable var keyboard: gboolean { get set } -
implicitExtension methodtrueif the broken grab was implicitDeclaration
Swift
@inlinable var implicit: gboolean { get set } -
grabWindowExtension methodIf this event is caused by another grab in the same application,
grab_windowcontains the new grab window. Otherwisegrab_windowisnil.Declaration
Swift
@inlinable var grabWindow: WindowRef! { get set }
View on GitHub
Install in Dash
EventGrabBrokenProtocol Protocol Reference