pub struct StrokeStyle {
pub width: f32,
pub join: LineJoin,
pub cap: LineCap,
pub miter_limit: f32,
}Expand description
Parameters controlling how a path’s outline is stroked.
Fields§
§width: f32Stroke width in logical pixels.
join: LineJoinCorner join style.
cap: LineCapEnd-cap style for open sub-paths.
miter_limit: f32Maximum ratio of miter length to stroke width before the join is clipped to a bevel.
Trait Implementations§
Source§impl Clone for StrokeStyle
impl Clone for StrokeStyle
Source§fn clone(&self) -> StrokeStyle
fn clone(&self) -> StrokeStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
Source§fn eq(&self, other: &StrokeStyle) -> bool
fn eq(&self, other: &StrokeStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy 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