Copyright | (c) 2017 Cristian Adrián Ontivero |
---|---|
License | BSD3 |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
CSS Dimension data types: <length>, <angle>, <time>, <frequency>, and <resolution>. Provides conversion of absolute dimensions into other equivalent dimensions.
- data Length
- data LengthUnit
- data Angle
- data AngleUnit
- data Time = Time Number TimeUnit
- data TimeUnit
- 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 <time> CSS data type
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 #