pub struct Rasterizer {
edge_starts: Vec<Option<NonNull<ActiveEdge>>>,
width: i32,
height: i32,
cur_y: i32,
bounds_top: i32,
bounds_bottom: i32,
bounds_left: i32,
bounds_right: i32,
active_edges: Option<NonNull<ActiveEdge>>,
edge_arena: Arena<ActiveEdge>,
}
Fields§
§edge_starts: Vec<Option<NonNull<ActiveEdge>>>
§width: i32
§height: i32
§cur_y: i32
§bounds_top: i32
§bounds_bottom: i32
§bounds_left: i32
§bounds_right: i32
§active_edges: Option<NonNull<ActiveEdge>>
§edge_arena: Arena<ActiveEdge>
Implementations§
source§impl Rasterizer
impl Rasterizer
pub fn new(width: i32, height: i32) -> Rasterizer
source§impl Rasterizer
impl Rasterizer
pub fn add_edge( &mut self, start: Point, end: Point, curve: bool, control: Point, )
fn step_edges(&mut self)
fn insert_starting_edges(&mut self)
fn scan_edges(&mut self, blitter: &mut dyn RasterBlitter, winding_mode: Winding)
fn sort_edges(&mut self)
pub fn rasterize( &mut self, blitter: &mut dyn RasterBlitter, winding_mode: Winding, )
pub fn get_bounds(&self) -> IntRect
pub fn reset(&mut self)
Auto Trait Implementations§
impl !Freeze for Rasterizer
impl !RefUnwindSafe for Rasterizer
impl !Send for Rasterizer
impl !Sync for Rasterizer
impl Unpin for Rasterizer
impl UnwindSafe for Rasterizer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more