Struct flo_animation::Path
[−]
[src]
pub struct Path { pub elements: Vec<PathElement>, }
Represents a vector path
Fields
elements: Vec<PathElement>
Methods
impl Path
[src]
pub fn new() -> Path
[src]
Creates a new, empty path
pub fn from_elements<Elements: IntoIterator<Item = PathElement>>(
elements: Elements
) -> Path
[src]
elements: Elements
) -> Path
Creates a path from an elements iterator
pub fn from_drawing<Drawing: IntoIterator<Item = Draw>>(
drawing: Drawing
) -> Path
[src]
drawing: Drawing
) -> Path
Creates a path from a drawing iterator
Trait Implementations
impl Clone for Path
[src]
fn clone(&self) -> Path
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<Vec<PathElement>> for Path
[src]
fn from(points: Vec<PathElement>) -> Path
[src]
Performs the conversion.
impl From<Vec<Draw>> for Path
[src]
Converts a drawing into a path (ignoring all the parts of a drawing that cannot be simply converted)
impl<'a> Into<Vec<Draw>> for &'a Path
[src]
Converts a path into a drawing
impl<'a> From<&'a Path> for Rect
[src]
Paths can be converted into bounding boxes
impl From<Path> for Rect
[src]
impl HasBoundingBox for Path
[src]
fn bounding_box(&self) -> Rect
[src]
Retrieves the bounding box for this element Read more