pub struct HitShapes {
pub points: Vec<Vec2>,
}Expand description
The points a frame’s stroke and fill shapes index, built beside its regions.
Fields§
§points: Vec<Vec2>Implementations§
Source§impl HitShapes
impl HitShapes
Sourcepub fn segments(&mut self, points: &[Vec2], width: f32) -> HitShape
pub fn segments(&mut self, points: &[Vec2], width: f32) -> HitShape
Adds a stroke’s points and returns the shape over them.
Sourcepub fn path(&mut self, points: &[Vec2], rule: FillRule, stroke: f32) -> HitShape
pub fn path(&mut self, points: &[Vec2], rule: FillRule, stroke: f32) -> HitShape
Adds a path’s flattened contours and returns the shape over them.
stroke is the width of the stroke painted over the fill, 0 for
none; with one, points are the stroke’s polylines
(path::flatten_stroke), which the fill reads the same.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HitShapes
impl RefUnwindSafe for HitShapes
impl Send for HitShapes
impl Sync for HitShapes
impl Unpin for HitShapes
impl UnsafeUnpin for HitShapes
impl UnwindSafe for HitShapes
Blanket Implementations§
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