| 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.TransparentWindow
Description
Make a window transparent. Approach adapted from python code from https://stackoverflow.com/questions/3908565/how-to-make-gtk-window-background-transparent/33294727#33294727
- renderWithContext :: Context -> Render () -> IO ()
- makeWindowTransparent :: MonadIO m => Window -> m ()
- transparentDraw :: WidgetDrawCallback
Documentation
renderWithContext :: Context -> Render () -> IO () Source #
This function bridges gi-cairo with the hand-written cairo package. It
takes a Context (as it appears in gi-cairo), and a Render action
(as in the cairo lib), and renders the Render action into the given
context.
makeWindowTransparent :: MonadIO m => Window -> m () Source #
transparentDraw :: WidgetDrawCallback Source #