Portability | unportable |
---|---|
Stability | unstable |
Maintainer | jao@gnu.org |
Safe Haskell | None |
XUtil
Description
- data XFont
- initFont :: Display -> String -> IO XFont
- initCoreFont :: Display -> String -> IO FontStruct
- initUtf8Font :: Display -> String -> IO FontSet
- textExtents :: XFont -> String -> IO (Int32, Int32)
- textWidth :: Display -> XFont -> String -> IO Int
- printString :: Display -> Drawable -> XFont -> GC -> String -> String -> Position -> Position -> String -> IO ()
- newWindow :: Display -> Screen -> Window -> Rectangle -> Bool -> IO Window
- nextEvent' :: Display -> XEventPtr -> IO ()
- readFileSafe :: FilePath -> IO String
- hGetLineSafe :: Handle -> IO String
- io :: MonadIO m => IO a -> m a
- fi :: (Integral a, Num b) => a -> b
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)
printString :: Display -> Drawable -> XFont -> GC -> String -> String -> Position -> Position -> String -> 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
fi :: (Integral a, Num b) => a -> b
Short-hand for fromIntegral