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§
Sourcefn add_segment(&mut self, segment: &HatchSegment)
fn add_segment(&mut self, segment: &HatchSegment)
Called for each hatch segment.
Sourcefn next_offset(&mut self, row_idx: u32) -> f32
fn next_offset(&mut self, row_idx: u32) -> f32
Specifies the distance between each row of the pattern.