Struct
GdkEventMotion
Description [src]
struct GdkEventMotion {
GdkEventType type;
GdkWindow* window;
gint8 send_event;
guint32 time;
gdouble x;
gdouble y;
gdouble* axes;
GdkModifierType* state;
gint16 is_hint;
GdkDevice* device;
gdouble x_root;
gdouble y_root;
}
Generated when the pointer moves.
Structure members
type:
GdkEventType
The type of the event.
window:
GdkWindow
The window which received the event.
send_event:
gint8
TRUE
if the event was sent explicitly.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.
axes:
gdouble*
x
,y
translated to the axes ofdevice
, orNULL
ifdevice
is the mouse.state:
GdkModifierType
A bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See
GdkModifierType
.is_hint:
gint16
Set to 1 if this event is just a hint, see the
GDK_POINTER_MOTION_HINT_MASK
value ofGdkEventMask
.device:
GdkDevice
The master device that the event originated from. Use
gdk_event_get_source_device()
to get the slave device.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.