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 * _cInstancePtrMethods
bool getAxis(gdk.types.AxisUse axisUse, out double value) nothrowExtract the axis value for a particular axis use from an event structure.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]Typegdk.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 eventbool 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 eventbool triggersContextMenu() nothrowReturns whether a [gdk.event.Event] should trigger a context menu, according to platform conventions.Destructors