Expand description
UI scaling utilities.
Structs§
- Logical
Insets - The logical distance between the edges of two rectangles.
- Logical
Position - A position represented in logical pixels.
- Logical
Rect - A rectangular region in logical pixels.
- Logical
Size - A size represented in logical pixels.
- Logical
Unit - A logical pixel unit.
- Physical
Insets - The physical distance between the edges of two rectangles.
- Physical
Position - A position represented in physical pixels.
- Physical
Rect - A rectangular region in physical pixels.
- Physical
Size - A size represented in physical pixels.
- Physical
Unit - A physical pixel unit.
- Rect
- A rectangular region.
Enums§
- Insets
- Insets that are either physical or logical.
- Pixel
Unit - 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§
Functions§
- validate_
scale_ factor - Checks that the scale factor is a normal positive
f64
.