X11-1.6.1.1: A binding to the X11 graphics library

Portabilityportable
Stabilityprovisional
Maintainerlibraries@haskell.org
Safe HaskellNone

Graphics.X11.Xlib.Event

Description

A collection of FFI declarations for interfacing with Xlib Events.

Synopsis

Documentation

newtype XEvent

Constructors

XEvent XEventPtr 

allocaXEvent :: (XEventPtr -> IO a) -> IO a

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 CInt

interface to the X11 library function XPending().

eventsQueued :: Display -> QueuedMode -> IO CInt

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().