Copyright | (c) Paul Schnapp 2023 |
---|---|
License | BSD3 |
Maintainer | Paul Schnapp <paul.schnapp@gmail.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Operations for constructing a LayoutDesign
.
Synopsis
- type LayoutOp k m = StateT LayoutOpState (WriterT [ComponentInfo k] m)
- data LayoutOpState
- runLayoutOp :: Monad m => LayoutOp k m () -> m (LayoutDesign, [ComponentInfo k])
- addGuideToLayout :: Monad m => GuideSpecification -> LayoutOp k m GuideID
- addGuideConstraintToLayout :: Monad m => GuideConstraint -> LayoutOp k m ()
- nextRenderGroup :: Monad m => LayoutOp k m Int
Documentation
type LayoutOp k m = StateT LayoutOpState (WriterT [ComponentInfo k] m) Source #
An operation that will produce a LayoutDesign
and a list of
components of type k
in the monad m
.
data LayoutOpState Source #
Internal.
runLayoutOp :: Monad m => LayoutOp k m () -> m (LayoutDesign, [ComponentInfo k]) Source #
Run a LayoutOp
to create a LayoutDesign
and a list of
components of type k
.
addGuideToLayout :: Monad m => GuideSpecification -> LayoutOp k m GuideID Source #
Add a Guide to the LayoutDesign
.
addGuideConstraintToLayout :: Monad m => GuideConstraint -> LayoutOp k m () Source #
Add a Guide constraint to the LayoutDesign
.