Re-exports§
pub use euclid;
Structs§
- Angle
Degree - Angle in degrees.
- Angle
Gradian - Angle in gradians.
- Angle
Radian - Angle in radians.
- Angle
Turn - Angle in turns (complete rotations).
- Byte
Length - A length in bytes.
- Corner
Radius2D - Ellipses that define the radius of the four corners of a 2D box.
- Dip
- Device independent pixel.
- Distance
Key - Comparable key that represents the absolute distance between two pixel points.
- Factor
- Normalized multiplication factor.
- Factor
Percent - Multiplication factor in percentage (0%-100%).
- Px
- Device pixel.
- Rgba
- RGB + alpha.
- Rgba
Component - Color functions argument conversion helper.
- Side
Offsets2D - A group of 2D side offsets, which correspond to top/right/bottom/left for borders, padding, and margins in CSS, optionally tagged with a unit.
Enums§
- Orientation2D
- Orientation of two 2D items.
- PxTransform
- A transform in device pixels.
Constants§
- EQ_
EPSILON - Minimal difference between values in around the 0.0..=1.0 scale.
- EQ_
EPSILON_ 100 - Minimal difference between values in around the 1.0..=100.0 scale.
Traits§
- Angle
Units - Extension methods for initializing angle units.
- Byte
Units - Extension methods for initializing
ByteLength
values. - DipToPx
- Conversion from
Dip
toPx
units. - Factor
Units - Extension methods for initializing factor units.
- PxToDip
- Conversion from
Px
toDip
units. - Time
Units - Extension methods for initializing
Duration
values.
Functions§
- about_
eq f32
equality used in floating-point units.- about_
eq_ hash f32
hash compatible withabout_eq
equality.- about_
eq_ ord f32
ordering compatible withabout_eq
equality.
Type Aliases§
- DipBox
- A rectangle box in device independent pixels.
- DipCorner
Radius - Corner-radius in device independent pixels.
- DipPoint
- A point in device independent pixels.
- DipRect
- A rectangle in device independent pixels.
- DipSide
Offsets - Side-offsets in device independent pixels.
- DipSize
- A size in device pixels.
- DipVector
- A vector in device independent pixels.
- PxBox
- A rectangle box in device pixels.
- PxCorner
Radius - Corner-radius in device pixels.
- PxPoint
- A point in device pixels.
- PxRect
- A rectangle in device pixels.
- PxSide
Offsets - Side-offsets in device pixels.
- PxSize
- A size in device pixels.
- PxVector
- A vector in device pixels.