GdkEvent
GdkEvent is a core data structure in the GDK (GIMP Drawing Kit) library used by GTK applications to represent a single event from the windowing system. It serves as a generic container for all kinds of input and window events that can occur while an application runs, such as keyboard input, mouse actions, and window changes. Each event type is identified by a type field, and the event-specific information is stored in a union of per-event structures.
Common event types include key presses and releases (GdkEventKey), button presses and releases (GdkEventButton), pointer motion
In GTK applications, event handlers receive a pointer to GdkEvent and typically use a switch on event->type
GdkEvent objects are owned by the GDK event system. They are valid for the duration of the
Platform coverage: GDK abstracts over X11, Wayland, and other backends, providing a unified event API to GTK