Skip to main content

GeometryGroupImpl

Struct GeometryGroupImpl 

Source
pub struct GeometryGroupImpl { /* private fields */ }
Expand description

A kurbo implementation of a geometry group.

Implementations§

Source§

impl GeometryGroupImpl

Source

pub fn new( fill_rule: FillRule, children: &[Arc<dyn IGeometryImpl>], ) -> Arc<Self> ⓘ

Creates a geometry from the paths of children. Children of another backend are skipped.

Trait Implementations§

Source§

impl GeometryImpl for GeometryGroupImpl

Source§

fn base(&self) -> &GeometryImplBase

The caches shared by all geometry kinds.
Source§

fn stroke_path(&self) -> Option<VelloPath>

The path that is stroked.
Source§

fn fill(&self) -> FillPath

The fill of the geometry in relation to its stroke path.
Source§

fn fill_path(&self) -> Option<VelloPath>

The path that is filled.
Source§

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 GeometryGroupImpl

Source§

fn bounds(&self) -> Rect

The geometry’s bounding rectangle.
Source§

fn as_any(&self) -> &dyn Any

Lets the backend recover its concrete type.
Source§

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

Gets the geometry’s bounding rectangle with the specified pen.
Source§

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

Indicates whether the geometry’s fill contains the specified point.
Source§

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>>

Intersects the geometry with another geometry. Read more
Source§

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> ⓘ

Makes a clone of the geometry with the specified transform.
Source§

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)>

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>>

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)>

The geometry viewed as ITransformedGeometryImpl, when it is one.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,