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

The type of the event.

window

The window which received the event.

send_event

TRUE if the event was sent explicitly.

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.

axes

x, y translated to the axes of device, or NULL if device is the mouse.

state

A bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType.

is_hint

Set to 1 if this event is just a hint, see the GDK_POINTER_MOTION_HINT_MASK value of GdkEventMask.

device

The master device that the event originated from. Use gdk_event_get_source_device() to get the slave device.

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.