Struct direct2d::geometry::Path
[−]
[src]
pub struct Path { /* fields omitted */ }
Custom-shaped geometry made of lines and curves
Methods
impl Path
[src]
pub fn open<'a>(&'a mut self) -> Result<GeometryBuilder<'a>, D2D1Error>
[src]
pub fn get_segment_count(&self) -> Result<u32, D2D1Error>
[src]
pub fn get_figure_count(&self) -> Result<u32, D2D1Error>
[src]
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 PartialEq for Path
[src]
fn eq(&self, __arg_0: &Path) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Path) -> bool
[src]
This method tests for !=
.
impl Geometry for Path
[src]
unsafe fn get_ptr(&self) -> *mut ID2D1Geometry
[src]
fn get_factory(&self) -> Factory
[src]
fn to_generic(&self) -> GenericGeometry
[src]
fn get_bounds(
&self,
world_transform: Option<&Matrix3x2F>
) -> Result<RectF, D2D1Error>
[src]
&self,
world_transform: Option<&Matrix3x2F>
) -> Result<RectF, D2D1Error>
Retrieve the bounds of the geometry, with an optional applied transform. Read more
fn get_widened_bounds(
&self,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>,
world_transform: Option<&Matrix3x2F>
) -> Result<RectF, D2D1Error>
[src]
&self,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>,
world_transform: Option<&Matrix3x2F>
) -> Result<RectF, D2D1Error>
Get the bounds of the corresponding geometry after it has been widened or have an optional pen style applied. Read more
fn stroke_contains_point(
&self,
point: Point2F,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>,
world_transform: Option<&Matrix3x2F>
) -> Result<bool, D2D1Error>
[src]
&self,
point: Point2F,
stroke_width: f32,
stroke_style: Option<&StrokeStyle>,
world_transform: Option<&Matrix3x2F>
) -> Result<bool, D2D1Error>
Checks to see whether the corresponding penned and widened geometry contains the given point. Read more
fn fill_contains_point(
&self,
point: Point2F,
world_transform: Option<&Matrix3x2F>
) -> Result<bool, D2D1Error>
[src]
&self,
point: Point2F,
world_transform: Option<&Matrix3x2F>
) -> Result<bool, D2D1Error>
Test whether the given fill of this geometry would contain this point.
fn compare_with_geometry<T: Geometry>(
&self,
input: &T,
input_transform: Option<&Matrix3x2F>
) -> Result<GeometryRelation, D2D1Error>
[src]
&self,
input: &T,
input_transform: Option<&Matrix3x2F>
) -> Result<GeometryRelation, D2D1Error>
Compare how one geometry intersects or contains another geometry.
fn compute_area(
&self,
world_transform: Option<&Matrix3x2F>
) -> Result<f32, D2D1Error>
[src]
&self,
world_transform: Option<&Matrix3x2F>
) -> Result<f32, D2D1Error>
Computes the area of the geometry.
fn compute_length(
&self,
world_transform: Option<&Matrix3x2F>
) -> Result<f32, D2D1Error>
[src]
&self,
world_transform: Option<&Matrix3x2F>
) -> Result<f32, D2D1Error>
Computes the length of the geometry.
fn compute_point_at_length(
&self,
length: f32,
world_transform: Option<&Matrix3x2F>
) -> Result<(Point2F, Vector2F), D2D1Error>
[src]
&self,
length: f32,
world_transform: Option<&Matrix3x2F>
) -> Result<(Point2F, Vector2F), D2D1Error>
Computes the point and tangent at a given distance along the path.