Module beamui.core.units

Import line

import beamui.core.units;

Functions

NameDescription
parseAngle(value, unit) Parse angle with deg, grad, rad or turn unit. Returns an angle in radians, or NaN if cannot parse.
snapToDevicePixels(f)
snapToDevicePixels(pt)
snapToDevicePixels(r)
snapToDevicePixels(box)

Structs

NameDescription
LayoutLength Layout length can be either in device-independent pixels or in percents
Length Represents length with specified measurement unit

Enums

NameDescription
LengthUnit Supported types of distance measurement unit

Manifest constants

NameTypeDescription
ONE_SECOND Number of hnsecs (those we use in animations, for example) in one second