cattrap-0.6.0.0: Lays out boxes according to the CSS Box Model.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Layout.Flow

Description

Sizes a block element & positions their children. Taking into account size bounds.

Synopsis

Documentation

flowMinWidth :: Double -> PaddedBox a Length -> [PaddedBox b Double] -> Double Source #

Compute the minimum width of a block element with children of the given sizes.

flowNatWidth :: Double -> PaddedBox a Length -> [PaddedBox b Double] -> Double Source #

Compute the natural width of a block element with children of the given sizes.

flowMaxWidth :: PaddedBox a Double -> PaddedBox b Length -> Double Source #

Compute the maximum width of a block element inside the given parent size.

flowWidth :: PaddedBox a Double -> PaddedBox b Length -> Double Source #

Compute final block element width based on cached width computations & parent size.

flowNatHeight :: Double -> PaddedBox Length Double -> [PaddedBox Double Double] -> Double Source #

Compute natural block element height at cached width.

flowMinHeight :: Double -> PaddedBox Length Double -> Double Source #

Compute minimum block height at cached width.

flowMaxHeight :: Double -> PaddedBox Length Double -> Double Source #

Compute maximum block height at cached width.

flowHeight :: PaddedBox Double Double -> PaddedBox Length Double -> Double Source #

Compute final block height at cached width.

positionFlow :: [PaddedBox Double Double] -> [Size Double Double] Source #

Compute position of all children relative to this block element.

layoutFlow :: PaddedBox Double Double -> PaddedBox Length Length -> [PaddedBox Length Double] -> (PaddedBox Double Double, [(Size Double Double, PaddedBox Double Double)]) Source #

Compute size given block element in given parent, & position of given children.