CrossingEventProtocol
public protocol CrossingEventProtocol : EventProtocol
The CrossingEventProtocol
protocol exposes the methods and properties of an underlying GdkCrossingEvent
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 CrossingEvent
.
Alternatively, use CrossingEventRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
An event caused by a pointing device moving between surfaces.
-
Untyped pointer to the underlying
GdkCrossingEvent
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
crossing_event_ptr
Default implementationTyped pointer to the underlying
GdkCrossingEvent
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkCrossingEvent
instance.Declaration
Swift
var crossing_event_ptr: UnsafeMutablePointer<GdkCrossingEvent>! { get }
-
Required Initialiser for types conforming to
CrossingEventProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
getDetail()
Extension methodExtracts the notify detail from a crossing event.
Declaration
Swift
@inlinable func getDetail() -> GdkNotifyType
-
getFocus()
Extension methodChecks if the
event
surface is the focus surface.Declaration
Swift
@inlinable func getFocus() -> Bool
-
getMode()
Extension methodExtracts the crossing mode from a crossing event.
Declaration
Swift
@inlinable func getMode() -> GdkCrossingMode
-
detail
Extension methodExtracts the notify detail from a crossing event.
Declaration
Swift
@inlinable var detail: GdkNotifyType { get }
-
focus
Extension methodChecks if the
event
surface is the focus surface.Declaration
Swift
@inlinable var focus: Bool { get }
-
mode
Extension methodExtracts the crossing mode from a crossing event.
Declaration
Swift
@inlinable var mode: GdkCrossingMode { get }