Module beamui.core.units
Import line
import beamui .core .units;
Functions
Name | Description |
---|---|
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
Name | Description |
---|---|
LayoutLength
|
Layout length can be either in device-independent pixels or in percents |
Length
|
Represents length with specified measurement unit |
Enums
Name | Description |
---|---|
LengthUnit
|
Supported types of distance measurement unit |
Manifest constants
Name | Type | Description |
---|---|---|
ONE_SECOND
|
Number of hnsecs (those we use in animations, for example) in one second |