models/dimension_value library
Classes
- DimensionValue
- A value that represents a dimension. This can be a number, a percentage, or a rem value. A percentage is converted to a decimal value between 0 and 1. A rem value is converted to a pixel value based on the base font size (see kBaseFontSize). Px values are converted to a double and returned as is. Last but not least, if the value is a number, it is converted to a double and returned as is. And if the value is not a number 0 is returned.
Constants
- kBaseFontSize → const double