-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Cairo backend for Charts.
--
@package Chart-cairo
@version 1.2.3
-- | The backend to render charts with cairo.
module Graphics.Rendering.Chart.Backend.Cairo
data FileFormat
PNG :: FileFormat
SVG :: FileFormat
PS :: FileFormat
PDF :: FileFormat
data FileOptions
FileOptions :: (Int, Int) -> FileFormat -> FileOptions
_fo_size :: FileOptions -> (Int, Int)
_fo_format :: FileOptions -> FileFormat
-- | Run this backends renderer.
runBackend :: CEnv -> ChartBackend a -> Render a
-- | Generate an image file for the given renderable, at the specified
-- path. Size and format are set through the FileOptions
-- parameter.
renderableToFile :: FileOptions -> Renderable a -> FilePath -> IO (PickFn a)
-- | Produce a environment with no transformation and clipping. It will use
-- the default styles.
defaultEnv :: AlignmentFns -> CEnv
fo_size :: Lens' FileOptions (Int, Int)
fo_format :: Lens' FileOptions FileFormat
-- | Generate an image file for the given drawing instructions, at the
-- specified path. Size and format are set through the FileOptions
-- parameter.
cBackendToFile :: FileOptions -> ChartBackend a -> FilePath -> IO a
-- | Deprecated: use renderableToFile
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.
-- | Deprecated: use renderableToFile
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.
-- | Deprecated: use renderableToFile
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.
-- | Deprecated: use renderableToFile
renderableToSVGFile :: Renderable a -> Int -> Int -> FilePath -> IO ()
-- | Generate a PDF for the sparkline, using its natural size.
-- | Deprecated: use renderableToFile
sparkLineToPDF :: FilePath -> SparkLine -> IO ()
-- | Generate a PNG for the sparkline, using its natural size.
-- | Deprecated: use renderableToFile
sparkLineToPNG :: FilePath -> SparkLine -> IO (PickFn ())
instance Default FileOptions