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

Constructors

ErrorEvent 

Fields

type XErrorEventPtr = Ptr () Source #

data WMHints Source #

Constructors

WMHints 

Instances

Instances details
Storable WMHints Source # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

sizeOf :: WMHints -> Int

alignment :: WMHints -> Int

peekElemOff :: Ptr WMHints -> Int -> IO WMHints

pokeElemOff :: Ptr WMHints -> Int -> WMHints -> IO ()

peekByteOff :: Ptr b -> Int -> IO WMHints

pokeByteOff :: Ptr b -> Int -> WMHints -> IO ()

peek :: Ptr WMHints -> IO WMHints

poke :: Ptr WMHints -> WMHints -> IO ()

data ClassHint Source #

Constructors

ClassHint 

Fields

data SizeHints Source #

Instances

Instances details
Storable SizeHints Source # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

sizeOf :: SizeHints -> Int

alignment :: SizeHints -> Int

peekElemOff :: Ptr SizeHints -> Int -> IO SizeHints

pokeElemOff :: Ptr SizeHints -> Int -> SizeHints -> IO ()

peekByteOff :: Ptr b -> Int -> IO SizeHints

pokeByteOff :: Ptr b -> Int -> SizeHints -> IO ()

peek :: Ptr SizeHints -> IO SizeHints

poke :: Ptr SizeHints -> SizeHints -> IO ()

newtype FontSet Source #

Constructors

FontSet (Ptr FontSet) 

Instances

Instances details
Show FontSet Source # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

showsPrec :: Int -> FontSet -> ShowS

show :: FontSet -> String

showList :: [FontSet] -> ShowS

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

Methods

compare :: FontSet -> FontSet -> Ordering

(<) :: FontSet -> FontSet -> Bool

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

(>) :: FontSet -> FontSet -> Bool

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

max :: FontSet -> FontSet -> FontSet

min :: FontSet -> FontSet -> FontSet

data TextProperty Source #

Constructors

TextProperty 

Fields

Instances

Instances details
Storable TextProperty Source # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

sizeOf :: TextProperty -> Int

alignment :: TextProperty -> Int

peekElemOff :: Ptr TextProperty -> Int -> IO TextProperty

pokeElemOff :: Ptr TextProperty -> Int -> TextProperty -> IO ()

peekByteOff :: Ptr b -> Int -> IO TextProperty

pokeByteOff :: Ptr b -> Int -> TextProperty -> IO ()

peek :: Ptr TextProperty -> IO TextProperty

poke :: Ptr TextProperty -> TextProperty -> IO ()

data WindowChanges Source #

Constructors

WindowChanges 

Fields

Instances

Instances details
Storable WindowChanges Source # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

sizeOf :: WindowChanges -> Int

alignment :: WindowChanges -> Int

peekElemOff :: Ptr WindowChanges -> Int -> IO WindowChanges

pokeElemOff :: Ptr WindowChanges -> Int -> WindowChanges -> IO ()

peekByteOff :: Ptr b -> Int -> IO WindowChanges

pokeByteOff :: Ptr b -> Int -> WindowChanges -> IO ()

peek :: Ptr WindowChanges -> IO WindowChanges

poke :: Ptr WindowChanges -> WindowChanges -> IO ()

data Event Source #

Constructors

AnyEvent 
ConfigureRequestEvent 

Fields

ConfigureEvent 

Fields

MapRequestEvent 
KeyEvent 

Fields

ButtonEvent 

Fields

MotionEvent 

Fields

DestroyWindowEvent 
UnmapEvent 
MapNotifyEvent 
MappingNotifyEvent 
CrossingEvent 

Fields

SelectionRequest 
SelectionClear 
PropertyEvent 
ExposeEvent 

Fields

FocusChangeEvent 
ClientMessageEvent 
RRScreenChangeNotifyEvent 
RRNotifyEvent 
RRCrtcChangeNotifyEvent 

Fields

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

xFreeModifiermap :: Ptr () -> IO (Ptr CInt) Source #

xGetCommand :: Display -> Window -> Ptr (Ptr CWString) -> Ptr CInt -> IO Status Source #

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

A binding to XMapRaised.

isPFKey :: KeySym -> Bool Source #

xGetWMNormalHints :: Display -> Window -> Ptr SizeHints -> Ptr CLong -> IO Status Source #

xGetWindowProperty :: Display -> Window -> Atom -> CLong -> CLong -> Bool -> Atom -> Ptr Atom -> Ptr CInt -> Ptr CULong -> Ptr CULong -> Ptr (Ptr CUChar) -> IO Status Source #

xChangeProperty :: Display -> Window -> Atom -> Atom -> CInt -> CInt -> Ptr CUChar -> CInt -> IO Status Source #

xRefreshKeyboardMapping :: Ptr () -> IO CInt Source #

xGetWMProtocols :: Display -> Window -> Ptr (Ptr Atom) -> Ptr CInt -> IO Status Source #

xFetchName :: Display -> Window -> Ptr CString -> IO Status Source #

xwcTextEscapement :: FontSet -> CWString -> CInt -> IO Int32 Source #

xwcDrawImageString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> CWString -> CInt -> IO () Source #

xwcDrawString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> CWString -> CInt -> IO () Source #

xwcTextExtents :: FontSet -> CWString -> CInt -> Ptr Rectangle -> Ptr Rectangle -> IO CInt Source #

freeStringList :: Ptr CString -> IO () Source #

xCreateFontSet :: Display -> CString -> Ptr (Ptr CString) -> Ptr CInt -> Ptr CString -> IO (Ptr FontSet) Source #

wcFreeStringList :: Ptr CWString -> IO () Source #

xwcTextPropertyToTextList :: Display -> Ptr TextProperty -> Ptr (Ptr CWString) -> Ptr CInt -> IO CInt Source #

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

interface to the X11 library function XChangeWindowAttributes().

xQueryTree :: Display -> Window -> Ptr Window -> Ptr Window -> Ptr (Ptr Window) -> Ptr CInt -> IO Status Source #

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

xConfigureWindow :: Display -> Window -> CULong -> Ptr WindowChanges -> IO CInt Source #

eventTable :: [(EventType, String)] Source #

eventName :: Event -> String Source #

configureWindow :: Display -> Window -> CULong -> WindowChanges -> IO () Source #

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

Run an action with the server

createFontSet :: Display -> String -> IO ([String], String, FontSet) Source #

wcDrawString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> String -> IO () Source #

wcDrawImageString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> String -> IO () Source #

wcTextEscapement :: FontSet -> String -> Int32 Source #

fetchName :: Display -> Window -> IO (Maybe String) Source #

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.

setClientMessageEvent :: XEventPtr -> Window -> Atom -> CInt -> Atom -> Time -> IO () Source #

setClientMessageEvent' :: XEventPtr -> Window -> Atom -> CInt -> [CInt] -> IO () Source #

setConfigureEvent :: XEventPtr -> Window -> Window -> CInt -> CInt -> CInt -> CInt -> CInt -> Window -> Bool -> IO () Source #

setKeyEvent :: XEventPtr -> Window -> Window -> Window -> KeyMask -> KeyCode -> Bool -> IO () Source #

refreshKeyboardMapping :: Event -> IO () Source #

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

rawGetWindowProperty :: Storable a => Int -> Display -> Atom -> Window -> IO (Maybe [a]) Source #

getWindowProperty8 :: Display -> Atom -> Window -> IO (Maybe [CChar]) Source #

getWindowProperty16 :: Display -> Atom -> Window -> IO (Maybe [CShort]) Source #

getWindowProperty32 :: Display -> Atom -> Window -> IO (Maybe [CLong]) Source #

changeProperty8 :: Display -> Window -> Atom -> Atom -> CInt -> [CChar] -> IO () Source #

changeProperty16 :: Display -> Window -> Atom -> Atom -> CInt -> [CShort] -> IO () Source #

changeProperty32 :: Display -> Window -> Atom -> Atom -> CInt -> [CLong] -> IO () Source #

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.

getCommand :: Display -> Window -> IO [String] Source #

xFree :: Ptr a -> IO CInt Source #