pub struct Stroke {
pub miter_limit: f64,
pub thickness: f64,
pub join: StrokeJoin,
pub cap: StrokeCap,
}Fields§
§miter_limit: f64§thickness: f64§join: StrokeJoin§cap: StrokeCapImplementations§
Source§impl Stroke
impl Stroke
pub fn thickness(self, thickness: f64) -> Self
pub fn miter_limit(self, miter_limit: f64) -> Self
pub fn join(self, join: StrokeJoin) -> Self
pub fn cap(self, cap: StrokeCap) -> Self
pub fn build(self, points: &[[f64; 2]]) -> Mesh
pub fn build_with_thickness_fn( self, points: &[[f64; 2]], thickness_fn: impl FnMut([f64; 2], usize, &[[f64; 2]]) -> f64, ) -> Mesh
Trait Implementations§
impl Copy for Stroke
impl StructuralPartialEq for Stroke
Auto Trait Implementations§
impl Freeze for Stroke
impl RefUnwindSafe for Stroke
impl Send for Stroke
impl Sync for Stroke
impl Unpin for Stroke
impl UnwindSafe for Stroke
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