pub struct VelloPath { /* private fields */ }Expand description
A path of a geometry with the rule it is filled by.
A path of kurbo is a list of elements; the fill rule, which a path of Skia carries itself, travels beside it. The elements are shared: a copy of the value is a counted reference.
Implementations§
Source§impl VelloPath
impl VelloPath
Sourcepub fn new(path: BezPath, fill_rule: FillRule) -> Self
pub fn new(path: BezPath, fill_rule: FillRule) -> Self
Wraps a path that is filled by fill_rule.
Sourcepub fn with_fill_rule(&self, fill_rule: FillRule) -> Self
pub fn with_fill_rule(&self, fill_rule: FillRule) -> Self
The same elements with another fill rule.
Sourcepub fn transformed(&self, transform: Affine) -> Self
pub fn transformed(&self, transform: Affine) -> Self
The path with a transform applied.
Sourcepub fn tight_bounds(&self) -> Rect
pub fn tight_bounds(&self) -> Rect
The tight bounds of the path: of its curves, not of their control points, and of the points of its moves. A path without an element has empty bounds at the origin.
The point of a move counts whether or not a segment follows it, as
in the tight bounds of the Skia backend (SkPath::computeTightBounds
and its tight_bounds for a path of lines), which are upstream’s.
Upstream’s render tests have paths that end in moves to give a shape
its extent (M 10,190 L 190,10 M0,0M200,200).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VelloPath
impl RefUnwindSafe for VelloPath
impl Send for VelloPath
impl Sync for VelloPath
impl Unpin for VelloPath
impl UnsafeUnpin for VelloPath
impl UnwindSafe for VelloPath
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
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()
affects_render, metadata
overrides). Read more