taffybar-4.0.2: A desktop bar similar to xmobar, but with more GUI

Safe Haskell | Safe-Inferred
Language | Haskell2010

System.Taffybar.WindowIcon

Synopsis

- type ColorRGBA = Word32
- pixelsARGBToBytesABGR :: (Storable a, Bits a, Num a, Integral a) => Ptr a -> Int -> IO (Ptr Word8)
- selectEWMHIcon :: Int32 -> [EWMHIcon] -> Maybe EWMHIcon
- getPixbufFromEWMHIcons :: Int32 -> [EWMHIcon] -> IO (Maybe Pixbuf)
- pixBufFromEWMHIcon :: EWMHIcon -> IO Pixbuf
- getIconPixBufFromEWMH :: Int32 -> X11Window -> X11Property (Maybe Pixbuf)
- pixBufFromColor :: MonadIO m => Int32 -> Word32 -> m Pixbuf
- getDirectoryEntryByClass :: String -> TaffyIO (Maybe DesktopEntry)
- getWindowIconForAllClasses :: Monad m => (p -> String -> m (Maybe a)) -> p -> String -> m (Maybe a)
- getWindowIconFromDesktopEntryByClasses :: Int32 -> String -> TaffyIO (Maybe Pixbuf)
- getWindowIconFromClasses :: Int32 -> String -> IO (Maybe Pixbuf)
- getPixBufFromChromeData :: X11Window -> TaffyIO (Maybe Pixbuf)

# Documentation

type ColorRGBA = Word32 Source #

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.

selectEWMHIcon :: Int32 -> [EWMHIcon] -> Maybe EWMHIcon Source #

getPixbufFromEWMHIcons :: Int32 -> [EWMHIcon] -> IO (Maybe Pixbuf) Source #

pixBufFromEWMHIcon :: EWMHIcon -> IO Pixbuf Source #

Create a pixbuf from the pixel data in an EWMHIcon.

getIconPixBufFromEWMH :: Int32 -> X11Window -> X11Property (Maybe Pixbuf) Source #

pixBufFromColor :: MonadIO m => Int32 -> Word32 -> m Pixbuf Source #

Create a pixbuf with the indicated RGBA color.

getDirectoryEntryByClass :: String -> TaffyIO (Maybe DesktopEntry) Source #

getWindowIconForAllClasses :: Monad m => (p -> String -> m (Maybe a)) -> p -> String -> m (Maybe a) Source #

getWindowIconFromDesktopEntryByClasses :: Int32 -> String -> TaffyIO (Maybe Pixbuf) Source #

getWindowIconFromClasses :: Int32 -> String -> IO (Maybe Pixbuf) Source #

getPixBufFromChromeData :: X11Window -> TaffyIO (Maybe Pixbuf) Source #