Expand description
A tiny-skia Bezier path implementation.
Provides a memory-efficient Bezier path container, path builder, path stroker and path dasher.
Also provides some basic geometry types, but they will be moved to an external crate eventually.
Note that all types use single precision floats (f32
), just like Skia.
Modules§
- path_
geometry - A collection of functions to work with Bezier paths.
Structs§
- Finite
F32 - An immutable, finite
f32
. - IntRect
- An integer rectangle.
- IntSize
- An integer size.
- NonZero
Positive F32 - An immutable, finite
f32
that is known to be > 0. - NonZero
Rect - A rectangle defined by left, top, right and bottom edges.
- Normalized
F32 - An immutable, finite
f32
in a 0..=1 range. - Normalized
F32Exclusive - An immutable
f32
that is larger than 0 but less then 1. - Path
- A Bezier path.
- Path
Builder - A path builder.
- Path
Segments Iter - A path segments iterator.
- Path
Stroker - A path stroker.
- Point
- A point.
- Rect
- A rectangle defined by left, top, right and bottom edges.
- Size
- A size.
- Stroke
- Stroke properties.
- Stroke
Dash - A stroke dashing properties.
- Transform
- An affine transformation matrix.
- f32x2
- A pair of f32 numbers.
Enums§
- LineCap
- Draws at the beginning and end of an open path contour.
- Line
Join - Specifies how corners are drawn when a shape is stroked.
- Path
Segment - A path segment.
- Path
Verb - A path verb.
Constants§
Traits§
- Saturate
Cast - Custom float to integer conversion routines.
- Saturate
Round - Custom float to integer rounding routines.
- Scalar
- Float number extension methods.