diagrams-cairo-0.5: Cairo backend for diagrams drawing EDSL

Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellSafe-Infered

Diagrams.Backend.Cairo.Internal

Description

Implementation of the diagrams Cairo backend. This module exports the internal helper functions, for usage elsewhere.

Synopsis

Documentation

data Cairo Source

This data declaration is simply used as a token to distinguish this rendering engine.

Constructors

Cairo 

data OutputType Source

Output types supported by cairo, including four different file types (PNG, PS, PDF, SVG) as well as Gtk windows.

Constructors

forall dw . DrawableClass dw => GTK

Output directly to a Gtk window. See Diagrams.Backends.Cairo.Gtk.

Fields

gtkWindow :: dw

The window on which to draw.

gtkBypass :: Bool

Should the adjustDia step be bypassed during rendering?

PNG

Portable Network Graphics output.

PS

PostScript output

PDF

Portable Document Format output.

SVG

Scalable Vector Graphics output.

setSource :: Color c => c -> Style v -> Render ()Source