xmobar

Portabilityunportable
Stabilityunstable
Maintainerjao@gnu.org
Safe HaskellNone

XUtil

Description

 

Synopsis

Documentation

data XFont

initFont :: Display -> String -> IO XFont

When initFont gets a font name that starts with 'xft:' it switchs to the Xft backend Example: 'xft:Sans-10'

initCoreFont :: Display -> String -> IO FontStruct

Given a fontname returns the font structure. If the font name is not valid the default font will be loaded and returned.

initUtf8Font :: Display -> String -> IO FontSet

Given a fontname returns the font structure. If the font name is not valid the default font will be loaded and returned.

textExtents :: XFont -> String -> IO (Int32, Int32)

textWidth :: Display -> XFont -> String -> IO Int

printString :: Display -> Drawable -> XFont -> GC -> String -> String -> Position -> Position -> String -> Int -> IO ()

newWindow :: Display -> Screen -> Window -> Rectangle -> Bool -> IO Window

Creates a window with the attribute override_redirect set to True. Windows Managers should not touch this kind of windows.

nextEvent' :: Display -> XEventPtr -> IO ()

A version of nextEvent that does not block in foreign calls.

readFileSafe :: FilePath -> IO String

hGetLineSafe :: Handle -> IO String

io :: MonadIO m => IO a -> m a

fi :: (Integral a, Num b) => a -> b

Short-hand for fromIntegral