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
GdkEventGrabBroken
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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)
-
type
Extension methodthe type of the event (
GDK_GRAB_BROKEN
)Declaration
Swift
@inlinable var type: GdkEventType { get set }
-
window
Extension methodthe window which received the event, i.e. the window that previously owned the grab
Declaration
Swift
@inlinable var window: WindowRef! { get set }
-
sendEvent
Extension methodtrue
if the event was sent explicitly.Declaration
Swift
@inlinable var sendEvent: gint8 { get set }
-
keyboard
Extension methodtrue
if a keyboard grab was broken,false
if a pointer grab was brokenDeclaration
Swift
@inlinable var keyboard: gboolean { get set }
-
implicit
Extension methodtrue
if the broken grab was implicitDeclaration
Swift
@inlinable var implicit: gboolean { get set }
-
grabWindow
Extension methodIf this event is caused by another grab in the same application,
grab_window
contains the new grab window. Otherwisegrab_window
isnil
.Declaration
Swift
@inlinable var grabWindow: WindowRef! { get set }