pub struct ConvContour<VS: VertexSource> { /* private fields */ }Expand description
Contour converter: generates an offset contour from a closed polygon.
Port of C++ conv_contour<VertexSource>.
Implementations§
Source§impl<VS: VertexSource> ConvContour<VS>
impl<VS: VertexSource> ConvContour<VS>
pub fn new(source: VS) -> Self
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 source(&self) -> &VS
pub fn source_mut(&mut self) -> &mut VS
Trait Implementations§
Source§impl<VS: VertexSource> VertexSource for ConvContour<VS>
impl<VS: VertexSource> VertexSource for ConvContour<VS>
Auto Trait Implementations§
impl<VS> Freeze for ConvContour<VS>where
VS: Freeze,
impl<VS> RefUnwindSafe for ConvContour<VS>where
VS: RefUnwindSafe,
impl<VS> Send for ConvContour<VS>where
VS: Send,
impl<VS> Sync for ConvContour<VS>where
VS: Sync,
impl<VS> Unpin for ConvContour<VS>where
VS: Unpin,
impl<VS> UnwindSafe for ConvContour<VS>where
VS: UnwindSafe,
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