KeyEvent

An event related to a key-based device.

Members

Functions

getConsumedModifiers
gdk.types.ModifierType getConsumedModifiers()

Extracts the consumed modifiers from a key event.

getKeycode
uint getKeycode()

Extracts the keycode from a key event.

getKeyval
uint getKeyval()

Extracts the keyval from a key event.

getLayout
uint getLayout()

Extracts the layout from a key event.

getLevel
uint getLevel()

Extracts the shift level from a key event.

getMatch
bool getMatch(uint keyval, gdk.types.ModifierType modifiers)

Gets a keyval and modifier combination that will match the event.

isModifier
bool isModifier()

Extracts whether the key event is for a modifier key.

matches
gdk.types.KeyMatch matches(uint keyval, gdk.types.ModifierType modifiers)

Matches a key event against a keyval and modifiers.

Inherited Members

From Event

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.