pub struct VcgenContour { /* private fields */ }Expand description
Contour vertex generator.
Generates an offset contour (inset or outset) from a closed polygon.
Uses MathStroke for join calculations.
Port of C++ vcgen_contour.
Implementations§
Source§impl VcgenContour
impl VcgenContour
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_auto_detect_orientation(&mut self, v: bool)
pub fn auto_detect_orientation(&self) -> bool
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 VcgenContour
impl Default for VcgenContour
Auto Trait Implementations§
impl Freeze for VcgenContour
impl RefUnwindSafe for VcgenContour
impl Send for VcgenContour
impl Sync for VcgenContour
impl Unpin for VcgenContour
impl UnwindSafe for VcgenContour
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