Crate tiny_skia_path

Source
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ยง

dash ๐Ÿ”’
f32x2_t ๐Ÿ”’
f32x4_t ๐Ÿ”’
floating_point ๐Ÿ”’
path ๐Ÿ”’
path_builder ๐Ÿ”’
path_geometry
A collection of functions to work with Bezier paths.
rect ๐Ÿ”’
scalar ๐Ÿ”’
size ๐Ÿ”’
stroker ๐Ÿ”’
transform ๐Ÿ”’

Structsยง

FiniteF32
An immutable, finite f32.
IntRect
An integer rectangle.
IntSize
An integer size.
NonZeroPositiveF32
An immutable, finite f32 that is known to be > 0.
NonZeroRect
A rectangle defined by left, top, right and bottom edges.
NormalizedF32
An immutable, finite f32 in a 0..=1 range.
NormalizedF32Exclusive
An immutable f32 that is larger than 0 but less then 1.
Path
A Bezier path.
PathBuilder
A path builder.
PathSegmentsIter
A path segments iterator.
PathStroker
A path stroker.
Point
A point.
Rect
A rectangle defined by left, top, right and bottom edges.
Size
A size.
Stroke
Stroke properties.
StrokeDash
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.
LineJoin
Specifies how corners are drawn when a shape is stroked.
PathSegment
A path segment.
PathVerb
A path verb.

Constantsยง

SCALAR_MAX
SCALAR_NEARLY_ZERO
SCALAR_ROOT_2_OVER_2

Traitsยง

SaturateCast
Custom float to integer conversion routines.
SaturateRound
Custom float to integer rounding routines.
Scalar
Float number extension methods.

Functionsยง

set_point_length ๐Ÿ”’

Type Aliasesยง

LengthU32 ๐Ÿ”’
An integer length that is guarantee to be > 0