///
/// Draws the convex polygon defined by the first *pointCount* points
/// in the array *points* using the current pen.
///
/// * ![qpainter-polygon.png](qpainter-polygon.png)
///
///
///
/// The first point is implicitly connected to the last point, and the
/// polygon is filled with the current brush(). If the supplied
/// polygon is not convex, i.e. it contains at least one angle larger
/// than 180 degrees, the results are undefined.
///
/// On some platforms (e.g. X11), the drawConvexPolygon() function can
/// be faster than the drawPolygon() function.
///
/// **See also:** [`draw_polygon()`]
/// [`draw_polyline()`]
/// {Coordinate System}
///
/// **Overloads**
/// Draws the convex polygon defined by the first *pointCount* points
/// in the array *points* using the current pen.
///
/// **Overloads**
/// Draws the convex polygon defined by *polygon* using the current
/// pen and brush.
///
/// **Overloads**
/// Draws the convex polygon defined by *polygon* using the current
/// pen and brush.
Draws the convex polygon defined by the first *pointCount* points
in the array *points* using the current pen.





The first point is implicitly connected to the last point, and the
polygon is filled with the current brush(). If the supplied
polygon is not convex, i.e. it contains at least one angle larger
than 180 degrees, the results are undefined.

On some platforms , the drawConvexPolygon() function can
be faster than the drawPolygon() function.



Overloads
Draws the convex polygon defined by the first *pointCount* points
in the array *points* using the current pen.

Overloads
Draws the convex polygon defined by *polygon* using the current
pen and brush.

Overloads
Draws the convex polygon defined by *polygon* using the current
pen and brush.
Draws the convex polygon defined by the first * pointCount * points in the array * points * using the current pen . The first point is implicitly connected to the last point and the polygon is filled with the current brush () . If the supplied polygon is not convex i . e . it contains at least one angle larger than 180 degrees the results are undefined . On some platforms the drawConvexPolygon () function can be faster than the drawPolygon () function . Overloads Draws the convex polygon defined by the first * pointCount * points in the array * points * using the current pen . Overloads Draws the convex polygon defined by * polygon * using the current pen and brush . Overloads Draws the convex polygon defined by * polygon * using the current pen and brush .
pub fn draw_convex_polygon_2<P: PolygonFTrait<'a>>(&self, polygon: &P) -> &Self {
        let (obj_polygon_1, _funcs) = polygon.get_polygon_f_obj_funcs();
        let (obj_data, funcs) = self.get_painter_obj_funcs();
        unsafe {
            ((*funcs).draw_convex_polygon_2)(obj_data, obj_polygon_1);
        }
        self
    }
pub fn draw_convex_polygon_2 < P : PolygonFTrait < ' a > > ( & self , polygon : & P ) -> & Self { let ( obj_polygon_1 , _funcs ) = polygon . get_polygon_f_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_painter_obj_funcs ( ) ; unsafe { ( ( * funcs ) . draw_convex_polygon_2 ) ( obj_data , obj_polygon_1 ) ; } self }
Draws the convex polygon defined by the first *pointCount* points
in the array *points* using the current pen.
Draws the convex polygon defined by the first * pointCount * points in the array * points * using the current pen .
&self
polygon
&P