Struct agg::cell::RasterizerCell
source · pub struct RasterizerCell {
pub min_x: i64,
pub max_x: i64,
pub min_y: i64,
pub max_y: i64,
pub sorted_y: Vec<Vec<Cell>>,
/* private fields */
}
Expand description
Collection of Cells
Fields
min_x: i64
Minimum x value of current cells
max_x: i64
Maximum x value of current cells
min_y: i64
Minimum y value of current cells
max_y: i64
Maximum y value of current cells
sorted_y: Vec<Vec<Cell>>
Cells sorted by y position, then x position
Implementations
sourceimpl RasterizerCell
impl RasterizerCell
sourcepub fn total_cells(&self) -> usize
pub fn total_cells(&self) -> usize
Return total number of cells
sourcepub fn sort_cells(&mut self)
pub fn sort_cells(&mut self)
Sort cells into sorted_y cells
Cells are distributed into y bins, then sorted by x value
sourcepub fn scanline_num_cells(&self, y: i64) -> usize
pub fn scanline_num_cells(&self, y: i64) -> usize
Return number of cells in a specific y row
sourcepub fn scanline_cells(&self, y: i64) -> &[Cell]
pub fn scanline_cells(&self, y: i64) -> &[Cell]
Returns the cells of a specific y row
Trait Implementations
sourceimpl Debug for RasterizerCell
impl Debug for RasterizerCell
sourceimpl Default for RasterizerCell
impl Default for RasterizerCell
sourcefn default() -> RasterizerCell
fn default() -> RasterizerCell
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for RasterizerCell
impl Send for RasterizerCell
impl Sync for RasterizerCell
impl Unpin for RasterizerCell
impl UnwindSafe for RasterizerCell
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more