threepenny-gui- Small GUI framework that uses the web browser as a display.

Safe HaskellNone





Common DOM events, for convenience.


click :: Element -> Event ()Source

Mouse click.

mousemove :: Element -> Event (Int, Int)Source

Event that periodically occurs while the mouse is moving over an element.

The event value represents the mouse coordinates relative to the upper left corner of the entire page.

Note: The body element responds to mouse move events, but only in the area occupied by actual content, not the whole browser window.

hover :: Element -> Event ()Source

Mouse hovering over an element.

blur :: Element -> Event ()Source

Element loses focus.

leave :: Element -> Event ()Source

Mouse leaving an element.

keyup :: Element -> Event KeyCodeSource

Key released while element has focus.

keydown :: Element -> Event KeyCodeSource

Key pressed while element has focus.