Struct tiny_skia::Stroke [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for Stroke
impl UnwindSafe for Stroke
Blanket Implementations
Mutably borrows from an owned value. Read more