[][src]Trait lyon_algorithms::hatching::HatchBuilder

pub trait HatchBuilder {
    fn add_segment(&mut self, segment: &HatchSegment);
fn next_offset(&mut self, row_idx: u32) -> f32; }

The output of Hatcher::hatch_path.

Implement this trait to create custom hatching patterns.

Required methods

fn add_segment(&mut self, segment: &HatchSegment)

Called for each hatch segment.

fn next_offset(&mut self, row_idx: u32) -> f32

Specifies the distance between each row of the pattern.

Loading content...

Implementors

impl<Cb: FnMut(&HatchSegment)> HatchBuilder for RegularHatchingPattern<Cb>[src]

Loading content...