EventControllerKey

GtkEventControllerKey is an event controller that provides access to key events.

Constructors

this
this(GtkEventControllerKey* gtkEventControllerKey, bool ownedRef)

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

this
this()

Creates a new event controller that will handle key events.

Members

Functions

addOnImUpdate
gulong addOnImUpdate(void delegate(EventControllerKey) dlg, ConnectFlags connectFlags)

Emitted whenever the input method context filters away a keypress and prevents the @controller receiving it.

addOnKeyPressed
gulong addOnKeyPressed(bool delegate(uint, uint, GdkModifierType, EventControllerKey) dlg, ConnectFlags connectFlags)

Emitted whenever a key is pressed.

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

Emitted whenever a key is released.

addOnModifiers
gulong addOnModifiers(bool delegate(GdkModifierType, EventControllerKey) dlg, ConnectFlags connectFlags)

Emitted whenever the state of modifier keys and pointer buttons change.

forward
bool forward(Widget widget)

Forwards the current event of this @controller to a @widget.

getEventControllerKeyStruct
GtkEventControllerKey* getEventControllerKeyStruct(bool transferOwnership)

Get the main Gtk struct

getGroup
uint getGroup()

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

getImContext
IMContext getImContext()

Gets the input method context of the key @controller.

getStruct
void* getStruct()

the main Gtk struct as a void*

setImContext
void setImContext(IMContext imContext)

Sets the input method context of the key @controller.

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()
getCurrentEvent
Event getCurrentEvent()

Returns the event that is currently being handled by the controller, and %NULL at other times.

getCurrentEventDevice
Device getCurrentEventDevice()

Returns the device of the event that is currently being handled by the controller, and %NULL otherwise.

getCurrentEventState
GdkModifierType getCurrentEventState()

Returns the modifier state of the event that is currently being handled by the controller, and 0 otherwise.

getCurrentEventTime
uint getCurrentEventTime()

Returns the timestamp of the event that is currently being handled by the controller, and 0 otherwise.

getName
string getName()

Gets the name of @controller.

getPropagationLimit
GtkPropagationLimit getPropagationLimit()

Gets the propagation limit of the event controller.

getPropagationPhase
GtkPropagationPhase getPropagationPhase()

Gets the propagation phase at which @controller handles events.

getWidget
Widget getWidget()

Returns the #GtkWidget 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(GtkPropagationLimit limit)

Sets the event propagation limit on the event controller.

setPropagationPhase
void setPropagationPhase(GtkPropagationPhase phase)

Sets the propagation phase at which a controller handles events.

Meta