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
GdkEventProperty
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GdkEventProperty
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventProperty
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventProperty>! { get }
-
Required Initialiser for types conforming to
EventPropertyProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
type
Extension methodthe type of the event (
GDK_PROPERTY_NOTIFY
).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 }
-
atom
Extension methodthe property that was changed.
Declaration
Swift
@inlinable var atom: GdkAtom! { get set }
-
time
Extension methodthe time of the event in milliseconds.
Declaration
Swift
@inlinable var time: guint32 { get set }
-
state
Extension methodwhether the property was changed (
GDK_PROPERTY_NEW_VALUE
) or deleted (GDK_PROPERTY_DELETE
).Declaration
Swift
@inlinable var state: PropertyState { get set }