taffybar-3.2.2: A desktop bar similar to xmobar, but with more GUI
Copyright(c) Ivan A. Malison
LicenseBSD3-style (see LICENSE)
MaintainerIvan A. Malison
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

System.Taffybar.Information.SafeX11

Description

 
Synopsis

Documentation

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

getErrorEvent :: XErrorEventPtr -> IO ErrorEvent Source #

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

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

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

changeProperty8 :: Display -> Window -> Atom -> Atom -> CInt -> [CChar] -> IO () 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.

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

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

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

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

Run an action with the server

eventName :: Event -> String Source #

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

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

interface to the X11 library function XChangeWindowAttributes().

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

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

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

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

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

A binding to XMapRaised.

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

data Event Source #

Constructors

AnyEvent 
ConfigureRequestEvent 
ConfigureEvent 
MapRequestEvent 
KeyEvent 
ButtonEvent 
MotionEvent 
DestroyWindowEvent 
UnmapEvent 
MapNotifyEvent 
MappingNotifyEvent 
CrossingEvent 
SelectionRequest 
SelectionClear 
PropertyEvent 
ExposeEvent 
ClientMessageEvent 
RRScreenChangeNotifyEvent 
RRNotifyEvent 
RRCrtcChangeNotifyEvent 
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 #

Message Event 
Instance details

Defined in XMonad.Core

newtype FontSet Source #

Constructors

FontSet (Ptr FontSet) 

Instances

Instances details
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

Show FontSet 
Instance details

Defined in Graphics.X11.Xlib.Extras

Methods

showsPrec :: Int -> FontSet -> ShowS #

show :: FontSet -> String #

showList :: [FontSet] -> ShowS #

data ClassHint Source #

Constructors

ClassHint 

Fields

data ErrorEvent Source #

Constructors

ErrorEvent 

Fields

Instances

Instances details
Show ErrorEvent Source # 
Instance details

Defined in System.Taffybar.Information.SafeX11

Methods

showsPrec :: Int -> ErrorEvent -> ShowS #

show :: ErrorEvent -> String #

showList :: [ErrorEvent] -> ShowS #

data IORequest Source #

Constructors

forall a. IORequest 

Fields

logHere :: Priority -> String -> IO () Source #

x11Thread :: ThreadId Source #

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

outParameters7 :: (Storable a, Storable b, Storable c, Storable d, Storable e, Storable f, Storable g) => (IO r -> IO ()) -> (Ptr a -> Ptr b -> Ptr c -> Ptr d -> Ptr e -> Ptr f -> Ptr g -> IO r) -> IO (a, b, c, d, e, f, g) Source #

Orphan instances

Show ErrorEvent Source # 
Instance details

Methods

showsPrec :: Int -> ErrorEvent -> ShowS #

show :: ErrorEvent -> String #

showList :: [ErrorEvent] -> ShowS #