[−][src]Struct makepad_path::line_path::LinePath
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]
ⓘImportant traits for Commands<'a>
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]
fn transform<T>(self, t: &T) -> LinePath where
T: Transformation,
[src]
T: Transformation,
fn transform_mut<T>(&mut self, t: &T) where
T: Transformation,
[src]
T: Transformation,
impl ExtendFromInternalIterator<LinePathCommand> for LinePath
[src]
fn extend_from_internal_iter<I>(&mut self, internal_iter: I) where
I: IntoInternalIterator<Item = LinePathCommand>,
[src]
I: IntoInternalIterator<Item = LinePathCommand>,
impl FromInternalIterator<LinePathCommand> for LinePath
[src]
fn from_internal_iter<I>(internal_iter: I) -> Self where
I: IntoInternalIterator<Item = LinePathCommand>,
[src]
I: IntoInternalIterator<Item = LinePathCommand>,
Auto Trait Implementations
impl Send for LinePath
impl Sync for LinePath
impl Unpin for LinePath
impl UnwindSafe for LinePath
impl RefUnwindSafe for LinePath
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,