Event

gdk.event.Events are immutable data structures, created by GDK to represent windowing system events.

In GTK applications the events are handled automatically by toplevel widgets and passed on to the event controllers of appropriate widgets, so using gdk.event.Event and its related API is rarely needed.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

getAxes
bool getAxes(double[] axes)

Extracts all axis values from an event.

getAxis
bool getAxis(gdk.types.AxisUse axisUse, double value)

Extract the axis value for a particular axis use from an event structure.

getDevice
gdk.device.Device getDevice()

Returns the device of an event.

getDeviceTool
gdk.device_tool.DeviceTool getDeviceTool()

Returns a gdk.device_tool.DeviceTool representing the tool that caused the event.

getDisplay
gdk.display.Display getDisplay()

Retrieves the display associated to the event.

getEventSequence
gdk.event_sequence.EventSequence getEventSequence()

Returns the event sequence to which the event belongs.

getEventType
gdk.types.EventType getEventType()

Retrieves the type of the event.

getHistory
gdk.types.TimeCoord[] getHistory()

Retrieves the history of the device that event is for, as a list of time and coordinates.

getModifierState
gdk.types.ModifierType getModifierState()

Returns the modifier state field of an event.

getPointerEmulated
bool getPointerEmulated()

Returns whether this event is an 'emulated' pointer event.

getPosition
bool getPosition(double x, double y)

Extract the event surface relative x/y coordinates from an event.

getSeat
gdk.seat.Seat getSeat()

Returns the seat that originated the event.

getSurface
gdk.surface.Surface getSurface()

Extracts the surface associated with an event.

getTime
uint getTime()

Returns the timestamp of event.

triggersContextMenu
bool triggersContextMenu()

Returns whether a gdk.event.Event should trigger a context menu, according to platform conventions.