Safe Haskell | None |
---|---|
Language | Haskell98 |
The backend to render charts with cairo.
- data FileFormat
- data FileOptions = FileOptions {
- _fo_size :: (Int, Int)
- _fo_format :: FileFormat
- runBackend :: CEnv -> ChartBackend a -> Render a
- renderableToFile :: FileOptions -> FilePath -> Renderable a -> IO (PickFn a)
- toFile :: (Default r, ToRenderable r) => FileOptions -> FilePath -> EC r () -> IO ()
- defaultEnv :: AlignmentFns -> CEnv
- fo_size :: Lens' FileOptions (Int, Int)
- fo_format :: Lens' FileOptions FileFormat
- cBackendToFile :: FileOptions -> ChartBackend a -> FilePath -> IO a
Documentation
data FileOptions Source
FileOptions | |
|
:: CEnv | Environment to start rendering with. |
-> ChartBackend a | Chart render code. |
-> Render a | Cairo render code. |
Run this backends renderer.
renderableToFile :: FileOptions -> FilePath -> Renderable a -> IO (PickFn a) Source
Generate an image file for the given renderable, at the specified path. Size and
format are set through the FileOptions
parameter.
toFile :: (Default r, ToRenderable r) => FileOptions -> FilePath -> EC r () -> IO () Source
Generate an image file from from the state content of an EC
computation. The state may have any type that is an instance of
ToRenderable
defaultEnv :: AlignmentFns -> CEnv Source
Produce a environment with no transformation and clipping. It will use the default styles.
cBackendToFile :: FileOptions -> ChartBackend a -> FilePath -> IO a Source
Generate an image file for the given drawing instructions, at the specified path. Size and
format are set through the FileOptions
parameter.