Method

GdkEventget_state

Declaration [src]

gboolean
gdk_event_get_state (
  const GdkEvent* event,
  GdkModifierType* state
)

Description [src]

If the event contains a “state” field, puts that field in state. Otherwise stores an empty state (0). Returns TRUE if there was a state field in the event. event may be NULL, in which case it’s treated as if the event had no state field.

Parameters

event

Type: GdkEvent

A GdkEvent or NULL.

The argument can be NULL.
state

Type: GdkModifierType

Return location for state.

The argument will be set by the function.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.

Return value

Type: gboolean

TRUE if there was a state field in the event.