//
pkg.gl
Category
github.com/cybriq/p9
pkg
gel
gio
unit
package
0.0.23
Repository:
https://github.com/cybriq/p9.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
9
Files
108 SLOC
#
Functions
Add
Add a list of Values.
Dp
Dp returns the Value for v device independent pixels.
Max
Max returns the maximum of a list of Values.
Px
Px returns the Value for v device pixels.
Sp
Sp returns the Value for v scaled dps.
#
Constants
UnitDp
UnitDp represents device independent pixels.
UnitPx
UnitPx represent device pixels in the resolution of the underlying display.
UnitSp
UnitSp is like UnitDp but for font sizes.
#
Structs
Metric
Metric converts Values to device-dependent pixels, px.
Value
Value is a value with a unit.
#
Type aliases
Unit
Unit represents a unit for a Value.