Enum i_slint_core::graphics::PathData
source · [−]#[repr(C)]
pub enum PathData {
None,
Elements(SharedVector<PathElement>),
Events(SharedVector<PathEvent>, SharedVector<Point>),
Commands(SharedString),
}
Expand description
PathData represents a path described by either high-level elements or low-level events and coordinates.
Variants
None
None is the variant when the path is empty.
Elements(SharedVector<PathElement>)
The Elements variant is used to make a Path from shared arrays of elements.
Events(SharedVector<PathEvent>, SharedVector<Point>)
The Events variant describes the path as a series of low-level events and associated coordinates.
Commands(SharedString)
The Commands variant describes the path as a series of SVG encoded path commands.
Implementations
sourceimpl PathData
impl PathData
sourcepub fn iter(self) -> PathDataIterator
pub fn iter(self) -> PathDataIterator
This function returns an iterator that allows traversing the path by means of lyon events.
Trait Implementations
impl StructuralPartialEq for PathData
Auto Trait Implementations
impl RefUnwindSafe for PathData
impl Send for PathData
impl !Sync for PathData
impl Unpin for PathData
impl UnwindSafe for PathData
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