Portability | unportable |
---|---|
Stability | unstable |
Maintainer | jao@gnu.org |
Safe Haskell | None |
MinXft
Description
Created: Mon Sep 10, 2012 18:12
Pared down Xft library, based on Graphics.X11.Xft and providing explicit management of XftColors, so that they can be cached.
Most of the code is lifted from Clemens's.
- data AXftColor
- newtype AXftDraw = AXftDraw (Ptr AXftDraw)
- data AXftFont
- mallocAXftColor :: Display -> Visual -> Colormap -> String -> IO AXftColor
- freeAXftColor :: Display -> Visual -> Colormap -> AXftColor -> IO ()
- withAXftDraw :: Display -> Drawable -> Visual -> Colormap -> (AXftDraw -> IO a) -> IO a
- drawXftString :: (Integral a1, Integral a) => AXftDraw -> AXftColor -> AXftFont -> a -> a1 -> String -> IO ()
- drawXftString' :: AXftDraw -> AXftColor -> [AXftFont] -> Integer -> Integer -> String -> IO ()
- drawBackground :: Display -> Drawable -> String -> Int -> Rectangle -> IO ()
- drawXftRect :: (Integral a3, Integral a2, Integral a1, Integral a) => AXftDraw -> AXftColor -> a -> a1 -> a2 -> a3 -> IO ()
- openAXftFont :: Display -> Screen -> String -> IO AXftFont
- closeAXftFont :: Display -> AXftFont -> IO ()
- xftTxtExtents :: Display -> AXftFont -> String -> IO XGlyphInfo
- xftTxtExtents' :: Display -> [AXftFont] -> String -> IO XGlyphInfo
- xft_ascent :: AXftFont -> IO Int
- xft_ascent' :: [AXftFont] -> IO Int
- xft_descent :: AXftFont -> IO Int
- xft_descent' :: [AXftFont] -> IO Int
- xft_height :: AXftFont -> IO Int
- xft_height' :: [AXftFont] -> IO Int
Documentation
data AXftColor
data AXftFont
mallocAXftColor :: Display -> Visual -> Colormap -> String -> IO AXftColor
freeAXftColor :: Display -> Visual -> Colormap -> AXftColor -> IO ()
withAXftDraw :: Display -> Drawable -> Visual -> Colormap -> (AXftDraw -> IO a) -> IO a
drawXftString :: (Integral a1, Integral a) => AXftDraw -> AXftColor -> AXftFont -> a -> a1 -> String -> IO ()
drawXftString' :: AXftDraw -> AXftColor -> [AXftFont] -> Integer -> Integer -> String -> IO ()
drawBackground :: Display -> Drawable -> String -> Int -> Rectangle -> IO ()
Drawing the background to a pixmap and taking into account transparency
drawXftRect :: (Integral a3, Integral a2, Integral a1, Integral a) => AXftDraw -> AXftColor -> a -> a1 -> a2 -> a3 -> IO ()
openAXftFont :: Display -> Screen -> String -> IO AXftFont
closeAXftFont :: Display -> AXftFont -> IO ()
xftTxtExtents :: Display -> AXftFont -> String -> IO XGlyphInfo
xftTxtExtents' :: Display -> [AXftFont] -> String -> IO XGlyphInfo
xft_ascent :: AXftFont -> IO Int
xft_ascent' :: [AXftFont] -> IO Int
xft_descent :: AXftFont -> IO Int
xft_descent' :: [AXftFont] -> IO Int
xft_height :: AXftFont -> IO Int
xft_height' :: [AXftFont] -> IO Int