gdk.event

Module for [Event] class

class Event

Types 1

classEvent

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.

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