Versions in this module Expand all Collapse all v0 v0.0.0 May 10, 2021 Changes in this version + type Metric struct + PxPerDp float32 + PxPerSp float32 + func (c Metric) Px(v Value) int + type Unit uint8 + const UnitDp + const UnitPx + const UnitSp + func (u Unit) String() string + type Value struct + U Unit + V float32 + func Add(c Metric, values ...Value) Value + func Dp(v float32) Value + func Max(c Metric, values ...Value) Value + func Px(v float32) Value + func Sp(v float32) Value + func (v Value) Scale(s float32) Value + func (v Value) String() string