¤ xrequest, xrequestF, et al

Types

xrequest :: (FudgetIO d) => XRequest -> (XResponse -> Maybe a) -> (a -> d b c) -> d b c
xrequestF :: XRequest -> (XResponse -> Maybe a) -> Cont (F b c) a
xrequestK :: XRequest -> (XResponse -> Maybe a) -> Cont (K b c) a

Synopsis

xrequest xrequest expected contf

Description

xrequest is a general functions to call Xlib routines which return a result. But there are also functions tailored to make specific calls, so there is probably no need to use xrequest directly in application code.

Arguments

xrequest :: XRequest
The request to output.
expected :: XResponse -> Maybe a
A function to test input messages with. It should return Just x for the response you are waiting for and Nothing otherwise.
contf :: a -> d b c
The fudget or kernel to continue with, parameterized by the response picked out by expected.

See Also

Various Xlib calls: allocNamedColor, createGC, createFontCursor, loadQueryFont, readBitmapFile, createPixmap, getWindowRootPoint, getWindowPropertyK, internAtomK, queryPointerK.

Performing Haskell IO operations: haskellIO.