[][src]Struct makepad_path::line_path::LinePath

pub struct LinePath { /* fields omitted */ }

A sequence of commands that defines a set of contours, each of which consists of a sequence of line segments. Each contour is either open or closed.

Methods

impl LinePath[src]

pub fn new() -> LinePath[src]

Creates a new empty line path.

pub fn points(&self) -> &[Point][src]

Returns a slice of the points that make up self.

Important traits for Commands<'a>
pub fn commands(&self) -> Commands[src]

Returns an iterator over the commands that make up self.

pub fn points_mut(&mut self) -> &mut [Point][src]

Returns a mutable slice of the points that make up self.

pub fn move_to(&mut self, p: Point)[src]

Adds a new contour, starting at the given point.

pub fn line_to(&mut self, p: Point)[src]

Adds a line segment to the current contour, starting at the current point.

pub fn close(&mut self)[src]

Closes the current contour.

pub fn clear(&mut self)[src]

Clears self.

Trait Implementations

impl Clone for LinePath[src]

impl Default for LinePath[src]

impl PartialEq<LinePath> for LinePath[src]

impl Debug for LinePath[src]

impl StructuralPartialEq for LinePath[src]

impl Transform for LinePath[src]

impl ExtendFromInternalIterator<LinePathCommand> for LinePath[src]

impl FromInternalIterator<LinePathCommand> for LinePath[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]