Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Sizes a block element & positions their children. Taking into account size bounds.
Synopsis
- flowMinWidth :: Double -> PaddedBox a Length -> [PaddedBox b Double] -> Double
- flowNatWidth :: Double -> PaddedBox a Length -> [PaddedBox b Double] -> Double
- flowMaxWidth :: PaddedBox a Double -> PaddedBox b Length -> Double
- flowWidth :: PaddedBox a Double -> PaddedBox b Length -> Double
- flowNatHeight :: Double -> PaddedBox Length Double -> [PaddedBox Double Double] -> Double
- flowMinHeight :: Double -> PaddedBox Length Double -> Double
- flowMaxHeight :: Double -> PaddedBox Length Double -> Double
- flowHeight :: PaddedBox Double Double -> PaddedBox Length Double -> Double
- positionFlow :: [PaddedBox Double Double] -> [Size Double Double]
- layoutFlow :: PaddedBox Double Double -> PaddedBox Length Length -> [PaddedBox Length Double] -> (PaddedBox Double Double, [(Size Double Double, PaddedBox Double Double)])
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.