Enum i_slint_core::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
sourceimpl Clone for PathElement
impl Clone for PathElement
sourcefn clone(&self) -> PathElement
fn clone(&self) -> PathElement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PathElement
impl Debug for PathElement
sourceimpl From<()> for PathElement
impl From<()> for PathElement
sourcefn from(original: ()) -> PathElement
fn from(original: ()) -> PathElement
Converts to this type from the input type.
sourceimpl From<PathArcTo> for PathElement
impl From<PathArcTo> for PathElement
sourcefn from(original: PathArcTo) -> PathElement
fn from(original: PathArcTo) -> PathElement
Converts to this type from the input type.
sourceimpl From<PathCubicTo> for PathElement
impl From<PathCubicTo> for PathElement
sourcefn from(original: PathCubicTo) -> PathElement
fn from(original: PathCubicTo) -> PathElement
Converts to this type from the input type.
sourceimpl From<PathLineTo> for PathElement
impl From<PathLineTo> for PathElement
sourcefn from(original: PathLineTo) -> PathElement
fn from(original: PathLineTo) -> PathElement
Converts to this type from the input type.
sourceimpl From<PathMoveTo> for PathElement
impl From<PathMoveTo> for PathElement
sourcefn from(original: PathMoveTo) -> PathElement
fn from(original: PathMoveTo) -> PathElement
Converts to this type from the input type.
sourceimpl From<PathQuadraticTo> for PathElement
impl From<PathQuadraticTo> for PathElement
sourcefn from(original: PathQuadraticTo) -> PathElement
fn from(original: PathQuadraticTo) -> PathElement
Converts to this type from the input type.
sourceimpl PartialEq<PathElement> for PathElement
impl PartialEq<PathElement> for PathElement
sourcefn eq(&self, other: &PathElement) -> bool
fn eq(&self, other: &PathElement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PathElement) -> bool
fn ne(&self, other: &PathElement) -> bool
This method tests for !=
.
impl StructuralPartialEq for PathElement
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more