Struct
GdkEventCrossing
Description [src]
struct GdkEventCrossing {
GdkEventType type;
GdkWindow* window;
gint8 send_event;
GdkWindow* subwindow;
guint32 time;
gdouble x;
gdouble y;
gdouble x_root;
gdouble y_root;
GdkCrossingMode mode;
GdkNotifyType detail;
gboolean focus;
GdkModifierType* state;
}
Generated when the pointer enters or leaves a window.
Structure members
type
The type of the event (
GDK_ENTER_NOTIFY
orGDK_LEAVE_NOTIFY
).window
The window which received the event.
send_event
TRUE
if the event was sent explicitly.subwindow
The window that was entered or left.
time
The time of the event in milliseconds.
x
The x coordinate of the pointer relative to the window.
y
The y coordinate of the pointer relative to the window.
x_root
The x coordinate of the pointer relative to the root of the screen.
y_root
The y coordinate of the pointer relative to the root of the screen.
mode
The 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.detail
The kind of crossing that happened (
GDK_NOTIFY_INFERIOR
,GDK_NOTIFY_ANCESTOR
,GDK_NOTIFY_VIRTUAL
,GDK_NOTIFY_NONLINEAR
orGDK_NOTIFY_NONLINEAR_VIRTUAL
).focus
TRUE
ifwindow
is the focus window or an inferior.state
A bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See
GdkModifierType
.