Gdk.EventMotion

Fields

Name

Type

Access

Description

axes

float

r/w

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

device

Gdk.Device

r/w

the master device that the event originated from. Use Gdk.Event.get_source_device() to get the slave device.

is_hint

int

r/w

set to 1 if this event is just a hint, see the Gdk.EventMask.POINTER_MOTION_HINT_MASK value of Gdk.EventMask.

send_event

int

r/w

True if the event was sent explicitly.

state

Gdk.ModifierType

r/w

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

time

int

r/w

the time of the event in milliseconds.

type

Gdk.EventType

r/w

the type of the event.

window

Gdk.Window

r/w

the window which received the event.

x

float

r/w

the x coordinate of the pointer relative to the window.

x_root

float

r/w

the x coordinate of the pointer relative to the root of the screen.

y

float

r/w

the y coordinate of the pointer relative to the window.

y_root

float

r/w

the y coordinate of the pointer relative to the root of the screen.

Methods

None

Details

class Gdk.EventMotion

Generated when the pointer moves.