xrequest :: FudgetIO f => XRequest -> (XResponse -> Maybe ans) -> (ans -> f hi ho) -> f hi ho xrequestF :: XRequest -> (XResponse -> Maybe a) -> Cont (F b c) a xrequestK :: XRequest -> (XResponse -> Maybe a) -> Cont (K b c) a
xrequest xrequest expected contf
xrequest
is a general function 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.
xrequest :: XRequest
expected :: XResponse -> Maybe ans
Just x
for the response you are waiting for and
Nothing
otherwise.
contf :: ans -> f hi ho
expected
.
Various Xlib calls: allocNamedColor, createGC, createFontCursor, loadQueryFont, readBitmapFile, createPixmap, getWindowRootPoint, getWindowPropertyK, internAtomK, queryPointerK.
Performing Haskell IO operations: haskellIO et al. Performing Socket IO operations: sIO et al. Performing X Commands: xcommand et al.