Struct tiny_skia_path::Stroke
source · 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§
impl StructuralPartialEq for Stroke
Auto Trait Implementations§
impl Freeze for Stroke
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)