pub trait Rastive {
// Required methods
fn reset(&mut self, min: FixedPoint, max: FixedPoint);
fn bounds(&self) -> (FixedPoint, FixedPoint);
fn store(&mut self, x: i32, y: i32, area: i32, cover: i32);
fn cells(&self) -> &[Cell];
fn lines(&self) -> &[i32];
// Provided methods
fn non_zero(&self, mask: &mut dyn Maskive) { ... }
fn even_odd(&self, mask: &mut dyn Maskive) { ... }
fn rasterize(&self, rule: FillRule, mask: &mut dyn Maskive) { ... }
}Expand description
A trait for rasterization operations.
Required Methods§
Sourcefn reset(&mut self, min: FixedPoint, max: FixedPoint)
fn reset(&mut self, min: FixedPoint, max: FixedPoint)
Resets the rasterizer with new bounds.
Sourcefn bounds(&self) -> (FixedPoint, FixedPoint)
fn bounds(&self) -> (FixedPoint, FixedPoint)
Gets the current bounds of the rasterizer.