pub struct Stroke {
pub width: f32,
pub line_cap: LineCap,
pub line_join: LineJoin,
pub miter_limit: f32,
pub dash: Vec<f32>,
pub dash_offset: f32,
}Expand description
Stroke parameters.
A width of 0.0 (or less) means a “hairline”: the line is drawn exactly one
device pixel wide regardless of scale (see Pixmap::stroke_path).
A dash pattern is given by a non-empty dash: an alternation of lengths
“dash, gap, dash, …” in user units. An odd-length list is implicitly
doubled. dash_offset shifts the phase of the pattern.
Fields§
§width: f32§line_cap: LineCap§line_join: LineJoin§miter_limit: f32§dash: Vec<f32>The dash pattern; empty — a solid line.
dash_offset: f32The dash phase offset.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stroke
impl RefUnwindSafe for Stroke
impl Send for Stroke
impl Sync for Stroke
impl Unpin for Stroke
impl UnsafeUnpin 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