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
GdkCrossingEventinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
crossing_event_ptrDefault implementationTyped pointer to the underlying
GdkCrossingEventinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkCrossingEventinstance.Declaration
Swift
var crossing_event_ptr: UnsafeMutablePointer<GdkCrossingEvent>! { get } -
Required Initialiser for types conforming to
CrossingEventProtocolDeclaration
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
eventsurface 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 -
detailExtension methodExtracts the notify detail from a crossing event.
Declaration
Swift
@inlinable var detail: GdkNotifyType { get } -
focusExtension methodChecks if the
eventsurface is the focus surface.Declaration
Swift
@inlinable var focus: Bool { get } -
modeExtension methodExtracts the crossing mode from a crossing event.
Declaration
Swift
@inlinable var mode: GdkCrossingMode { get }
View on GitHub
Install in Dash
CrossingEventProtocol Protocol Reference