EventPropertyProtocol
public protocol EventPropertyProtocol
The EventPropertyProtocol protocol exposes the methods and properties of an underlying GdkEventProperty 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 EventProperty.
Alternatively, use EventPropertyRef as a lighweight, unowned reference if you already have an instance you just want to use.
Describes a property change on a window.
-
Untyped pointer to the underlying
GdkEventPropertyinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GdkEventPropertyinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventPropertyinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventProperty>! { get } -
Required Initialiser for types conforming to
EventPropertyProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
typeExtension methodthe type of the event (
GDK_PROPERTY_NOTIFY).Declaration
Swift
@inlinable var type: GdkEventType { get set } -
windowExtension methodthe window which received the event.
Declaration
Swift
@inlinable var window: WindowRef! { get set } -
sendEventExtension methodtrueif the event was sent explicitly.Declaration
Swift
@inlinable var sendEvent: gint8 { get set } -
atomExtension methodthe property that was changed.
Declaration
Swift
@inlinable var atom: GdkAtom! { get set } -
timeExtension methodthe time of the event in milliseconds.
Declaration
Swift
@inlinable var time: guint32 { get set } -
stateExtension methodwhether the property was changed (
GDK_PROPERTY_NEW_VALUE) or deleted (GDK_PROPERTY_DELETE).Declaration
Swift
@inlinable var state: PropertyState { get set }
View on GitHub
Install in Dash
EventPropertyProtocol Protocol Reference