LengthUnit.fromPx

Converts value from pixels to unit.

struct LengthUnit
static
double
fromPx

Parameters

unit adw.types.LengthUnit

a length unit

value double

a value in pixels

settings gtk.settings.Settings

settings to use, or NULL for default settings

Return Value

Type: double

the length in unit