EventControllerKey

gtk.event_controller_key.EventControllerKey is an event controller that provides access to key events.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new event controller that will handle key events.

Members

Functions

connectImUpdate
ulong connectImUpdate(T callback, Flag!"After" after)

Connect to ImUpdate signal.

connectKeyPressed
ulong connectKeyPressed(T callback, Flag!"After" after)

Connect to KeyPressed signal.

connectKeyReleased
ulong connectKeyReleased(T callback, Flag!"After" after)

Connect to KeyReleased signal.

connectModifiers
ulong connectModifiers(T callback, Flag!"After" after)

Connect to Modifiers signal.

forward
bool forward(gtk.widget.Widget widget)

Forwards the current event of this controller to a widget.

getGroup
uint getGroup()

Gets the key group of the current event of this controller.

getImContext
gtk.imcontext.IMContext getImContext()

Gets the input method context of the key controller.

self
EventControllerKey self()

Returns this, for use in with statements.

setImContext
void setImContext(gtk.imcontext.IMContext imContext)

Sets the input method context of the key controller.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()

Inherited Members

From EventController

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
EventController self()

Returns this, for use in with statements.

name
string name [@property getter]

Get name property.

name
string name [@property setter]

Set name property.

propagationLimit
gtk.types.PropagationLimit propagationLimit [@property getter]

Get propagationLimit property.

propagationLimit
gtk.types.PropagationLimit propagationLimit [@property setter]

Set propagationLimit property.

propagationPhase
gtk.types.PropagationPhase propagationPhase [@property getter]

Get propagationPhase property.

propagationPhase
gtk.types.PropagationPhase propagationPhase [@property setter]

Set propagationPhase property.

widget
gtk.widget.Widget widget [@property getter]

Get widget property.

getCurrentEvent
gdk.event.Event getCurrentEvent()

Returns the event that is currently being handled by the controller.

getCurrentEventDevice
gdk.device.Device getCurrentEventDevice()

Returns the device of the event that is currently being handled by the controller.

getCurrentEventState
gdk.types.ModifierType getCurrentEventState()

Returns the modifier state of the event that is currently being handled by the controller.

getCurrentEventTime
uint getCurrentEventTime()

Returns the timestamp of the event that is currently being handled by the controller.

getName
string getName()

Gets the name of controller.

getPropagationLimit
gtk.types.PropagationLimit getPropagationLimit()

Gets the propagation limit of the event controller.

getPropagationPhase
gtk.types.PropagationPhase getPropagationPhase()

Gets the propagation phase at which controller handles events.

getWidget
gtk.widget.Widget getWidget()

Returns the gtk.widget.Widget this controller relates to.

reset
void reset()

Resets the controller to a clean state.

setName
void setName(string name)

Sets a name on the controller that can be used for debugging.

setPropagationLimit
void setPropagationLimit(gtk.types.PropagationLimit limit)

Sets the event propagation limit on the event controller.

setPropagationPhase
void setPropagationPhase(gtk.types.PropagationPhase phase)

Sets the propagation phase at which a controller handles events.

setStaticName
void setStaticName(string name)

Sets a name on the controller that can be used for debugging.