FocusEvent

An event related to a keyboard focus change.

class FocusEvent : Event {}

Members

Functions

getIn
bool getIn()

Extracts whether this event is about focus entering or leaving the surface.

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.