pub struct StrokeStyle {
pub width: f32,
pub cap: LineCap,
pub join: LineJoin,
pub miter_limit: f32,
pub dash: Option<Dash>,
}Fields§
§width: f32§cap: LineCap§join: LineJoin§miter_limit: f32§dash: Option<Dash>Implementations§
Source§impl StrokeStyle
impl StrokeStyle
pub fn new(width: f32) -> Self
pub fn width(self, width: f32) -> Self
pub fn cap(self, cap: LineCap) -> Self
pub fn join(self, join: LineJoin) -> Self
pub fn miter_limit(self, limit: f32) -> Self
pub fn dash(self, dash: impl Into<Dash>) -> Self
pub fn round(width: f32) -> Self
Trait Implementations§
Source§impl Clone for StrokeStyle
impl Clone for StrokeStyle
Source§impl Debug for StrokeStyle
impl Debug for StrokeStyle
Source§impl Default for StrokeStyle
impl Default for StrokeStyle
Source§impl PartialEq for StrokeStyle
impl PartialEq for StrokeStyle
impl StructuralPartialEq for StrokeStyle
Auto Trait Implementations§
impl Freeze for StrokeStyle
impl RefUnwindSafe for StrokeStyle
impl Send for StrokeStyle
impl Sync for StrokeStyle
impl Unpin for StrokeStyle
impl UnsafeUnpin for StrokeStyle
impl UnwindSafe for StrokeStyle
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