pub struct Stroke {
pub width: f32,
pub miter_limit: f32,
pub line_cap: LineCap,
pub line_join: LineJoin,
pub dash: Option<StrokeDash>,
}
Expand description
Stroke properties.
Fields§
§width: f32
A stroke thickness.
Must be >= 0.
When set to 0, a hairline stroking will be used.
Default: 1.0
miter_limit: f32
The limit at which a sharp corner is drawn beveled.
Default: 4.0
line_cap: LineCap
A stroke line cap.
Default: Butt
line_join: LineJoin
A stroke line join.
Default: Miter
dash: Option<StrokeDash>
A stroke dashing properties.
Default: None
Trait Implementations§
source§impl PartialEq for Stroke
impl PartialEq for Stroke
impl StructuralPartialEq for Stroke
Auto Trait Implementations§
impl RefUnwindSafe for Stroke
impl Send for Stroke
impl Sync for Stroke
impl Unpin 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