Struct tiny_skia_path::dash::ContourMeasure
source · struct ContourMeasure {
segments: Vec<Segment>,
points: Vec<Point>,
length: f32,
is_closed: bool,
}
Fields§
§segments: Vec<Segment>
§points: Vec<Point>
§length: f32
§is_closed: bool
Implementations§
source§impl ContourMeasure
impl ContourMeasure
fn push_segment( &self, start_d: f32, stop_d: f32, start_with_move_to: bool, pb: &mut PathBuilder, )
fn distance_to_segment(&self, distance: f32) -> Option<(usize, NormalizedF32)>
fn compute_line_seg( &mut self, p0: Point, p1: Point, distance: f32, point_index: usize, ) -> f32
fn compute_quad_segs( &mut self, p0: Point, p1: Point, p2: Point, distance: f32, min_t: u32, max_t: u32, point_index: usize, tolerance: f32, ) -> f32
fn compute_cubic_segs( &mut self, p0: Point, p1: Point, p2: Point, p3: Point, distance: f32, min_t: u32, max_t: u32, point_index: usize, tolerance: f32, ) -> f32
Trait Implementations§
source§impl Debug for ContourMeasure
impl Debug for ContourMeasure
source§impl Default for ContourMeasure
impl Default for ContourMeasure
source§fn default() -> ContourMeasure
fn default() -> ContourMeasure
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContourMeasure
impl RefUnwindSafe for ContourMeasure
impl Send for ContourMeasure
impl Sync for ContourMeasure
impl Unpin for ContourMeasure
impl UnwindSafe for ContourMeasure
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