Copyright | (c) Andrea Rossato and David Roundy 2007 |
---|---|
License | BSD-style (see xmonad/LICENSE) |
Maintainer | andrea.rossato@unibz.it |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell98 |
A module for setting up timers
- startTimer :: Rational -> X TimerId
- handleTimer :: TimerId -> Event -> X (Maybe a) -> X (Maybe a)
- type TimerId = Int
Usage
This module can be used to setup a timer to handle deferred events.
See ShowWName
for an usage example.
startTimer :: Rational -> X TimerId Source
Start a timer, which will send a ClientMessageEvent after some time (in seconds).
handleTimer :: TimerId -> Event -> X (Maybe a) -> X (Maybe a) Source