X11-1.10.2.9: A binding to the X11 graphics library
Copyright(c) Alastair Reid 1999-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainerlibraries@haskell.org
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Graphics.X11.Xlib.Misc

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 CInt Source #

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 GrabStatus Source #

interface to the X11 library function XGrabPointer().

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

interface to the X11 library function XUngrabPointer().

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

interface to the X11 library function XGrabKey().

ungrabKey :: Display -> KeyCode -> KeyMask -> Window -> IO () Source #

interface to the X11 library function XUngrabKey().

grabKeyboard :: Display -> Window -> Bool -> GrabMode -> GrabMode -> Time -> IO GrabStatus Source #

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 -> String Source #

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 Bool Source #

interface to the X11 library function XSupportsLocale().

setLocaleModifiers :: String -> IO String Source #

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

Visuals

visualIDFromVisual :: Visual -> IO VisualID Source #

see XVisualIDFromVisual()

visualBlueMaskMask :: VisualInfoMask Source #

interface to the X11 library function XGetVisualInfo()

matchVisualInfo :: Display -> ScreenNumber -> CInt -> CInt -> IO (Maybe VisualInfo) Source #

interface to the X11 library function XMatchVisualInfo()

Threads

Pixmaps

createPixmap :: Display -> Drawable -> Dimension -> Dimension -> CInt -> IO Pixmap Source #

interface to the X11 library function XCreatePixmap().

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

interface to the X11 library function XFreePixmap().

bitmapBitOrder :: Display -> ByteOrder Source #

interface to the X11 library function XBitmapBitOrder().

bitmapUnit :: Display -> CInt Source #

interface to the X11 library function XBitmapUnit().

bitmapPad :: Display -> CInt Source #

interface to the X11 library function XBitmapPad().

readBitmapFile :: Display -> Drawable -> String -> IO (Either String (Dimension, Dimension, Pixmap, Maybe CInt, Maybe CInt)) Source #

interface to the X11 library function XReadBitmapFile.

Keycodes

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

interface to the X11 library function XDisplayKeycodes().

lookupKeysym :: XKeyEventPtr -> CInt -> IO KeySym Source #

interface to the X11 library function XLookupKeysym().

keycodeToKeysym :: Display -> KeyCode -> CInt -> IO KeySym Source #

interface to the X11 library function XKeycodeToKeysym().

keysymToKeycode :: Display -> KeySym -> IO KeyCode Source #

interface to the X11 library function XKeysymToKeycode().

keysymToString :: KeySym -> String Source #

interface to the X11 library function XKeysymToString().

stringToKeysym :: String -> KeySym Source #

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 String Source #

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 Cursor Source #

interface to the X11 library function XCreatePixmapCursor().

createGlyphCursor :: Display -> Font -> Font -> Glyph -> Glyph -> Color -> Color -> IO Cursor Source #

interface to the X11 library function XCreateGlyphCursor().

createFontCursor :: Display -> Glyph -> IO Cursor Source #

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 String Source #

interface to the X11 library function XFetchBuffer().

fetchBytes :: Display -> IO String Source #

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