gdk.event

Module for [Event] class

class Event

Types 1

classEvent

[gdk.event.Event]s 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.

Fields
GdkEvent * _cInstancePtr
Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
bool getAxes(out double[] axes)Extracts all axis values from an event.
bool getAxis(gdk.types.AxisUse axisUse, out double value)Extract the axis value for a particular axis use from an event structure.
gdk.device.Device getDevice()Returns the device of an event. Returns: a [gdk.device.Device]
gdk.device_tool.DeviceTool getDeviceTool()Returns a [gdk.device_tool.DeviceTool] representing the tool that caused the event.
gdk.display.Display getDisplay()Retrieves the display associated to the event. Returns: a [gdk.display.Display]
gdk.event_sequence.EventSequence getEventSequence()Returns the event sequence to which the event belongs.
gdk.types.EventType getEventType()Retrieves the type of the event. Returns: a [gdk.event.Event]Type
gdk.types.TimeCoord[] getHistory()Retrieves the history of the device that event is for, as a list of time and coordinates.
gdk.types.ModifierType getModifierState()Returns the modifier state field of an event. Returns: the modifier state of event
bool getPointerEmulated()Returns whether this event is an 'emulated' pointer event.
bool getPosition(out double x, out double y)Extract the event surface relative x/y coordinates from an event.
gdk.seat.Seat getSeat()Returns the seat that originated the event. Returns: a [gdk.seat.Seat].
gdk.surface.Surface getSurface()Extracts the surface associated with an event. Returns: The [gdk.surface.Surface] associated with the event
uint getTime()Returns the timestamp of event.
bool triggersContextMenu()Returns whether a [gdk.event.Event] should trigger a context menu, according to platform conventions.
Constructors
this(void * ptr, Flag!"Take" take)
Destructors