pub struct StrokeStyle {
pub width: f32,
pub cap: LineCap,
pub join: LineJoin,
pub miter_limit: f32,
}Expand description
A stroke’s width, caps, joins, and miter limit.
Fields§
§width: f32The stroke width. A zero or negative width yields an empty path: there is no region to fill.
cap: LineCapThe end treatment.
join: LineJoinThe corner treatment.
miter_limit: f32The longest miter, as a multiple of the stroke width.
Implementations§
Source§impl StrokeStyle
impl StrokeStyle
Trait Implementations§
Source§impl Clone for StrokeStyle
impl Clone for StrokeStyle
impl Copy 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