X11-1.6.0.2: A binding to the X11 graphics library

Portabilityportable
Stabilityprovisional
Maintainerlibraries@haskell.org
Safe HaskellNone

Graphics.X11.Xlib.Misc

Contents

Description

A collection of FFI declarations for interfacing with Xlib.

Synopsis

Documentation

rmInitialize :: IO ()Source

interface to the X11 library function XrmInitialize().

autoRepeatOff :: Display -> IO ()Source

interface to the X11 library function XAutoRepeatOff().

autoRepeatOn :: Display -> IO ()Source

interface to the X11 library function XAutoRepeatOn().

bell :: Display -> CInt -> IO ()Source

interface to the X11 library function XBell().

setCloseDownMode :: Display -> CloseDownMode -> IO ()Source

interface to the X11 library function XSetCloseDownMode().

lastKnownRequestProcessed :: Display -> IO CIntSource

interface to the X11 library function XLastKnownRequestProcessed().

getInputFocus :: Display -> IO (Window, FocusMode)Source

interface to the X11 library function XGetInputFocus().

setInputFocus :: Display -> Window -> FocusMode -> Time -> IO ()Source

interface to the X11 library function XSetInputFocus().

grabButton :: Display -> Button -> ButtonMask -> Window -> Bool -> EventMask -> GrabMode -> GrabMode -> Window -> Cursor -> IO ()Source

interface to the X11 library function XGrabButton().

ungrabButton :: Display -> Button -> ButtonMask -> Window -> IO ()Source

interface to the X11 library function XUngrabButton().

grabPointer :: Display -> Window -> Bool -> EventMask -> GrabMode -> GrabMode -> Window -> Cursor -> Time -> IO GrabStatusSource

interface to the X11 library function XGrabPointer().

ungrabPointer :: Display -> Time -> IO ()Source

interface to the X11 library function XUngrabPointer().

grabKey :: Display -> KeyCode -> ButtonMask -> Window -> Bool -> GrabMode -> GrabMode -> IO ()Source

interface to the X11 library function XGrabKey().

ungrabKey :: Display -> KeyCode -> ButtonMask -> Window -> IO ()Source

interface to the X11 library function XUngrabKey().

grabKeyboard :: Display -> Window -> Bool -> GrabMode -> GrabMode -> Time -> IO GrabStatusSource

interface to the X11 library function XGrabKeyboard().

ungrabKeyboard :: Display -> Time -> IO ()Source

interface to the X11 library function XUngrabKeyboard().

grabServer :: Display -> IO ()Source

interface to the X11 library function XGrabServer().

ungrabServer :: Display -> IO ()Source

interface to the X11 library function XUngrabServer().

queryBestTile :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)Source

interface to the X11 library function XQueryBestTile().

queryBestStipple :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)Source

interface to the X11 library function XQueryBestStipple().

queryBestCursor :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)Source

interface to the X11 library function XQueryBestCursor().

queryBestSize :: Display -> QueryBestSizeClass -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)Source

interface to the X11 library function XQueryBestSize().

queryPointer :: Display -> Window -> IO (Bool, Window, Window, CInt, CInt, CInt, CInt, Modifier)Source

interface to the X11 library function XQueryPointer().

Error reporting

displayName :: String -> StringSource

interface to the X11 library function XDisplayName().

setDefaultErrorHandler :: IO ()Source

The Xlib library reports most errors by invoking a user-provided error handler. This function installs an error handler that prints a textual representation of the error.

Geometry

geometry :: Display -> CInt -> String -> String -> Dimension -> Dimension -> Dimension -> CInt -> CInt -> IO (CInt, Position, Position, Dimension, Dimension)Source

interface to the X11 library function XGeometry().

getGeometry :: Display -> Drawable -> IO (Window, Position, Position, Dimension, Dimension, Dimension, CInt)Source

interface to the X11 library function XGetGeometry().

Locale

supportsLocale :: IO BoolSource

interface to the X11 library function XSupportsLocale().

setLocaleModifiers :: String -> IO StringSource

interface to the X11 library function XSetLocaleModifiers().

Screen saver

setScreenSaver :: Display -> CInt -> CInt -> PreferBlankingMode -> AllowExposuresMode -> IO ()Source

interface to the X11 library function XSetScreenSaver().

activateScreenSaver :: Display -> IO ()Source

interface to the X11 library function XActivateScreenSaver().

resetScreenSaver :: Display -> IO ()Source

interface to the X11 library function XResetScreenSaver().

forceScreenSaver :: Display -> ScreenSaverMode -> IO ()Source

interface to the X11 library function XForceScreenSaver().

Pointer

getPointerControl :: Display -> IO (CInt, CInt, CInt)Source

interface to the X11 library function XGetPointerControl().

warpPointer :: Display -> Window -> Window -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> IO ()Source

interface to the X11 library function XWarpPointer().

Threads

initThreads :: IO StatusSource

see XVisualIDFromVisual() foreign import ccall unsafe HsXlib.h XVisualIDFromVisual visualIDFromVisual :: Visual -> IO VisualID

Pixmaps

createPixmap :: Display -> Drawable -> Dimension -> Dimension -> CInt -> IO PixmapSource

interface to the X11 library function XCreatePixmap().

freePixmap :: Display -> Pixmap -> IO ()Source

interface to the X11 library function XFreePixmap().

bitmapBitOrder :: Display -> ByteOrderSource

interface to the X11 library function XBitmapBitOrder().

bitmapUnit :: Display -> CIntSource

interface to the X11 library function XBitmapUnit().

bitmapPad :: Display -> CIntSource

interface to the X11 library function XBitmapPad().

Keycodes

displayKeycodes :: Display -> (CInt, CInt)Source

interface to the X11 library function XDisplayKeycodes().

lookupKeysym :: XKeyEventPtr -> CInt -> IO KeySymSource

interface to the X11 library function XLookupKeysym().

keycodeToKeysym :: Display -> KeyCode -> CInt -> IO KeySymSource

interface to the X11 library function XKeycodeToKeysym().

keysymToKeycode :: Display -> KeySym -> IO KeyCodeSource

interface to the X11 library function XKeysymToKeycode().

keysymToString :: KeySym -> StringSource

interface to the X11 library function XKeysymToString().

stringToKeysym :: String -> KeySymSource

interface to the X11 library function XStringToKeysym().

lookupString :: XKeyEventPtr -> IO (Maybe KeySym, String)Source

interface to the X11 library function XLookupString().

Icons

getIconName :: Display -> Window -> IO StringSource

interface to the X11 library function XGetIconName().

setIconName :: Display -> Window -> String -> IO ()Source

interface to the X11 library function XSetIconName().

Cursors

defineCursor :: Display -> Window -> Cursor -> IO ()Source

interface to the X11 library function XDefineCursor().

undefineCursor :: Display -> Window -> IO ()Source

interface to the X11 library function XUndefineCursor().

createPixmapCursor :: Display -> Pixmap -> Pixmap -> Color -> Color -> Dimension -> Dimension -> IO CursorSource

interface to the X11 library function XCreatePixmapCursor().

createGlyphCursor :: Display -> Font -> Font -> Glyph -> Glyph -> Color -> Color -> IO CursorSource

interface to the X11 library function XCreateGlyphCursor().

createFontCursor :: Display -> Glyph -> IO CursorSource

interface to the X11 library function XCreateFontCursor().

freeCursor :: Display -> Font -> IO ()Source

interface to the X11 library function XFreeCursor().

recolorCursor :: Display -> Cursor -> Color -> Color -> IO ()Source

interface to the X11 library function XRecolorCursor().

Window manager stuff

setWMProtocols :: Display -> Window -> [Atom] -> IO ()Source

interface to the X11 library function XSetWMProtocols().

Set window attributes

Drawing

drawPoint :: Display -> Drawable -> GC -> Position -> Position -> IO ()Source

interface to the X11 library function XDrawPoint().

drawPoints :: Display -> Drawable -> GC -> [Point] -> CoordinateMode -> IO ()Source

interface to the X11 library function XDrawPoints().

drawLine :: Display -> Drawable -> GC -> Position -> Position -> Position -> Position -> IO ()Source

interface to the X11 library function XDrawLine().

drawLines :: Display -> Drawable -> GC -> [Point] -> CoordinateMode -> IO ()Source

interface to the X11 library function XDrawLines().

drawSegments :: Display -> Drawable -> GC -> [Segment] -> IO ()Source

interface to the X11 library function XDrawSegments().

drawRectangle :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> IO ()Source

interface to the X11 library function XDrawRectangle().

drawRectangles :: Display -> Drawable -> GC -> [Rectangle] -> IO ()Source

interface to the X11 library function XDrawRectangles().

drawArc :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Angle -> Angle -> IO ()Source

interface to the X11 library function XDrawArc().

drawArcs :: Display -> Drawable -> GC -> [Arc] -> IO ()Source

interface to the X11 library function XDrawArcs().

fillRectangle :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> IO ()Source

interface to the X11 library function XFillRectangle().

fillRectangles :: Display -> Drawable -> GC -> [Rectangle] -> IO ()Source

interface to the X11 library function XFillRectangles().

fillPolygon :: Display -> Drawable -> GC -> [Point] -> PolygonShape -> CoordinateMode -> IO ()Source

interface to the X11 library function XFillPolygon().

fillArc :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Angle -> Angle -> IO ()Source

interface to the X11 library function XFillArc().

fillArcs :: Display -> Drawable -> GC -> [Arc] -> IO ()Source

interface to the X11 library function XFillArcs().

copyArea :: Display -> Drawable -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> IO ()Source

interface to the X11 library function XCopyArea().

copyPlane :: Display -> Drawable -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> Pixel -> IO ()Source

interface to the X11 library function XCopyPlane().

drawString :: Display -> Drawable -> GC -> Position -> Position -> String -> IO ()Source

interface to the X11 library function XDrawString().

drawImageString :: Display -> Drawable -> GC -> Position -> Position -> String -> IO ()Source

interface to the X11 library function XDrawImageString().

Cut and paste buffers

storeBuffer :: Display -> String -> CInt -> IO ()Source

interface to the X11 library function XStoreBuffer().

storeBytes :: Display -> String -> IO ()Source

interface to the X11 library function XStoreBytes().

fetchBuffer :: Display -> CInt -> IO StringSource

interface to the X11 library function XFetchBuffer().

fetchBytes :: Display -> IO StringSource

interface to the X11 library function XFetchBytes().

rotateBuffers :: Display -> CInt -> IO ()Source

interface to the X11 library function XRotateBuffers().

Window properties

setTextProperty :: Display -> Window -> String -> Atom -> IO ()Source

interface to the X11 library function XSetTextProperty().