even package:gtk

Query a bounding box of the region that needs to be updated.
Query the mouse buttons.
Query why a seleciton changed its owner.
Retrieve the (x,y) coordinates of the mouse.
Query if the window has the focus or is an inferior window.
Get the mode of the mouse cursor crossing a window.
Query if a window gained focus (True) or lost the focus (False).
Get the new window that owns the grab or Nothing if the window is not part of this application.
The hardware key code.
Check if a grab was broken implicitly.
Check if the motion event is only a hint rather than the full mouse movement information.
The key value as a string. See KeyVal.
The key value. See KeyVal.
Check if a keyboard (True) or a mouse pointer grap (False) was broken.
The keyboard group.
Query the modifier keys that were depressed when the event happened. Sticky modifiers such as CapsLock are omitted in the return value. Use eventModifierAll your application requires all modifiers. Use eventModifierMouse if you just need the mouse buttons.
Query the modifier keys that were depressed when the event happened. The result includes sticky modifiers such as CapsLock. Normally, eventModifier is more appropriate in applications.
Query the mouse buttons that were depressed when the event happened.
Get the notify type of the mouse cursor crossing a window.
Get the (x,y) position of the window within the parent window.
Query the region that needs to be updated. Removed in Gtk3.
Request more motion notifies if this event is a motion notify hint event. This action should be used instead of drawWindowGetPointer to request further motion notifies, because it also works for extension events where motion notifies are provided for devices other than the core pointer. Coordinate extraction, processing and requesting more motion events from a motionNotifyEvent usually works like this:
on widget motionNotifyEvent $ do
(x, y) <- eventCoordinates
-- handle the x,y motion:
...
-- finally, notify that we are ready to get more motion events:
eventRequestMotions
Retrieve the (x,y) coordinates of the mouse relative to the root (origin) of the screen.