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