-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | GI friendly Binding to the Cairo library.
--   
--   This library contains glue code used to interconnect Haskell GI and
--   Cairo
@package gi-cairo-connector
@version 0.1.1

-- | This library contains glue code to interconnect Haskell GI, i.e. the
--   gi-cairo library and gi-cairo-render, i.e. the hand written cairo
--   bindings for Haskell.
module GI.Cairo.Render.Connector

-- | This function is used to call a function in the Render monad
--   from the draw function of GTK+. It takes a Context (as it
--   appears in gi-cairo) and a Render action (as it appears
--   in gi-cairo-render) and renders the Render context inside the
--   given context.
renderWithContext :: MonadIO m => Render a -> Context -> m a

-- | This function is used to call back to functions of GI.Pango or
--   GI.PangoCairo or other Haskell GI libraries from inside the
--   Render action. Example:
--   
--   
--   draw :: Cairo.Render () 
--   draw = do ...
--             context <- getContext
--             somePangoFunction context
--   
getContext :: Render Context

-- | This function is used to "lift" functions of GI.Pango or GI.PangoCairo
--   to the Render monad. Example:
--   
--   
--   draw :: Cairo.Render () 
--   draw = do ...
--             toRender somePangoFunction
--   
toRender :: (Context -> IO a) -> Render a
