pub struct VcgenStroke { /* private fields */ }Expand description
Stroke vertex generator.
Accumulates source path vertices, then generates a stroked outline
using MathStroke for join/cap calculations.
Port of C++ vcgen_stroke.
Implementations§
Source§impl VcgenStroke
impl VcgenStroke
pub fn new() -> Self
pub fn set_line_cap(&mut self, lc: LineCap)
pub fn line_cap(&self) -> LineCap
pub fn set_line_join(&mut self, lj: LineJoin)
pub fn line_join(&self) -> LineJoin
pub fn set_inner_join(&mut self, ij: InnerJoin)
pub fn inner_join(&self) -> InnerJoin
pub fn set_width(&mut self, w: f64)
pub fn width(&self) -> f64
pub fn set_miter_limit(&mut self, ml: f64)
pub fn miter_limit(&self) -> f64
pub fn set_miter_limit_theta(&mut self, t: f64)
pub fn set_inner_miter_limit(&mut self, ml: f64)
pub fn inner_miter_limit(&self) -> f64
pub fn set_approximation_scale(&mut self, s: f64)
pub fn approximation_scale(&self) -> f64
pub fn set_shorten(&mut self, s: f64)
pub fn shorten(&self) -> f64
pub fn remove_all(&mut self)
pub fn add_vertex(&mut self, x: f64, y: f64, cmd: u32)
pub fn rewind(&mut self, _path_id: u32)
pub fn vertex(&mut self, x: &mut f64, y: &mut f64) -> u32
Trait Implementations§
Source§impl Default for VcgenStroke
impl Default for VcgenStroke
Auto Trait Implementations§
impl Freeze for VcgenStroke
impl RefUnwindSafe for VcgenStroke
impl Send for VcgenStroke
impl Sync for VcgenStroke
impl Unpin for VcgenStroke
impl UnwindSafe for VcgenStroke
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