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

state

Type: GdkModifierType

Return location for state.

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

Return value

Type: gboolean

TRUE if there was a state field in the event.