ยค xrequest, xrequestF, et al

Types

xrequest :: FudgetIO f =>
            XRequest -> (XResponse -> Maybe ans) -> (ans -> f b ho) -> f b ho
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 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.

Arguments

xrequest :: XRequest
The request to output.
expected :: XResponse -> Maybe ans
A function to test input messages with. It should return Just x for the response you are waiting for and Nothing otherwise.
contf :: ans -> f b ho
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 et al. Performing Socket IO operations: sIO et al. Performing X Commands: xcommand et al.