|
Graphics.X11.Xlib.Event | Portability | portable | Stability | provisional | Maintainer | libraries@haskell.org |
|
|
|
Description |
A collection of FFI declarations for interfacing with Xlib Events.
|
|
Synopsis |
|
type QueuedMode = Int | | queuedAlready :: QueuedMode | | queuedAfterFlush :: QueuedMode | | queuedAfterReading :: QueuedMode | | data XEvent | | type XEventPtr = Ptr XEvent | | allocaXEvent :: (XEventPtr -> IO a) -> IO a | | get_EventType :: XEventPtr -> IO EventType | | get_Window :: XEventPtr -> IO Window | | type XKeyEvent = (Window, Window, Time, Int, Int, Int, Int, Modifier, KeyCode, Bool) | | type XKeyEventPtr = Ptr XKeyEvent | | asKeyEvent :: XEventPtr -> XKeyEventPtr | | type XButtonEvent = (Window, Window, Time, Int, Int, Int, Int, Modifier, Button, Bool) | | get_KeyEvent :: XEventPtr -> IO XKeyEvent | | get_ButtonEvent :: XEventPtr -> IO XButtonEvent | | get_MotionEvent :: XEventPtr -> IO XMotionEvent | | type XMotionEvent = (Window, Window, Time, Int, Int, Int, Int, Modifier, NotifyMode, Bool) | | type XExposeEvent = (Position, Position, Dimension, Dimension, Int) | | get_ExposeEvent :: XEventPtr -> IO XExposeEvent | | type XMappingEvent = (MappingRequest, KeyCode, Int) | | type XConfigureEvent = (Position, Position, Dimension, Dimension) | | get_ConfigureEvent :: XEventPtr -> IO XConfigureEvent | | waitForEvent :: Display -> Word32 -> IO Bool | | gettimeofday_in_milliseconds :: IO Integer | | flush :: Display -> IO () | | sync :: Display -> Bool -> IO () | | pending :: Display -> IO Int | | eventsQueued :: Display -> QueuedMode -> IO Int | | nextEvent :: Display -> XEventPtr -> IO () | | allowEvents :: Display -> AllowEvents -> Time -> IO () | | selectInput :: Display -> Window -> EventMask -> IO () | | sendEvent :: Display -> Window -> Bool -> EventMask -> XEventPtr -> IO () | | windowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO () | | checkWindowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO Bool | | maskEvent :: Display -> EventMask -> XEventPtr -> IO () | | checkMaskEvent :: Display -> EventMask -> XEventPtr -> IO Bool | | checkTypedEvent :: Display -> EventType -> XEventPtr -> IO Bool | | checkTypedWindowEvent :: Display -> Window -> EventType -> XEventPtr -> IO Bool | | putBackEvent :: Display -> XEventPtr -> IO () | | peekEvent :: Display -> XEventPtr -> IO () | | refreshKeyboardMapping :: XMappingEvent -> IO () |
|
|
Documentation |
|
type QueuedMode = Int |
|
queuedAlready :: QueuedMode |
|
queuedAfterFlush :: QueuedMode |
|
queuedAfterReading :: QueuedMode |
|
data XEvent |
Instances | |
|
|
type XEventPtr = Ptr XEvent |
|
allocaXEvent :: (XEventPtr -> IO a) -> IO a |
|
get_EventType :: XEventPtr -> IO EventType |
|
get_Window :: XEventPtr -> IO Window |
|
type XKeyEvent = (Window, Window, Time, Int, Int, Int, Int, Modifier, KeyCode, Bool) |
|
type XKeyEventPtr = Ptr XKeyEvent |
|
asKeyEvent :: XEventPtr -> XKeyEventPtr |
|
type XButtonEvent = (Window, Window, Time, Int, Int, Int, Int, Modifier, Button, Bool) |
|
get_KeyEvent :: XEventPtr -> IO XKeyEvent |
|
get_ButtonEvent :: XEventPtr -> IO XButtonEvent |
|
get_MotionEvent :: XEventPtr -> IO XMotionEvent |
|
type XMotionEvent = (Window, Window, Time, Int, Int, Int, Int, Modifier, NotifyMode, Bool) |
|
type XExposeEvent = (Position, Position, Dimension, Dimension, Int) |
|
get_ExposeEvent :: XEventPtr -> IO XExposeEvent |
|
type XMappingEvent = (MappingRequest, KeyCode, Int) |
|
type XConfigureEvent = (Position, Position, Dimension, Dimension) |
|
get_ConfigureEvent :: XEventPtr -> IO XConfigureEvent |
|
waitForEvent :: Display -> Word32 -> IO Bool |
Reads an event with a timeout (in microseconds).
Returns True if timeout occurs.
|
|
gettimeofday_in_milliseconds :: IO Integer |
This function is somewhat compatible with Win32's TimeGetTime()
|
|
flush :: Display -> IO () |
interface to the X11 library function XFlush().
|
|
sync :: Display -> Bool -> IO () |
interface to the X11 library function XSync().
|
|
pending :: Display -> IO Int |
interface to the X11 library function XPending().
|
|
eventsQueued :: Display -> QueuedMode -> IO Int |
interface to the X11 library function XEventsQueued().
|
|
nextEvent :: Display -> XEventPtr -> IO () |
interface to the X11 library function XNextEvent().
|
|
allowEvents :: Display -> AllowEvents -> Time -> IO () |
interface to the X11 library function XAllowEvents().
|
|
selectInput :: Display -> Window -> EventMask -> IO () |
interface to the X11 library function XSelectInput().
|
|
sendEvent :: Display -> Window -> Bool -> EventMask -> XEventPtr -> IO () |
interface to the X11 library function XSendEvent().
|
|
windowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO () |
interface to the X11 library function XWindowEvent().
|
|
checkWindowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO Bool |
interface to the X11 library function XCheckWindowEvent().
|
|
maskEvent :: Display -> EventMask -> XEventPtr -> IO () |
interface to the X11 library function XMaskEvent().
|
|
checkMaskEvent :: Display -> EventMask -> XEventPtr -> IO Bool |
interface to the X11 library function XCheckMaskEvent().
|
|
checkTypedEvent :: Display -> EventType -> XEventPtr -> IO Bool |
interface to the X11 library function XCheckTypedEvent().
|
|
checkTypedWindowEvent :: Display -> Window -> EventType -> XEventPtr -> IO Bool |
interface to the X11 library function XCheckTypedWindowEvent().
|
|
putBackEvent :: Display -> XEventPtr -> IO () |
interface to the X11 library function XPutBackEvent().
|
|
peekEvent :: Display -> XEventPtr -> IO () |
interface to the X11 library function XPeekEvent().
|
|
refreshKeyboardMapping :: XMappingEvent -> IO () |
interface to the X11 library function XRefreshKeyboardMapping().
|
|
Produced by Haddock version 0.8 |