pub struct Poly { /* private fields */ }
Expand description
This structure represents a polygon to draw.
Implementations
sourceimpl 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
sourceimpl Boxed for Poly
impl Boxed for Poly
sourceimpl PolyTrait for Poly
impl PolyTrait for Poly
fn as_raw_mut_Poly(&mut self) -> *mut c_void
sourcefn set_points(&mut self, val: Vector<Point>)
fn set_points(&mut self, val: Vector<Point>)
Points to connect
sourceimpl PolyTraitConst for Poly
impl PolyTraitConst for Poly
fn as_raw_Poly(&self) -> *const c_void
impl Send for Poly
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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