X11-1.5.0.0: A binding to the X11 graphics library

Stabilityexperimental

Graphics.X11.Xlib.Extras

Description

 

Synopsis

Documentation

data Event Source

Constructors

AnyEvent 
ConfigureRequestEvent 
ConfigureEvent 
MapRequestEvent 
KeyEvent 
ButtonEvent 
MotionEvent 
DestroyWindowEvent 
UnmapEvent 
MapNotifyEvent 
MappingNotifyEvent 
CrossingEvent 
SelectionRequest 
PropertyEvent 
ExposeEvent 
ClientMessageEvent 

Instances

changeWindowAttributes :: Display -> Window -> AttributeMask -> Ptr SetWindowAttributes -> IO ()Source

interface to the X11 library function XChangeWindowAttributes().

withServer :: Display -> IO () -> IO ()Source

Run an action with the server

newtype FontSet Source

Constructors

FontSet (Ptr FontSet) 

getWMProtocols :: Display -> Window -> IO [Atom]Source

The XGetWMProtocols function returns the list of atoms stored in the WM_PROTOCOLS property on the specified window. These atoms describe window manager protocols in which the owner of this window is willing to participate. If the property exists, is of type ATOM, is of format 32, and the atom WM_PROTOCOLS can be interned, XGetWMProtocols sets the protocols_return argument to a list of atoms, sets the count_return argument to the number of elements in the list, and returns a nonzero status. Otherwise, it sets neither of the return arguments and returns a zero status. To release the list of atoms, use XFree.

refreshKeyboardMapping :: Event -> IO ()Source

refreshKeyboardMapping. TODO Remove this binding when the fix has been commited to X11

data ClassHint Source

Constructors

ClassHint 

Fields

resName :: String
 
resClass :: String
 

setErrorHandler :: XErrorHandler -> IO ()Source

A binding to XSetErrorHandler. NOTE: This is pretty experimental because of safe vs. unsafe calls. I changed sync to a safe call, but there *might* be other calls that cause a problem

getErrorEvent :: XErrorEventPtr -> IO ErrorEventSource

Retrieves error event data from a pointer to an XErrorEvent and puts it into an ErrorEvent.

mapRaised :: Display -> Window -> IO CIntSource

A binding to XMapRaised.