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§
source§impl 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