pub struct Stroke {
pub color: Color,
pub width: f32,
pub cap: StrokeCap,
}Expand description
An outline (the line a path is drawn with): colour, width, in pixels, and how its ends are drawn.
Fields§
§color: ColorThe line’s colour.
width: f32The line’s width, in logical pixels.
cap: StrokeCapHow an open line ends. StrokeCap::Butt unless said otherwise.
Implementations§
Trait Implementations§
impl Copy for Stroke
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 UnsafeUnpin 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