pub struct Poly { /* private fields */ }
Expand description
This structure represents a polygon to draw.
Implementations§
source§impl Poly
impl Poly
sourcepub fn new(
points_: &Vector<Point>,
color_: Scalar,
thick_: i32,
lt_: i32,
shift_: i32
) -> Result<Poly>
pub fn new( points_: &Vector<Point>, color_: Scalar, thick_: i32, lt_: i32, shift_: i32 ) -> Result<Poly>
Mosaic constructor
Parameters
- points_: Points to connect
- color_: The line color
- thick_: The thickness of line
- lt_: The Type of the line. See #LineTypes
- shift_: The number of fractional bits in the point coordinate
C++ default parameters
- thick_: 1
- lt_: 8
- shift_: 0
pub fn default() -> Poly
Trait Implementations§
source§impl Boxed for Poly
impl Boxed for Poly
source§impl PolyTrait for Poly
impl PolyTrait for Poly
fn as_raw_mut_Poly(&mut self) -> *mut c_void
source§fn set_points(&mut self, val: Vector<Point>)
fn set_points(&mut self, val: Vector<Point>)
Points to connect