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:GdkEventTypeThe type of the event.
window:GdkWindowThe window which received the event.
send_event:gint8TRUEif the event was sent explicitly.time:guint32The time of the event in milliseconds.
x:gdoubleThe x coordinate of the pointer relative to the window.
y:gdoubleThe y coordinate of the pointer relative to the window.
axes:gdouble*x,ytranslated to the axes ofdevice, orNULLifdeviceis the mouse.state:GdkModifierTypeA bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See
GdkModifierType.is_hint:gint16Set to 1 if this event is just a hint, see the
GDK_POINTER_MOTION_HINT_MASKvalue ofGdkEventMask.device:GdkDeviceThe master device that the event originated from. Use
gdk_event_get_source_device()to get the slave device.x_root:gdoubleThe x coordinate of the pointer relative to the root of the screen.
y_root:gdoubleThe y coordinate of the pointer relative to the root of the screen.