pub struct SimpleGeometryImpl { /* private fields */ }Expand description
A kurbo geometry defined by stroke and fill paths.
Implementations§
Trait Implementations§
Source§impl GeometryImpl for SimpleGeometryImpl
impl GeometryImpl for SimpleGeometryImpl
Source§fn base(&self) -> &GeometryImplBase
fn base(&self) -> &GeometryImplBase
The caches shared by all geometry kinds.
Source§fn stroke_path(&self) -> Option<VelloPath>
fn stroke_path(&self) -> Option<VelloPath>
The path that is stroked.
Source§fn is_fill_same_as_stroke(&self) -> bool
fn is_fill_same_as_stroke(&self) -> bool
Whether the fill path is the very same path as the stroke path.
Source§impl IGeometryImpl for SimpleGeometryImpl
impl IGeometryImpl for SimpleGeometryImpl
Source§fn contour_length(&self) -> f64
fn contour_length(&self) -> f64
The geometry’s total length as if all its contours are placed in a
straight line.
Source§fn get_render_bounds(&self, pen: Option<&dyn IPen>) -> Rect
fn get_render_bounds(&self, pen: Option<&dyn IPen>) -> Rect
Gets the geometry’s bounding rectangle with the specified pen.
Source§fn get_widened_geometry(&self, pen: &dyn IPen) -> Arc<dyn IGeometryImpl> ⓘ
fn get_widened_geometry(&self, pen: &dyn IPen) -> Arc<dyn IGeometryImpl> ⓘ
Gets a geometry that is the shape defined by the stroke on the
geometry produced by the specified pen.
Source§fn fill_contains(&self, point: Point) -> bool
fn fill_contains(&self, point: Point) -> bool
Indicates whether the geometry’s fill contains the specified point.
Source§fn get_fill_intersection_result(
&self,
geometry: &dyn IGeometryImpl,
) -> IntersectionResult
fn get_fill_intersection_result( &self, geometry: &dyn IGeometryImpl, ) -> IntersectionResult
Gets the relation between this geometry’s fill and another one’s.
Source§fn intersect(
&self,
geometry: &dyn IGeometryImpl,
) -> Option<Arc<dyn IGeometryImpl>>
fn intersect( &self, geometry: &dyn IGeometryImpl, ) -> Option<Arc<dyn IGeometryImpl>>
Intersects the geometry with another geometry. Read more
Source§fn stroke_contains(&self, pen: Option<&dyn IPen>, point: Point) -> bool
fn stroke_contains(&self, pen: Option<&dyn IPen>, point: Point) -> bool
Indicates whether the geometry’s stroke contains the specified point.
Source§fn with_transform(&self, transform: Matrix) -> Arc<dyn ITransformedGeometryImpl> ⓘ
fn with_transform(&self, transform: Matrix) -> Arc<dyn ITransformedGeometryImpl> ⓘ
Makes a clone of the geometry with the specified transform.
Source§fn try_get_point_at_distance(&self, distance: f64) -> Option<Point>
fn try_get_point_at_distance(&self, distance: f64) -> Option<Point>
Attempts to get the corresponding point at the specified distance.
Source§fn try_get_point_and_tangent_at_distance(
&self,
distance: f64,
) -> Option<(Point, Point)>
fn try_get_point_and_tangent_at_distance( &self, distance: f64, ) -> Option<(Point, Point)>
Attempts to get the corresponding point and tangent from the
specified distance along the contour of the geometry.
Source§fn try_get_segment(
&self,
start_distance: f64,
stop_distance: f64,
start_on_begin_figure: bool,
) -> Option<Arc<dyn IGeometryImpl>>
fn try_get_segment( &self, start_distance: f64, stop_distance: f64, start_on_begin_figure: bool, ) -> Option<Arc<dyn IGeometryImpl>>
Attempts to get the corresponding path segment given by the two
distances specified. Imagine it like snipping a part of the current
geometry. Read more
Source§fn as_transformed_geometry(
&self,
) -> Option<&(dyn ITransformedGeometryImpl + 'static)>
fn as_transformed_geometry( &self, ) -> Option<&(dyn ITransformedGeometryImpl + 'static)>
The geometry viewed as
ITransformedGeometryImpl, when it is one.Auto Trait Implementations§
impl !Freeze for SimpleGeometryImpl
impl RefUnwindSafe for SimpleGeometryImpl
impl Send for SimpleGeometryImpl
impl Sync for SimpleGeometryImpl
impl Unpin for SimpleGeometryImpl
impl UnsafeUnpin for SimpleGeometryImpl
impl UnwindSafe for SimpleGeometryImpl
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more