pub struct Line {
pub points: Vec<(Point, bool)>,
pub is_closed: bool,
pub has_fill: bool,
pub has_stroke: bool,
pub is_clipping_path: bool,
}
Fields
points: Vec<(Point, bool)>
2D Points for the line
is_closed: bool
Is the line closed or open?
has_fill: bool
Should the line be filled (via winding-number rule), for polygons
has_stroke: bool
Should the line have an outline (stroke)?
is_clipping_path: bool
Is this line a clipping path?
Implementations
sourceimpl Line
impl Line
sourcepub fn set_closed(&mut self, is_closed: bool)
pub fn set_closed(&mut self, is_closed: bool)
Sets if the line is closed or not
sourcepub fn set_stroke(&mut self, has_stroke: bool)
pub fn set_stroke(&mut self, has_stroke: bool)
Sets if the line is stroked (has an outline)
sourcepub fn set_as_clipping_path(&mut self, is_clipping_path: bool)
pub fn set_as_clipping_path(&mut self, is_clipping_path: bool)
Sets if the line is a clipping path
pub fn into_stream_op(self) -> Vec<Operation>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more