pub struct Stroke {
pub width: f32,
pub color: Color,
pub join: Join,
pub cap: Cap,
pub closed: bool,
}Expand description
Line style for polyline and stroke_arc.
use ferravex_render::{Color, shapes::{Cap, Join, Stroke}};
let s = Stroke::new(3., Color::new(1., 1., 1., 1.)).join(Join::Round).cap(Cap::Round);
assert!(!s.closed);Fields§
§width: f32§color: Color§join: Join§cap: Cap§closed: boolConnect the last point back to the first.
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 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