Copyright | (c) 2017 Cristian Adrián Ontivero |
---|---|
License | BSD3 |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
CSS Dimension data types: <length> (distance), <angle>, <duration>, <frequency>, and <resolution>. Provides conversion of absolute dimensions into other equivalent dimensions.
- data Length
- data LengthUnit
- data Angle
- data AngleUnit
- data Duration = Duration Number DurationUnit
- data DurationUnit
- data Frequency = Frequency Number FrequencyUnit
- data FrequencyUnit
- data Resolution = Resolution Number ResolutionUnit
- data ResolutionUnit
- toInches :: Number -> LengthUnit -> Number
- toPixels :: Number -> LengthUnit -> Number
- toRadians :: Number -> AngleUnit -> Number
- isRelative :: LengthUnit -> Bool
- isRelativeLength :: Length -> Bool
- isZeroLen :: Length -> Bool
- isZeroAngle :: Angle -> Bool
Documentation
The <length> CSS data type
data LengthUnit Source #
The <angle> CSS data type
The <duration> CSS data type
data DurationUnit Source #
The <frequency> CSS data type
data FrequencyUnit Source #
data Resolution Source #
The <resolution> CSS data type
data ResolutionUnit Source #
isRelative :: LengthUnit -> Bool Source #
isRelativeLength :: Length -> Bool Source #
isZeroAngle :: Angle -> Bool Source #