X11-1.10.3: 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 Event #

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 # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

showsPrec :: Int -> Event -> ShowS

show :: Event -> String

showList :: [Event] -> ShowS

data WindowChanges #

Constructors

WindowChanges 

Fields

Instances

Instances details
Storable WindowChanges # 
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 TextProperty #

Constructors

TextProperty 

Fields

Instances

Instances details
Storable TextProperty # 
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 ()

newtype FontSet #

Constructors

FontSet (Ptr FontSet) 

Instances

Instances details
Show FontSet # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

showsPrec :: Int -> FontSet -> ShowS

show :: FontSet -> String

showList :: [FontSet] -> ShowS

Eq FontSet # 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

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

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

Ord FontSet # 
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 SizeHints #

Instances

Instances details
Storable SizeHints # 
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 ()

data ClassHint #

Constructors

ClassHint 

Fields

data WMHints #

Constructors

WMHints 

Instances

Instances details
Storable WMHints # 
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 ()

type XErrorEventPtr = Ptr () #

type CXErrorHandler = Display -> XErrorEventPtr -> IO CInt #

data ErrorEvent #

Constructors

ErrorEvent 

Fields

refreshKeyboardMapping :: Event -> IO () #

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

xRefreshKeyboardMapping :: Ptr () -> IO CInt #

eventTable :: [(EventType, String)] #

eventName :: Event -> String #

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

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

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

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

waIsUnmapped :: CInt #

waIsViewable :: CInt #

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

interface to the X11 library function XChangeWindowAttributes().

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

Run an action with the server

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

wcFreeStringList :: Ptr CWString -> IO () #

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

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

freeStringList :: Ptr CString -> IO () #

freeFontSet :: Display -> FontSet -> IO () #

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

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

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

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

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

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

wcTextEscapement :: FontSet -> String -> Int32 #

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

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

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

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.

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

setSelectionNotify :: XEventPtr -> Window -> Atom -> Atom -> Atom -> Time -> IO () #

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

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

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

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

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

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

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

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

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

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

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

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

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

deleteProperty :: Display -> Window -> Atom -> IO () #

xUnmapWindow :: Display -> Window -> IO CInt #

unmapWindow :: Display -> Window -> IO () #

pMinSizeBit :: Int #

pMaxSizeBit :: Int #

pAspectBit :: Int #

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

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

Set the WM_CLASS property for the given window.

xSetClassHint :: Display -> Window -> Ptr ClassHint -> IO () #

normalState :: Int #

iconicState :: Int #

xGetWMHints :: Display -> Window -> IO (Ptr WMHints) #

xAllocWMHints :: IO (Ptr WMHints) #

isCursorKey :: KeySym -> Bool #

isKeypadKey :: KeySym -> Bool #

isPFKey :: KeySym -> Bool #

xConvertSelection :: Display -> Atom -> Atom -> Atom -> Window -> Time -> IO () #

setErrorHandler :: XErrorHandler -> IO () #

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 #

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

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

A binding to XMapRaised.

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

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

xGetModifierMapping :: Display -> IO (Ptr ()) #

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

xFree :: Ptr a -> IO CInt #