M Graphics/Layout/Arithmetic.hs => Graphics/Layout/Arithmetic.hs +2 -0
@@ 1,4 1,6 @@
{-# LANGUAGE OverloadedStrings #-}
+-- | (Unused) Parses & evaluates calc() expressions.
+-- Implemented using The Shunting Yard Algorithm.
module Graphics.Layout.Arithmetic(Opcode(..), parseCalc, verifyCalc,
evalCalc, mapCalc) where
M Graphics/Layout/Box.hs => Graphics/Layout/Box.hs +2 -0
@@ 1,4 1,6 @@
{-# LANGUAGE RecordWildCards #-}
+-- | Datastructures representing the CSS box model,
+-- & utilities for operating on them.
module Graphics.Layout.Box(Border(..), mapX, mapY,
Size(..), mapSizeX, mapSizeY,
PaddedBox(..), zeroBox, lengthBox, mapX', mapY',
M Graphics/Layout/CSS.hs => Graphics/Layout/CSS.hs +1 -0
@@ 1,4 1,5 @@
{-# LANGUAGE OverloadedStrings #-}
+-- | Parses & desugars CSS properties to general CatTrap datastructures.
module Graphics.Layout.CSS(CSSBox(..), BoxSizing(..), Display(..),
finalizeCSS, finalizeCSS') where
M Graphics/Layout/Flow.hs => Graphics/Layout/Flow.hs +2 -0
@@ 1,3 1,5 @@
+-- | Sizes a block element & positions their children.
+-- Taking into account size bounds.
module Graphics.Layout.Flow(flowMinWidth, flowNatWidth, flowMaxWidth, flowWidth,
flowNatHeight, flowMinHeight, flowMaxHeight, flowHeight,
positionFlow, layoutFlow) where
M Graphics/Layout/Grid.hs => Graphics/Layout/Grid.hs +1 -0
@@ 1,4 1,5 @@
{-# LANGUAGE RecordWildCards, OverloadedStrings #-}
+-- | Sizes grid cells & positions elements to them.
module Graphics.Layout.Grid(Grid(..), Track(..), GridItem(..), GridItem'(..), Alignment(..),
buildTrack, buildGrid, setCellBox, enumerate, gridItemBox, cellSize,
trackMin, trackNat, gridEstWidth, sizeTrackMins, sizeTrackNats, sizeTrackMaxs,
M Graphics/Layout/Inline.hs => Graphics/Layout/Inline.hs +2 -0
@@ 1,4 1,6 @@
{-# LANGUAGE TupleSections #-}
+-- | Sizes inline text & extracts positioned children,
+-- wraps Balkón for the actual logic.
module Graphics.Layout.Inline(inlineMinWidth, inlineMin, inlineNatWidth, inlineHeight,
inlineSize, inlineChildren, layoutSize, layoutChildren,
fragmentSize, fragmentSize', fragmentPos) where