-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Cairo backend for Charts. -- -- Cairo backend for Charts. @package Chart-cairo @version 1.0 -- | The backend to render charts with cairo. module Graphics.Rendering.Chart.Backend.Cairo data CairoBackend CairoPNG :: CairoBackend CairoSVG :: CairoBackend CairoPS :: CairoBackend CairoPDF :: CairoBackend -- | Run this backends renderer. runBackend :: CEnv -> ChartBackend a -> Render a renderToFile :: ChartBackend a -> CairoBackend -> Int -> Int -> FilePath -> IO () -- | Produce a environment with no transformation and clipping. It will use -- the default styles. defaultEnv :: AlignmentFns -> CEnv -- | Output the given renderable to a PNG file of the specifed size (in -- pixels), to the specified file. renderableToPNGFile :: Renderable a -> Int -> Int -> FilePath -> IO (PickFn a) -- | Output the given renderable to a PDF file of the specifed size (in -- points), to the specified file. renderableToPDFFile :: Renderable a -> Int -> Int -> FilePath -> IO () -- | Output the given renderable to a postscript file of the specifed size -- (in points), to the specified file. renderableToPSFile :: Renderable a -> Int -> Int -> FilePath -> IO () -- | Output the given renderable to an SVG file of the specifed size (in -- points), to the specified file. renderableToSVGFile :: Renderable a -> Int -> Int -> FilePath -> IO () -- | Generate a PDF for the sparkline, using its natural size. sparkLineToPDF :: FilePath -> SparkLine -> IO () -- | Generate a PNG for the sparkline, using its natural size. sparkLineToPNG :: FilePath -> SparkLine -> IO (PickFn ()) instance PlotPNGType (IO a) instance PlotPSType (IO a) instance PlotPDFType (IO a)