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
  • DeriveDataTypeable
  • DeriveFunctor
  • TypeSynonymInstances
  • FlexibleInstances
  • GeneralizedNewtypeDeriving

Diagrams.Backend.HsQML.DiagramObj.Type

Description

The DiagramObj type, together with a corresponding DefaultClass instance that defines the necessary methods and signals for use by QML.

Synopsis

Documentation

newtype 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.

Constructors

DiagramObj 

Fields

reload :: ObjRef (DiagramObj ()) -> IO a

Function called on every repaint of the QML. The ObjRef is necessary to fire signals into QML.