diagrams-hsqml-0.0.0.2: HsQML (Qt5) backend for Diagrams

Copyright(c) Marcin Mrotek, 2015
LicenseBSD-3
Maintainermarcin.jan.mrotek@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010
Extensions
  • MonoLocalBinds
  • TypeFamilies
  • StandaloneDeriving
  • DeriveDataTypeable
  • TypeSynonymInstances
  • FlexibleInstances
  • MultiParamTypeClasses
  • KindSignatures
  • ExplicitNamespaces

Diagrams.Backend.HsQML.Render

Description

Interface to the Diagrams backend machinery.

Synopsis

Documentation

sizeSpec :: Functor f => (SizeSpec2D -> f SizeSpec2D) -> Options HsQML R2 -> f (Options HsQML R2) Source

A lens from HsQML backend options to a SizeSpec2D.

 sizeSpec :: Lens' (Options HsQML R2) SizeSpec2D

addAnnotation :: String -> DiagramObj () Source

Currently not supported, returns mempty.

renderHsQML :: Options HsQML R2 -> RTree HsQML R2 Annotation -> Render HsQML R2 Source

Render a RTree to an intermediate representation.

renderTrail :: P2 -> Trail R2 -> DiagramObj () Source

Render a trail, closing loops.

renderSeg :: P2 -> Segment Closed R2 -> DiagramObj () Source

Render a closed segment beginning on a given point.

closeSeg Source

Arguments

:: Segment Open R2

The last segment of a loop.

-> P2

First end.

-> P2

Second end.

-> DiagramObj () 

Close a loop using the last (open) segment and two endpoints.