[−][src]Struct blend2d::path::Path
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]
&self,
p: &PointD,
max_distance: f64
) -> Result<(usize, f64)>
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]
&mut self,
index: usize,
cmd: PathCommand,
x: f64,
y: f64
) -> Result<()>
pub fn set_vertex_at_point(
&mut self,
index: usize,
cmd: PathCommand,
point: PointD
) -> Result<()>
[src]
&mut self,
index: usize,
cmd: PathCommand,
point: PointD
) -> Result<()>
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]
&mut self,
x1: f64,
y1: f64,
x2: f64,
y2: f64
) -> Result<()>
pub fn cubic_to(
&mut self,
x1: f64,
y1: f64,
x2: f64,
y2: f64,
x3: f64,
y3: f64
) -> Result<()>
[src]
&mut self,
x1: f64,
y1: f64,
x2: f64,
y2: f64,
x3: f64,
y3: f64
) -> Result<()>
pub fn cubic_to_points(
&mut self,
p1: &PointD,
p2: &PointD,
p3: &PointD
) -> Result<()>
[src]
&mut self,
p1: &PointD,
p2: &PointD,
p3: &PointD
) -> Result<()>
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]
&mut self,
x2: f64,
y2: f64,
x3: f64,
y3: f64
) -> Result<()>
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]
&mut self,
cx: f64,
cy: f64,
rx: f64,
ry: f64,
start: f64,
sweep: f64,
force_move_to: bool
) -> Result<()>
pub fn arc_to_points(
&mut self,
cp: &PointD,
rp: &PointD,
start: f64,
sweep: f64,
force_move_to: bool
) -> Result<()>
[src]
&mut self,
cp: &PointD,
rp: &PointD,
start: f64,
sweep: f64,
force_move_to: bool
) -> Result<()>
pub fn arc_quadrant_to(
&mut self,
x1: f64,
y1: f64,
x2: f64,
y2: f64
) -> Result<()>
[src]
&mut self,
x1: f64,
y1: f64,
x2: f64,
y2: f64
) -> Result<()>
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]
&mut self,
rx: f64,
ry: f64,
x_axis_rotation: f64,
large_arc_flag: bool,
sweep_flag: bool,
x1: f64,
y1: f64
) -> Result<()>
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]
&mut self,
rp: &PointD,
x_axis_rotation: f64,
large_arc_flag: bool,
sweep_flag: bool,
p1: &PointD
) -> Result<()>
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]
&mut self,
g: &T,
matrix: Option<&Matrix2D>,
dir: GeometryDirection
) -> Result<()>
pub fn add_polygon<R, P>(
&mut self,
p: R,
matrix: Option<&Matrix2D>,
dir: GeometryDirection
) -> Result<()> where
R: AsRef<[P]>,
P: Point + Geometry,
[src]
&mut self,
p: R,
matrix: Option<&Matrix2D>,
dir: GeometryDirection
) -> Result<()> where
R: AsRef<[P]>,
P: Point + Geometry,
pub fn add_polyline<R, P>(
&mut self,
p: R,
matrix: Option<&Matrix2D>,
dir: GeometryDirection
) -> Result<()> where
R: AsRef<[P]>,
P: Point,
[src]
&mut self,
p: R,
matrix: Option<&Matrix2D>,
dir: GeometryDirection
) -> Result<()> where
R: AsRef<[P]>,
P: Point,
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]
&mut self,
other: &Path,
range: R
) -> Result<()>
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]
&mut self,
other: &Path,
range: R,
p: &PointD
) -> Result<()>
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]
&mut self,
other: &Path,
range: R,
m: &Matrix2D
) -> Result<()>
pub fn add_reversed_path(
&mut self,
other: &Path,
mode: PathReverseMode
) -> Result<()>
[src]
&mut self,
other: &Path,
mode: PathReverseMode
) -> Result<()>
pub fn add_reversed_path_range<R: RangeBounds<usize>>(
&mut self,
other: &Path,
range: R,
mode: PathReverseMode
) -> Result<()>
[src]
&mut self,
other: &Path,
range: R,
mode: PathReverseMode
) -> Result<()>
pub fn add_stroked_path(
&mut self,
other: &Path,
options: &StrokeOptions,
approx: &ApproximationOptions
) -> Result<()>
[src]
&mut self,
other: &Path,
options: &StrokeOptions,
approx: &ApproximationOptions
) -> Result<()>
pub fn add_stroked_path_range<R: RangeBounds<usize>>(
&mut self,
other: &Path,
range: R,
options: &StrokeOptions,
approx: &ApproximationOptions
) -> Result<()>
[src]
&mut self,
other: &Path,
range: R,
options: &StrokeOptions,
approx: &ApproximationOptions
) -> Result<()>
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]
&mut self,
range: R,
p: &PointD
) -> Result<()>
pub fn transform(&mut self, m: &Matrix2D) -> Result<()>
[src]
pub fn transform_range<R: RangeBounds<usize>>(
&mut self,
range: R,
m: &Matrix2D
) -> Result<()>
[src]
&mut self,
range: R,
m: &Matrix2D
) -> Result<()>
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]
&mut self,
range: R,
rect: &RectD,
flags: PathFitFlags
) -> Result<()>
Trait Implementations
impl ArrayType for Path
[src]
impl Geometry for Path
[src]
impl Drop for Path
[src]
impl PartialEq<Path> for Path
[src]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Clone for Path
[src]
fn clone(&self) -> Self
[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
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,