| Copyright | (c) 2015 Christopher Chalmers |
|---|---|
| License | BSD-style (see LICENSE) |
| Maintainer | diagrams-discuss@googlegroups.com |
| Safe Haskell | None |
| Language | Haskell2010 |
Diagrams.Backend.PGF.Render
Description
This is an internal module exposing internals for rendering a
diagram. This is for advanced use only. PGF
has enough for general use.
Synopsis
- data PGF = PGF
- data family Options b (v :: Type -> Type) n :: Type
- data family Render b (v :: Type -> Type) n :: Type
- surface :: Lens' (Options PGF V2 n) Surface
- sizeSpec :: Lens' (Options PGF V2 n) (SizeSpec V2 n)
- readable :: Lens' (Options PGF V2 n) Bool
- standalone :: Lens' (Options PGF V2 n) Bool
- escapeString :: String -> String
Documentation
This data declaration is simply used as a token to distinguish this rendering engine.
Constructors
| PGF |
Instances
data family Options b (v :: Type -> Type) n :: Type #
Backend-specific rendering options.
data family Render b (v :: Type -> Type) n :: Type #
An intermediate representation used for rendering primitives.
(Typically, this will be some sort of monad, but it need not
be.) The Renderable class guarantees that a backend will be
able to convert primitives into this type; how these rendered
primitives are combined into an ultimate Result is completely
up to the backend.
Instances
| Semigroup (Render NullBackend v n) | |
Defined in Diagrams.Core.Types Methods (<>) :: Render NullBackend v n -> Render NullBackend v n -> Render NullBackend v n # sconcat :: NonEmpty (Render NullBackend v n) -> Render NullBackend v n # stimes :: Integral b => b -> Render NullBackend v n -> Render NullBackend v n # | |
| Semigroup (Render PGF V2 n) Source # | |
| Monoid (Render NullBackend v n) | |
Defined in Diagrams.Core.Types Methods mempty :: Render NullBackend v n # mappend :: Render NullBackend v n -> Render NullBackend v n -> Render NullBackend v n # mconcat :: [Render NullBackend v n] -> Render NullBackend v n # | |
| Monoid (Render PGF V2 n) Source # | |
| data Render NullBackend v n | |
Defined in Diagrams.Core.Types | |
| newtype Render PGF V2 n Source # | |
Lenses
readable :: Lens' (Options PGF V2 n) Bool Source #
Lens onto whether the lines of the TeX output are indented.
standalone :: Lens' (Options PGF V2 n) Bool Source #
Lens onto whether a standalone TeX document should be produced.
Utilities
escapeString :: String -> String Source #
Escapes some common characters in a string. Note that this does not mean the string can't create an error; it merely escapes common characters.