pub struct StrokeStyle {
pub width: f64,
pub join: LineJoin,
pub miter_limit: f64,
pub cap: LineCap,
pub dash: Vec<f64>,
pub dash_offset: f64,
}Expand description
A stroke’s style, in the pixels of the space it is drawn in.
Fields§
§width: f64Full width.
join: LineJoinHow segments meet.
miter_limit: f64Longest a miter reaches, as a multiple of half the width.
cap: LineCapHow open ends look.
dash: Vec<f64>Alternating dash and gap lengths; solid when empty or all zero.
dash_offset: f64How far into the dash pattern the stroke starts.
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