diagrams-hsqml-0.2.0.0: 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 => (SizeSpec V2 Double -> f (SizeSpec V2 Double)) -> Options HsQML V2 Double -> f (Options HsQML V2 Double) Source

A lens from HsQML backend options to a 'SizeSpec V2 Double'.

 sizeSpec :: Lens' (Options HsQML V2) (SizeSpec V2 Double)

addAnnotation :: Annotation -> DiagramObj () Source

Currently not supported, returns mempty.

renderHsQML :: Options HsQML V2 Double -> RTree HsQML V2 Double Annotation -> Render HsQML V2 Double Source

Render a RTree to an intermediate representation.

renderTrail :: P2 Double -> Trail V2 Double -> DiagramObj () Source

Render a trail, closing loops.

renderSeg :: P2 Double -> Segment Closed V2 Double -> DiagramObj () Source

Render a closed segment beginning on a given point.

closeSeg Source

Arguments

:: Segment Open V2 Double

The last segment of a loop.

-> P2 Double

First end.

-> P2 Double

Second end.

-> DiagramObj () 

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