EventCrossingProtocol
public protocol EventCrossingProtocol
The EventCrossingProtocol protocol exposes the methods and properties of an underlying GdkEventCrossing 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 EventCrossing.
Alternatively, use EventCrossingRef as a lighweight, unowned reference if you already have an instance you just want to use.
Generated when the pointer enters or leaves a window.
-
Untyped pointer to the underlying
GdkEventCrossinginstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GdkEventCrossinginstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventCrossinginstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventCrossing>! { get } -
Required Initialiser for types conforming to
EventCrossingProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
typeExtension methodthe type of the event (
GDK_ENTER_NOTIFYorGDK_LEAVE_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 } -
subwindowExtension methodthe window that was entered or left.
Declaration
Swift
@inlinable var subwindow: WindowRef! { get set } -
timeExtension methodthe time of the event in milliseconds.
Declaration
Swift
@inlinable var time: guint32 { get set } -
xExtension methodthe x coordinate of the pointer relative to the window.
Declaration
Swift
@inlinable var x: gdouble { get set } -
yExtension methodthe y coordinate of the pointer relative to the window.
Declaration
Swift
@inlinable var y: gdouble { get set } -
xRootExtension methodthe x coordinate of the pointer relative to the root of the screen.
Declaration
Swift
@inlinable var xRoot: gdouble { get set } -
yRootExtension methodthe y coordinate of the pointer relative to the root of the screen.
Declaration
Swift
@inlinable var yRoot: gdouble { get set } -
modeExtension methodthe crossing mode (
GDK_CROSSING_NORMAL,GDK_CROSSING_GRAB,GDK_CROSSING_UNGRAB,GDK_CROSSING_GTK_GRAB,GDK_CROSSING_GTK_UNGRABorGDK_CROSSING_STATE_CHANGED).GDK_CROSSING_GTK_GRAB,GDK_CROSSING_GTK_UNGRAB, andGDK_CROSSING_STATE_CHANGEDwere added in 2.14 and are always synthesized, never native.Declaration
Swift
@inlinable var mode: GdkCrossingMode { get set } -
detailExtension methodthe kind of crossing that happened (
GDK_NOTIFY_INFERIOR,GDK_NOTIFY_ANCESTOR,GDK_NOTIFY_VIRTUAL,GDK_NOTIFY_NONLINEARorGDK_NOTIFY_NONLINEAR_VIRTUAL).Declaration
Swift
@inlinable var detail: GdkNotifyType { get set } -
focusExtension methodtrueifwindowis the focus window or an inferior.Declaration
Swift
@inlinable var focus: gboolean { get set } -
stateExtension methoda bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See
GdkModifierType.Declaration
Swift
@inlinable var state: ModifierType { get set }
View on GitHub
Install in Dash
EventCrossingProtocol Protocol Reference