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
GdkEventCrossing
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GdkEventCrossing
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventCrossing
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventCrossing>! { get }
-
Required Initialiser for types conforming to
EventCrossingProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
type
Extension methodthe type of the event (
GDK_ENTER_NOTIFY
orGDK_LEAVE_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 }
-
subwindow
Extension methodthe window that was entered or left.
Declaration
Swift
@inlinable var subwindow: WindowRef! { get set }
-
time
Extension methodthe time of the event in milliseconds.
Declaration
Swift
@inlinable var time: guint32 { get set }
-
x
Extension methodthe x coordinate of the pointer relative to the window.
Declaration
Swift
@inlinable var x: gdouble { get set }
-
y
Extension methodthe y coordinate of the pointer relative to the window.
Declaration
Swift
@inlinable var y: gdouble { get set }
-
xRoot
Extension methodthe x coordinate of the pointer relative to the root of the screen.
Declaration
Swift
@inlinable var xRoot: gdouble { get set }
-
yRoot
Extension methodthe y coordinate of the pointer relative to the root of the screen.
Declaration
Swift
@inlinable var yRoot: gdouble { get set }
-
mode
Extension methodthe crossing mode (
GDK_CROSSING_NORMAL
,GDK_CROSSING_GRAB
,GDK_CROSSING_UNGRAB
,GDK_CROSSING_GTK_GRAB
,GDK_CROSSING_GTK_UNGRAB
orGDK_CROSSING_STATE_CHANGED
).GDK_CROSSING_GTK_GRAB
,GDK_CROSSING_GTK_UNGRAB
, andGDK_CROSSING_STATE_CHANGED
were added in 2.14 and are always synthesized, never native.Declaration
Swift
@inlinable var mode: GdkCrossingMode { get set }
-
detail
Extension methodthe kind of crossing that happened (
GDK_NOTIFY_INFERIOR
,GDK_NOTIFY_ANCESTOR
,GDK_NOTIFY_VIRTUAL
,GDK_NOTIFY_NONLINEAR
orGDK_NOTIFY_NONLINEAR_VIRTUAL
).Declaration
Swift
@inlinable var detail: GdkNotifyType { get set }
-
focus
Extension methodtrue
ifwindow
is the focus window or an inferior.Declaration
Swift
@inlinable var focus: gboolean { get set }
-
state
Extension 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 }