pub struct ConvStroke<VS: VertexSource> { /* private fields */ }Expand description
Stroke converter: generates a stroked outline from a center-line path.
Port of C++ conv_stroke<VertexSource>.
Implementations§
Source§impl<VS: VertexSource> ConvStroke<VS>
impl<VS: VertexSource> ConvStroke<VS>
pub fn new(source: VS) -> 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 source(&self) -> &VS
pub fn source_mut(&mut self) -> &mut VS
Trait Implementations§
Source§impl<VS: VertexSource> VertexSource for ConvStroke<VS>
impl<VS: VertexSource> VertexSource for ConvStroke<VS>
Auto Trait Implementations§
impl<VS> Freeze for ConvStroke<VS>where
VS: Freeze,
impl<VS> RefUnwindSafe for ConvStroke<VS>where
VS: RefUnwindSafe,
impl<VS> Send for ConvStroke<VS>where
VS: Send,
impl<VS> Sync for ConvStroke<VS>where
VS: Sync,
impl<VS> Unpin for ConvStroke<VS>where
VS: Unpin,
impl<VS> UnwindSafe for ConvStroke<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