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(GtkEventControllerKey* gtkEventControllerKey, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Widget widget)

Members

Functions

addOnFocusIn
gulong addOnFocusIn(void delegate(EventControllerKey) dlg, ConnectFlags connectFlags)
addOnFocusOut
gulong addOnFocusOut(void delegate(EventControllerKey) dlg, ConnectFlags connectFlags)
addOnImUpdate
gulong addOnImUpdate(void delegate(EventControllerKey) dlg, ConnectFlags connectFlags)
addOnKeyPressed
gulong addOnKeyPressed(bool delegate(uint, uint, GdkModifierType, EventControllerKey) dlg, ConnectFlags connectFlags)

This signal is emitted whenever a key is pressed.

addOnKeyReleased
gulong addOnKeyReleased(void delegate(uint, uint, GdkModifierType, EventControllerKey) dlg, ConnectFlags connectFlags)

This signal is emitted whenever a key is released.

addOnModifiers
gulong addOnModifiers(bool delegate(GdkModifierType, EventControllerKey) dlg, ConnectFlags connectFlags)
forward
bool forward(Widget widget)
getEventControllerKeyStruct
GtkEventControllerKey* getEventControllerKeyStruct(bool transferOwnership)

Get the main Gtk struct

getGroup
uint getGroup()
getImContext
IMContext getImContext()

Gets the IM context of a key controller.

getStruct
void* getStruct()

the main Gtk struct as a void*

setImContext
void setImContext(IMContext imContext)

Static functions

getType
GType getType()

Variables

gtkEventControllerKey
GtkEventControllerKey* gtkEventControllerKey;

the main Gtk struct

Inherited Members

From EventController

gtkEventController
GtkEventController* gtkEventController;

the main Gtk struct

getEventControllerStruct
GtkEventController* getEventControllerStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getPropagationPhase
GtkPropagationPhase getPropagationPhase()

Gets the propagation phase at which @controller handles events.

getWidget
Widget getWidget()

Returns the #GtkWidget this controller relates to.

handleEvent
bool handleEvent(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(GtkPropagationPhase phase)

Sets the propagation phase at which a controller handles events.

Meta