pub struct StripGenerator {
pub(crate) level: Level,
line_buf: Vec<Line>,
flatten_ctx: FlattenCtx,
stroke_ctx: StrokeCtx,
temp_storage: StripStorage,
tiles: Tiles,
width: u16,
height: u16,
}Expand description
An object for easily generating strips for a filled/stroked path.
Fields§
§level: Level§line_buf: Vec<Line>§flatten_ctx: FlattenCtx§stroke_ctx: StrokeCtx§temp_storage: StripStorage§tiles: Tiles§width: u16§height: u16Implementations§
Source§impl StripGenerator
impl StripGenerator
Sourcepub fn generate_filled_path(
&mut self,
path: impl IntoIterator<Item = PathEl>,
fill_rule: Fill,
transform: Affine,
aliasing_threshold: Option<u8>,
strip_storage: &mut StripStorage,
clip_path: Option<PathDataRef<'_>>,
)
pub fn generate_filled_path( &mut self, path: impl IntoIterator<Item = PathEl>, fill_rule: Fill, transform: Affine, aliasing_threshold: Option<u8>, strip_storage: &mut StripStorage, clip_path: Option<PathDataRef<'_>>, )
Generate the strips for a filled path.
Sourcepub fn generate_stroked_path(
&mut self,
path: impl IntoIterator<Item = PathEl>,
stroke: &Stroke,
transform: Affine,
aliasing_threshold: Option<u8>,
strip_storage: &mut StripStorage,
clip_path: Option<PathDataRef<'_>>,
)
pub fn generate_stroked_path( &mut self, path: impl IntoIterator<Item = PathEl>, stroke: &Stroke, transform: Affine, aliasing_threshold: Option<u8>, strip_storage: &mut StripStorage, clip_path: Option<PathDataRef<'_>>, )
Generate the strips for a stroked path.
fn generate_with_clip( &mut self, aliasing_threshold: Option<u8>, strip_storage: &mut StripStorage, fill_rule: Fill, clip_path: Option<PathDataRef<'_>>, )
Sourcepub fn generate_filled_rect_fast(
&mut self,
rect: &Rect,
strip_storage: &mut StripStorage,
clip_path: Option<PathDataRef<'_>>,
)
pub fn generate_filled_rect_fast( &mut self, rect: &Rect, strip_storage: &mut StripStorage, clip_path: Option<PathDataRef<'_>>, )
Generate strips directly for a pixel-aligned rectangle.
This bypasses the full path processing pipeline (flatten -> tiles -> strips) by directly creating strip coverage data for the rectangle.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StripGenerator
impl RefUnwindSafe for StripGenerator
impl Send for StripGenerator
impl Sync for StripGenerator
impl Unpin for StripGenerator
impl UnsafeUnpin for StripGenerator
impl UnwindSafe for StripGenerator
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