FULE-0.3.1: Functional UI Layout Engine
Copyright(c) Paul Schnapp 2023
LicenseBSD3
MaintainerPaul Schnapp <paul.schnapp@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

FULE.LayoutOp

Description

Operations for constructing a LayoutDesign.

Synopsis

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.

addGuideConstraintToLayout :: Monad m => GuideConstraint -> LayoutOp k m () Source #

Add a Guide constraint to the LayoutDesign.

nextRenderGroup :: Monad m => LayoutOp k m Int Source #

Get the next available render group from the LayoutOp state and advance to the next one internally.