pub struct StrokeStyle {
pub width: f64,
pub cap: LineCap,
pub join: LineJoin,
pub dash: Vec<f64>,
pub dash_offset: f64,
}Expand description
How an outline is drawn.
Fields§
§width: f64Line width in local units.
cap: LineCapEnd shape.
join: LineJoinCorner shape.
dash: Vec<f64>On/off lengths in local units; empty means solid.
dash_offset: f64Shift of the dash pattern along the outline.
Implementations§
Trait Implementations§
Source§impl Clone for StrokeStyle
impl Clone for StrokeStyle
Source§impl Debug for StrokeStyle
impl Debug 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