The GdkEvent struct contains a union of all of the event structs,
and allows access to the data fields in a number of ways.
The event type is always the first field in all of the event structs, and
can always be accessed with the following code, no matter what type of event
it is:
The GdkEvent struct contains a union of all of the event structs, and allows access to the data fields in a number of ways. The event type is always the first field in all of the event structs, and can always be accessed with the following code, no matter what type of event it is: