Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | stephen.tetley@gmail.com |
ConnImage and ConnGraphic types - these are functional types from the DrawingContext plus start point and end point to a graphic primitive.
- data ConnectorImage u a
- type ConnectorGraphic u = ConnectorImage u (UNil u)
- type DConnectorImage a = ConnectorImage Double a
- type DConnectorGraphic = ConnectorGraphic Double
- data ConnectorQuery u a
- runConnectorImage :: InterpretUnit u => ConnectorImage u a -> DrawingContext -> Point2 u -> Point2 u -> PrimResult u a
- runConnectorQuery :: InterpretUnit u => ConnectorQuery u a -> DrawingContext -> Point2 u -> Point2 u -> a
- connect :: InterpretUnit u => Point2 u -> Point2 u -> ConnectorImage u a -> Image u a
- stripConnectorImage :: ConnectorImage u a -> ConnectorQuery u a
- liftConnectorQuery :: ConnectorQuery u a -> ConnectorImage u a
- promoteConn :: InterpretUnit u => (Point2 u -> Point2 u -> Image u a) -> ConnectorImage u a
- applyConn :: InterpretUnit u => ConnectorImage u a -> Point2 u -> Point2 u -> Image u a
- qpromoteConn :: InterpretUnit u => (Point2 u -> Point2 u -> Query u a) -> ConnectorQuery u a
- qapplyConn :: InterpretUnit u => ConnectorQuery u a -> Point2 u -> Point2 u -> Query u a
- emptyConnectorImage :: Monoid a => ConnectorImage u a
Documentation
data ConnectorImage u a Source
ConnectorImage - function from DrawingContext and start and end points to a polymorphic answer and a graphic primitive.
Decorate ConnectorImage | |
UConvert ConnectorImage | |
Monad (ConnectorImage u) | |
Functor (ConnectorImage u) | |
Applicative (ConnectorImage u) | |
DrawingCtxM (ConnectorImage u) | |
Monoid a => Monoid (ConnectorImage u a) |
type ConnectorGraphic u = ConnectorImage u (UNil u)Source
type DConnectorImage a = ConnectorImage Double aSource
Type specialized version of ConnectorImage
.
type DConnectorGraphic = ConnectorGraphic DoubleSource
Type specialized version of ConnectorGraphic
.
data ConnectorQuery u a Source
Monad (ConnectorQuery u) | |
Functor (ConnectorQuery u) | |
Applicative (ConnectorQuery u) | |
DrawingCtxM (ConnectorQuery u) | |
Monoid a => Monoid (ConnectorQuery u a) |
runConnectorImage :: InterpretUnit u => ConnectorImage u a -> DrawingContext -> Point2 u -> Point2 u -> PrimResult u aSource
runConnectorQuery :: InterpretUnit u => ConnectorQuery u a -> DrawingContext -> Point2 u -> Point2 u -> aSource
connect :: InterpretUnit u => Point2 u -> Point2 u -> ConnectorImage u a -> Image u aSource
stripConnectorImage :: ConnectorImage u a -> ConnectorQuery u aSource
liftConnectorQuery :: ConnectorQuery u a -> ConnectorImage u aSource
promoteConn :: InterpretUnit u => (Point2 u -> Point2 u -> Image u a) -> ConnectorImage u aSource
applyConn :: InterpretUnit u => ConnectorImage u a -> Point2 u -> Point2 u -> Image u aSource
qpromoteConn :: InterpretUnit u => (Point2 u -> Point2 u -> Query u a) -> ConnectorQuery u aSource
qapplyConn :: InterpretUnit u => ConnectorQuery u a -> Point2 u -> Point2 u -> Query u aSource
emptyConnectorImage :: Monoid a => ConnectorImage u aSource
Having empty at the specific ConnectorImage
type is useful.