[][src]Struct blend2d::path::Path

#[repr(transparent)]
pub struct Path { /* fields omitted */ }

Methods

impl Path[src]

pub fn new() -> Self[src]

pub fn with_capacity(n: usize) -> Self[src]

pub fn clear(&mut self)[src]

pub fn shrink_to_fit(&mut self)[src]

pub fn reserve(&mut self, n: usize)[src]

pub fn try_reserve(&mut self, n: usize) -> Result<()>[src]

pub fn len(&self) -> usize[src]

pub fn capacity(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn command_data(&self) -> &[u8][src]

pub fn vertex_data(&self) -> &[PointD][src]

pub fn info_flags(&self) -> Result<PathFlags>[src]

pub fn control_box(&self) -> Result<BoxD>[src]

pub fn bounding_box(&self) -> Result<BoxD>[src]

pub fn figure_range(&self, index: usize) -> Result<Range<usize>>[src]

pub fn last_vertex(&self) -> Result<PointD>[src]

pub fn closest_vertex(
    &self,
    p: &PointD,
    max_distance: f64
) -> Result<(usize, f64)>
[src]

pub fn hit_test(&self, p: &PointD, fill_rule: FillRule) -> Result<()>[src]

pub fn set_vertex_at(
    &mut self,
    index: usize,
    cmd: PathCommand,
    x: f64,
    y: f64
) -> Result<()>
[src]

pub fn set_vertex_at_point(
    &mut self,
    index: usize,
    cmd: PathCommand,
    point: PointD
) -> Result<()>
[src]

impl Path[src]

pub fn move_to(&mut self, x: f64, y: f64) -> Result<()>[src]

pub fn move_to_point(&mut self, point: &PointD) -> Result<()>[src]

pub fn line_to(&mut self, x: f64, y: f64) -> Result<()>[src]

pub fn line_to_point(&mut self, point: &PointD) -> Result<()>[src]

pub fn poly_to(&mut self, poly: &[PointD]) -> Result<()>[src]

pub fn quad_to(&mut self, x1: f64, y1: f64, x2: f64, y2: f64) -> Result<()>[src]

pub fn quad_to_points(
    &mut self,
    x1: f64,
    y1: f64,
    x2: f64,
    y2: f64
) -> Result<()>
[src]

pub fn cubic_to(
    &mut self,
    x1: f64,
    y1: f64,
    x2: f64,
    y2: f64,
    x3: f64,
    y3: f64
) -> Result<()>
[src]

pub fn cubic_to_points(
    &mut self,
    p1: &PointD,
    p2: &PointD,
    p3: &PointD
) -> Result<()>
[src]

pub fn smooth_quad_to(&mut self, x2: f64, y2: f64) -> Result<()>[src]

pub fn smooth_quad_to_point(&mut self, p2: &PointD) -> Result<()>[src]

pub fn smooth_cubic_to(
    &mut self,
    x2: f64,
    y2: f64,
    x3: f64,
    y3: f64
) -> Result<()>
[src]

pub fn smooth_cubic_to_points(&mut self, p2: &PointD, p3: &PointD) -> Result<()>[src]

pub fn arc_to(
    &mut self,
    cx: f64,
    cy: f64,
    rx: f64,
    ry: f64,
    start: f64,
    sweep: f64,
    force_move_to: bool
) -> Result<()>
[src]

pub fn arc_to_points(
    &mut self,
    cp: &PointD,
    rp: &PointD,
    start: f64,
    sweep: f64,
    force_move_to: bool
) -> Result<()>
[src]

pub fn arc_quadrant_to(
    &mut self,
    x1: f64,
    y1: f64,
    x2: f64,
    y2: f64
) -> Result<()>
[src]

pub fn arc_quadrant_to_points(&mut self, p1: &PointD, p2: &PointD) -> Result<()>[src]

pub fn elliptic_arc_to(
    &mut self,
    rx: f64,
    ry: f64,
    x_axis_rotation: f64,
    large_arc_flag: bool,
    sweep_flag: bool,
    x1: f64,
    y1: f64
) -> Result<()>
[src]

pub fn elliptic_arc_to_points(
    &mut self,
    rp: &PointD,
    x_axis_rotation: f64,
    large_arc_flag: bool,
    sweep_flag: bool,
    p1: &PointD
) -> Result<()>
[src]

pub fn close(&mut self) -> Result<()>[src]

impl Path[src]

pub fn add_geometry<T: Geometry + ?Sized>(
    &mut self,
    g: &T,
    matrix: Option<&Matrix2D>,
    dir: GeometryDirection
) -> Result<()>
[src]

pub fn add_polygon<R, P>(
    &mut self,
    p: R,
    matrix: Option<&Matrix2D>,
    dir: GeometryDirection
) -> Result<()> where
    R: AsRef<[P]>,
    P: Point + Geometry
[src]

pub fn add_polyline<R, P>(
    &mut self,
    p: R,
    matrix: Option<&Matrix2D>,
    dir: GeometryDirection
) -> Result<()> where
    R: AsRef<[P]>,
    P: Point
[src]

pub fn add_path(&mut self, other: &Path) -> Result<()>[src]

pub fn add_path_range<R: RangeBounds<usize>>(
    &mut self,
    other: &Path,
    range: R
) -> Result<()>
[src]

pub fn add_translated_path(&mut self, other: &Path, p: &PointD) -> Result<()>[src]

pub fn add_translated_path_range<R: RangeBounds<usize>>(
    &mut self,
    other: &Path,
    range: R,
    p: &PointD
) -> Result<()>
[src]

pub fn add_transformed_path(&mut self, other: &Path, m: &Matrix2D) -> Result<()>[src]

pub fn add_transformed_path_range<R: RangeBounds<usize>>(
    &mut self,
    other: &Path,
    range: R,
    m: &Matrix2D
) -> Result<()>
[src]

pub fn add_reversed_path(
    &mut self,
    other: &Path,
    mode: PathReverseMode
) -> Result<()>
[src]

pub fn add_reversed_path_range<R: RangeBounds<usize>>(
    &mut self,
    other: &Path,
    range: R,
    mode: PathReverseMode
) -> Result<()>
[src]

pub fn add_stroked_path(
    &mut self,
    other: &Path,
    options: &StrokeOptions,
    approx: &ApproximationOptions
) -> Result<()>
[src]

pub fn add_stroked_path_range<R: RangeBounds<usize>>(
    &mut self,
    other: &Path,
    range: R,
    options: &StrokeOptions,
    approx: &ApproximationOptions
) -> Result<()>
[src]

impl Path[src]

pub fn translate(&mut self, p: &PointD) -> Result<()>[src]

pub fn translate_range<R: RangeBounds<usize>>(
    &mut self,
    range: R,
    p: &PointD
) -> Result<()>
[src]

pub fn transform(&mut self, m: &Matrix2D) -> Result<()>[src]

pub fn transform_range<R: RangeBounds<usize>>(
    &mut self,
    range: R,
    m: &Matrix2D
) -> Result<()>
[src]

pub fn fit_to(&mut self, rect: &RectD, flags: PathFitFlags) -> Result<()>[src]

pub fn fit_to_range<R: RangeBounds<usize>>(
    &mut self,
    range: R,
    rect: &RectD,
    flags: PathFitFlags
) -> Result<()>
[src]

Trait Implementations

impl ArrayType for Path[src]

impl Geometry for Path[src]

impl Drop for Path[src]

impl PartialEq<Path> for Path[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for Path[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Path[src]

Auto Trait Implementations

impl !Send for Path

impl !Sync for Path

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.