Gdk.EventProximity - Structures - Gdk 3.0 (original) (raw)

Fields

Name Type Access Description
device Gdk.Device r/w the master device that the event originated from. Use Gdk.Event.get_source_device() to get the slave device.
send_event int r/w True if the event was sent explicitly.
time int r/w the time of the event in milliseconds.
type Gdk.EventType r/w the type of the event (Gdk.EventType.PROXIMITY_IN or Gdk.EventType.PROXIMITY_OUT).
window Gdk.Window r/w the window which received the event.

Methods

None

Details

class Gdk.EventProximity

Proximity events are generated when using GDK’s wrapper for the XInput extension. The XInput extension is an add-on for standard X that allows you to use nonstandard devices such as graphics tablets. A proximity event indicates that the stylus has moved in or out of contact with the tablet, or perhaps that the user’s finger has moved in or out of contact with a touch screen.

This event type will be used pretty rarely. It only is important for XInput aware programs that are drawing their own cursor.