pub struct DebugRasterizer { /* private fields */ }Expand description
A debug rasterizer
This simply collections all rasterizations into a paint list
Implementations§
Source§impl DebugRasterizer
impl DebugRasterizer
Sourcepub fn into_paint_list(self) -> Vec<(ViewId, Shape)>
pub fn into_paint_list(self) -> Vec<(ViewId, Shape)>
Get the paint list for the rasterization phase
Trait Implementations§
Source§impl Default for DebugRasterizer
impl Default for DebugRasterizer
Source§fn default() -> DebugRasterizer
fn default() -> DebugRasterizer
Returns the “default value” for a type. Read more
Source§impl Rasterizer for DebugRasterizer
impl Rasterizer for DebugRasterizer
Source§fn line(
&mut self,
axis: Axis,
offset: Pos2,
range: RangeInclusive<i32>,
pixel: Pixel,
)
fn line( &mut self, axis: Axis, offset: Pos2, range: RangeInclusive<i32>, pixel: Pixel, )
Draws a line in a specific orientation starting an offset
x0,x1..=y0,y1 using the provided pixelSource§fn get_mut(&mut self, _pos: Pos2) -> Option<&mut Cell>
fn get_mut(&mut self, _pos: Pos2) -> Option<&mut Cell>
Tries to get a cell at a specific position
Source§fn horizontal_line(&mut self, y: i32, range: RangeInclusive<i32>, pixel: Pixel)
fn horizontal_line(&mut self, y: i32, range: RangeInclusive<i32>, pixel: Pixel)
Draw a horizontal line at the
y offset between x0..=x1 using the provided pixelSource§fn vertical_line(&mut self, x: i32, range: RangeInclusive<i32>, pixel: Pixel)
fn vertical_line(&mut self, x: i32, range: RangeInclusive<i32>, pixel: Pixel)
Draw a vertical line at the
x offset between y0..=y1 using the provided pixelAuto Trait Implementations§
impl Freeze for DebugRasterizer
impl RefUnwindSafe for DebugRasterizer
impl Send for DebugRasterizer
impl Sync for DebugRasterizer
impl Unpin for DebugRasterizer
impl UnwindSafe for DebugRasterizer
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