X11-1.10.2.9: A binding to the X11 graphics library
Copyright2007 (c) Spencer Janssen
LicenseBSD3-style (see LICENSE)
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

Graphics.X11.Xlib.Extras

Description

 
Synopsis

Documentation

data ClassHint Source #

Constructors

ClassHint 

Fields

newtype FontSet Source #

Constructors

FontSet (Ptr FontSet) 

Instances

Instances details
Show FontSet Source # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Eq FontSet Source # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

(==) :: FontSet -> FontSet -> Bool #

(/=) :: FontSet -> FontSet -> Bool #

Ord FontSet Source # 
Instance details

Defined in Graphics.X11.Xlib.Extras

data Event Source #

Constructors

AnyEvent 
ConfigureRequestEvent 
ConfigureEvent 
MapRequestEvent 
KeyEvent 
ButtonEvent 
MotionEvent 
DestroyWindowEvent 
UnmapEvent 
MapNotifyEvent 
MappingNotifyEvent 
CrossingEvent 
SelectionRequest 
SelectionClear 
PropertyEvent 
ExposeEvent 
FocusChangeEvent 
ClientMessageEvent 
RRScreenChangeNotifyEvent 
RRNotifyEvent 
RRCrtcChangeNotifyEvent 
RROutputChangeNotifyEvent 
RROutputPropertyNotifyEvent 
ScreenSaverNotifyEvent 

Instances

Instances details
Show Event Source # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

mapRaised :: Display -> Window -> IO CInt Source #

A binding to XMapRaised.

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

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

setClassHint :: Display -> Window -> ClassHint -> IO () Source #

Set the WM_CLASS property for the given window.

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

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