pub struct StripGenerator {
level: Level,
line_buf: Vec<Line>,
flatten_ctx: FlattenCtx,
stroke_ctx: StrokeCtx,
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§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,
)
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, )
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,
)
pub fn generate_stroked_path( &mut self, path: impl IntoIterator<Item = PathEl>, stroke: &Stroke, transform: Affine, aliasing_threshold: Option<u8>, strip_storage: &mut StripStorage, )
Generate the strips for a stroked path.
fn make_strips( &mut self, strip_storage: &mut StripStorage, fill_rule: Fill, aliasing_threshold: Option<u8>, )
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 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