unit

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT, Unlicense Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dp

type Dp float32

type Metric

type Metric struct {
	PxPerDp float32

	PxPerSp float32
}

func (Metric) Dp

func (c Metric) Dp(v Dp) int

func (Metric) DpToSp

func (c Metric) DpToSp(v Dp) Sp

func (Metric) PxToDp

func (c Metric) PxToDp(v int) Dp

func (Metric) PxToSp

func (c Metric) PxToSp(v int) Sp

func (Metric) Sp

func (c Metric) Sp(v Sp) int

func (Metric) SpToDp

func (c Metric) SpToDp(v Sp) Dp

type Sp

type Sp float32

Jump to

Keyboard shortcuts

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