pub struct Stroke {
pub width: f32,
pub cap: Cap,
pub join: Join,
pub miter_limit: f32,
pub dash: Option<Dash>,
}Expand description
Stroke describes the width, ends, joins, and optional dash pattern of a line.
Fields§
§width: f32width is the full stroke width in path coordinates.
cap: Capcap controls the ends of open contours and dashes.
join: Joinjoin controls how consecutive segments meet.
miter_limit: f32miter_limit is the maximum miter length divided by half the stroke width.
Longer miters fall back to bevel joins. The default is 4.0.
dash: Option<Dash>dash optionally divides contours into alternating painted and skipped lengths.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Stroke
Auto Trait Implementations§
impl Forget for Stroke
impl Freeze for Stroke
impl Move for Stroke
impl RefUnwindSafe for Stroke
impl Send for Strokewhere
RawVecInner: Send,
impl Sync for Strokewhere
RawVecInner: Sync,
impl Unpin for Stroke
impl UnsafeUnpin for Stroke
impl UnwindSafe for Strokewhere
RawVecInner: UnwindSafe,
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