Module dpi

Source
Expand description

UI scaling utilities.

Structs§

LogicalInsets
The logical distance between the edges of two rectangles.
LogicalPosition
A position represented in logical pixels.
LogicalRect
A rectangular region in logical pixels.
LogicalSize
A size represented in logical pixels.
LogicalUnit
A logical pixel unit.
PhysicalInsets
The physical distance between the edges of two rectangles.
PhysicalPosition
A position represented in physical pixels.
PhysicalRect
A rectangular region in physical pixels.
PhysicalSize
A size represented in physical pixels.
PhysicalUnit
A physical pixel unit.
Rect
A rectangular region.

Enums§

Insets
Insets that are either physical or logical.
PixelUnit
A pixel unit that’s either physical or logical.
Position
A position that’s either physical or logical.
Size
A size that’s either physical or logical.

Traits§

Pixel

Functions§

validate_scale_factor
Checks that the scale factor is a normal positive f64.