Enum sixtyfps_corelib::graphics::PathElement [−][src]
#[repr(C)]
pub enum PathElement {
MoveTo(PathMoveTo),
LineTo(PathLineTo),
ArcTo(PathArcTo),
CubicTo(PathCubicTo),
QuadraticTo(PathQuadraticTo),
Close,
}
Expand description
PathElement describes a single element on a path, such as move-to, line-to, etc.
Variants
MoveTo(PathMoveTo)
The MoveTo variant sets the current position on the path.
Tuple Fields of MoveTo
0: PathMoveTo
LineTo(PathLineTo)
The LineTo variant describes a line.
Tuple Fields of LineTo
0: PathLineTo
ArcTo(PathArcTo)
The PathArcTo variant describes an arc.
Tuple Fields of ArcTo
0: PathArcTo
CubicTo(PathCubicTo)
The CubicTo variant describes a Bézier curve with two control points.
Tuple Fields of CubicTo
0: PathCubicTo
QuadraticTo(PathQuadraticTo)
The QuadraticTo variant describes a Bézier curve with one control point.
Tuple Fields of QuadraticTo
Indicates that the path should be closed now by connecting to the starting point.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PathElement
impl Send for PathElement
impl Sync for PathElement
impl Unpin for PathElement
impl UnwindSafe for PathElement
Blanket Implementations
Mutably borrows from an owned value. Read more