pub struct NewVectorLine {
pub points: Vec<(f64, f64, f64)>,
pub closed: bool,
pub width_px: f64,
}Expand description
A line to draw as a new vector object, in layer pixels.
Fields§
§points: Vec<(f64, f64, f64)>(x, y, width factor); the factor (pen pressure) is 0..1.
closed: boolJoin the last point to the first.
width_px: f64Full line width in pixels.
Implementations§
Trait Implementations§
Source§impl Clone for NewVectorLine
impl Clone for NewVectorLine
Source§impl Debug for NewVectorLine
impl Debug for NewVectorLine
Source§impl PartialEq for NewVectorLine
impl PartialEq for NewVectorLine
impl StructuralPartialEq for NewVectorLine
Auto Trait Implementations§
impl Freeze for NewVectorLine
impl RefUnwindSafe for NewVectorLine
impl Send for NewVectorLine
impl Sync for NewVectorLine
impl Unpin for NewVectorLine
impl UnsafeUnpin for NewVectorLine
impl UnwindSafe for NewVectorLine
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