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 Distance = Distance Number DistanceUnit
- data DistanceUnit
- data Angle = Angle Number AngleUnit
- 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 -> DistanceUnit -> Number
- toPixels :: Number -> DistanceUnit -> Number
- toRadians :: Number -> AngleUnit -> Number
- isRelative :: DistanceUnit -> Bool
Documentation
The <length> CSS data type
data DistanceUnit 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 :: DistanceUnit -> Bool Source #