EventControllerKey

#GtkEventControllerKey is an event controller meant for situations where you need access to key events.

This object was added in 3.24.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gtk.widget.Widget widget)

Members

Functions

connectFocusIn
gulong connectFocusIn(T callback, Flag!"After" after)

Connect to FocusIn signal.

connectFocusOut
gulong connectFocusOut(T callback, Flag!"After" after)

Connect to FocusOut signal.

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

Connect to ImUpdate signal.

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

Connect to KeyPressed signal.

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

Connect to KeyReleased signal.

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

Connect to Modifiers signal.

forward
bool forward(gtk.widget.Widget widget)
getGroup
uint getGroup()
getImContext
gtk.imcontext.IMContext getImContext()

Gets the IM context of a key controller.

self
EventControllerKey self()

Returns this, for use in with statements.

setImContext
void setImContext(gtk.imcontext.IMContext imContext)

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
EventControllerKeyGidBuilder builder()

Get builder for gtk.event_controller_key.EventControllerKey

Inherited Members

From EventController

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

Returns this, for use in with statements.

builder
EventControllerGidBuilder builder()

Get builder for gtk.event_controller.EventController

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.

getPropagationPhase
gtk.types.PropagationPhase getPropagationPhase()

Gets the propagation phase at which controller handles events.

getWidget
gtk.widget.Widget getWidget()

Returns the #GtkWidget this controller relates to.

handleEvent
bool handleEvent(gdk.event.Event event)

Feeds an events into controller, so it can be interpreted and the controller actions triggered.

reset
void reset()

Resets the controller to a clean state. Every interaction the controller did through #GtkEventController::handle-event will be dropped at this point.

setPropagationPhase
void setPropagationPhase(gtk.types.PropagationPhase phase)

Sets the propagation phase at which a controller handles events.