| Copyright | (c) Ivan A. Malison |
|---|---|
| License | BSD3-style (see LICENSE) |
| Maintainer | Ivan A. Malison |
| Stability | unstable |
| Portability | unportable |
| Safe Haskell | None |
| Language | Haskell2010 |
System.Taffybar.EWMHPixbuf
Description
Documentation
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 Word8) Source #
Convert a C array of integer pixels in the ARGB format to the ABGR format. Returns an unmanged Ptr that points to a block of memory that must be freed manually.
pixBufFromColor :: Int32 -> ColorRGBA -> IO Pixbuf Source #
Create a pixbuf with the indicated RGBA color.
pixBufFromFile :: FilePath -> IO Pixbuf Source #
Create a pixbuf from a file and scale it to be square.