Enum sixtyfps_corelib::graphics::PathElement
source · [−]#[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.
LineTo(PathLineTo)
The LineTo variant describes a line.
ArcTo(PathArcTo)
The PathArcTo variant describes an arc.
CubicTo(PathCubicTo)
The CubicTo variant describes a Bézier curve with two control points.
QuadraticTo(PathQuadraticTo)
The QuadraticTo variant describes a Bézier curve with one control point.
Close
Indicates that the path should be closed now by connecting to the starting point.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
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