Maintainer | diagrams-discuss@googlegroups.com |
---|---|
Safe Haskell | Safe-Infered |
Implementation of the diagrams Cairo backend. This module exports the internal helper functions, for usage elsewhere.
- data Cairo = Cairo
- data OutputType
- type RenderM a = StateT () Render a
- save :: RenderM ()
- restore :: RenderM ()
- renderC :: (Renderable a Cairo, V a ~ R2) => a -> RenderM ()
- cairoMiscStyle :: Style v -> RenderM ()
- fromFontSlant :: FontSlant -> FontSlant
- fromFontWeight :: FontWeight -> FontWeight
- cairoStrokeStyle :: Style v -> Render ()
- setSource :: Color c => c -> Style v -> Render ()
- cairoTransf :: T2 -> Render ()
- fromLineCap :: LineCap -> LineCap
- fromLineJoin :: LineJoin -> LineJoin
- fromFillRule :: FillRule -> FillRule
Documentation
This data declaration is simply used as a token to distinguish this rendering engine.
data OutputType Source
Output types supported by cairo, including four different file types (PNG, PS, PDF, SVG) as well as Gtk windows.
forall dw . DrawableClass dw => GTK | Output directly to a Gtk window. See Diagrams.Backends.Cairo.Gtk. |
PNG | Portable Network Graphics output. |
PS | PostScript output |
Portable Document Format output. | |
SVG | Scalable Vector Graphics output. |
cairoMiscStyle :: Style v -> RenderM ()Source
cairoStrokeStyle :: Style v -> Render ()Source
cairoTransf :: T2 -> Render ()Source
fromLineCap :: LineCap -> LineCapSource