Struct printpdf::types::plugins::graphics::two_dimensional::line::Line
[−]
[src]
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?
Methods
impl Line
[src]
fn set_closed(&mut self, is_closed: bool)
[src]
Sets if the line is closed or not
fn set_fill(&mut self, has_fill: bool)
[src]
Sets if the line is filled
fn set_stroke(&mut self, has_stroke: bool)
[src]
Sets if the line is stroked (has an outline)
fn set_as_clipping_path(&mut self, is_clipping_path: bool)
[src]
Sets if the line is a clipping path
fn into_stream_op(self) -> Vec<Operation>
[src]
Trait Implementations
impl Debug for Line
[src]
impl Clone for Line
[src]
fn clone(&self) -> Line
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more