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

The output of Hatcher::hatch_path.

Implement this trait to create custom hatching patterns.

Required Methods§

source

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

Called for each hatch segment.

source

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

Specifies the distance between each row of the pattern.

Implementors§