metrics

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: MIT, Unlicense Imports: 1 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DpToPx

func DpToPx(dpr float32, v int) int

Dp converts v to pixels, rounded to the nearest integer value. PXPerDp

func DpToSp

func DpToSp(dpr float32, spr float32, dp int) (sp float32)

DpToSp converts v dp to sp.

func PxToDp

func PxToDp(dpr float32, v int) int

PxToDp converts v px to dp.

func PxToSp

func PxToSp(spr float32, px int) int

PxToSp converts v px to sp.

func SpToDp

func SpToDp(spr float32, dpr float32, sp float32) (dp int)

SpToDp converts v sp to dp.

func SpToPx

func SpToPx(spr float32, sp int) int

Sp converts v to pixels, rounded to the nearest integer value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL