[][src]Trait lyon_algorithms::hatching::DotBuilder

pub trait DotBuilder {
    fn next_row_offset(&mut self, column: u32, row: u32) -> f32;
fn next_column_offset(&mut self, column: u32, row: u32) -> f32;
fn add_dot(&mut self, dot: &Dot); fn first_column_offset(&mut self, _row: u32) -> f32 { ... }
fn alignment(&mut self, _row: u32) -> Option<f32> { ... } }

The output of Hatcher::dot_path.

Implement this trait to create custom dot patterns.

Required methods

fn next_row_offset(&mut self, column: u32, row: u32) -> f32

Called for each row of dots.

fn next_column_offset(&mut self, column: u32, row: u32) -> f32

Distance between each dot in a given row.

fn add_dot(&mut self, dot: &Dot)

Called for each dot.

Loading content...

Provided methods

fn first_column_offset(&mut self, _row: u32) -> f32

Offset of the first dot after a left edge.

fn alignment(&mut self, _row: u32) -> Option<f32>

Whether and how much to align the dots for a given row.

Loading content...

Implementors

impl<Cb: FnMut(&Dot)> DotBuilder for RegularDotPattern<Cb>[src]

fn first_column_offset(&mut self, _row: u32) -> f32[src]

Loading content...