EventOwnerChangeProtocol
public protocol EventOwnerChangeProtocol
The EventOwnerChangeProtocol
protocol exposes the methods and properties of an underlying GdkEventOwnerChange
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 EventOwnerChange
.
Alternatively, use EventOwnerChangeRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
Generated when the owner of a selection changes. On X11, this information is only available if the X server supports the XFIXES extension.
-
Untyped pointer to the underlying
GdkEventOwnerChange
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GdkEventOwnerChange
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventOwnerChange
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventOwnerChange>! { get }
-
Required Initialiser for types conforming to
EventOwnerChangeProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
type
Extension methodthe type of the event (
GDK_OWNER_CHANGE
).Declaration
Swift
@inlinable var type: GdkEventType { get set }
-
window
Extension methodthe window which received the event
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 }
-
owner
Extension methodthe new owner of the selection, or
nil
if there is noneDeclaration
Swift
@inlinable var owner: WindowRef! { get set }
-
reason
Extension methodthe reason for the ownership change as a
GdkOwnerChange
valueDeclaration
Swift
@inlinable var reason: GdkOwnerChange { get set }
-
selection
Extension methodthe atom identifying the selection
Declaration
Swift
@inlinable var selection: GdkAtom! { get set }
-
time
Extension methodthe timestamp of the event
Declaration
Swift
@inlinable var time: guint32 { get set }
-
selectionTime
Extension methodthe time at which the selection ownership was taken over
Declaration
Swift
@inlinable var selectionTime: guint32 { get set }