package
0.0.23
Repository: https://github.com/cybriq/p9.git
Documentation: pkg.go.dev

# Functions

Add a list of Values.
Dp returns the Value for v device independent pixels.
Max returns the maximum of a list of Values.
Px returns the Value for v device pixels.
Sp returns the Value for v scaled dps.

# Constants

UnitDp represents device independent pixels.
UnitPx represent device pixels in the resolution of the underlying display.
UnitSp is like UnitDp but for font sizes.

# Structs

Metric converts Values to device-dependent pixels, px.
Value is a value with a unit.

# Type aliases

Unit represents a unit for a Value.