FocusEventProtocol
public protocol FocusEventProtocol : EventProtocol
The FocusEventProtocol
protocol exposes the methods and properties of an underlying GdkFocusEvent
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 FocusEvent
.
Alternatively, use FocusEventRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
An event related to a keyboard focus change.
-
Untyped pointer to the underlying
GdkFocusEvent
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
focus_event_ptr
Default implementationTyped pointer to the underlying
GdkFocusEvent
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkFocusEvent
instance.Declaration
Swift
var focus_event_ptr: UnsafeMutablePointer<GdkFocusEvent>! { get }
-
Required Initialiser for types conforming to
FocusEventProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)