Copyright | (c) Ivan A. Malison |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Ivan A. Malison |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
- type ColorRGBA = (Word8, Word8, Word8, Word8)
- scalePixbuf :: Int -> Pixbuf -> IO Pixbuf
- pixBufFromEWMHIcon :: EWMHIcon -> IO Pixbuf
- pixelsARGBToBytesABGR :: (Storable a, Bits a, Num a, Integral a) => Ptr a -> Int -> IO (Ptr CUChar)
- pixBufFromColor :: Int -> ColorRGBA -> IO Pixbuf
- pixBufFromFile :: Int -> FilePath -> IO Pixbuf
- selectEWMHIcon :: Int -> [EWMHIcon] -> EWMHIcon
Documentation
scalePixbuf :: Int -> Pixbuf -> IO Pixbuf Source #
Take the passed in pixbuf and ensure its scaled square.
pixBufFromEWMHIcon :: EWMHIcon -> IO Pixbuf Source #
Create a pixbuf from the pixel data in an EWMHIcon.
pixelsARGBToBytesABGR :: (Storable a, Bits a, Num a, Integral a) => Ptr a -> Int -> IO (Ptr CUChar) Source #
Convert a C array of integer pixels in the ARGB format to the ABGR format.
pixBufFromColor :: Int -> ColorRGBA -> IO Pixbuf Source #
Create a pixbuf with the indicated RGBA color.