Copyright | (c) Marcin Mrotek, 2015 |
---|---|
License | BSD-3 |
Maintainer | marcin.jan.mrotek@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
The end-user API.
- renderHsQML :: SizeSpec V2 Double -> Diagram HsQML -> IO (ObjRef (DiagramObj ()))
- data SizeSpec v n :: (* -> *) -> * -> *
- mkSizeSpec :: (Functor v, Num n) => v (Maybe n) -> SizeSpec v n
- data HsQML = HsQML
- data family Options b v n
- type B = HsQML
- data DiagramObj a
Documentation
renderHsQML :: SizeSpec V2 Double -> Diagram HsQML -> IO (ObjRef (DiagramObj ())) Source
Render a diagram to a QML object that controls a Canvas.
data SizeSpec v n :: (* -> *) -> * -> *
mkSizeSpec :: (Functor v, Num n) => v (Maybe n) -> SizeSpec v n
Backend HsQML V2 Double Source | |
Renderable (Text Double) HsQML Source | |
Renderable (Trail V2 Double) HsQML Source | |
Renderable (Path V2 Double) HsQML Source | |
type V HsQML = V2 Source | |
type N HsQML = Double Source | |
type Result HsQML V2 Double = IO (ObjRef (DiagramObj ())) Source | |
data Render HsQML V2 Double = HsQMLRender {
| |
data Options HsQML V2 Double = HsQMLOptions {} Source |
data family Options b v n
data DiagramObj a Source
The type to which the parts of a diagram are rendered.
The end result of rendering is always a DiagramObj ().
The monoid instance sequences actions on the same argument, with noop as identity.
As DiagramObj is a wrapper over a function to IO, Functor
, Applicative
, Monad
, and MonadIO
instances are defined in an expected way.
Monad DiagramObj Source | |
Functor DiagramObj Source | |
Applicative DiagramObj Source | |
MonadIO DiagramObj Source | |
Monoid a => Monoid (DiagramObj a) Source | |
DefaultClass (DiagramObj ()) Source |