/// 
/// Adds the given *region* to the path by adding each rectangle in
/// the region as a separate closed subpath.
/// 
/// **See also:** addRect()
/// {QPainterPath#Composing a QPainterPath}{Composing
/// a QPainterPath}
Adds the given *region* to the path by adding each rectangle in
the region as a separate closed subpath.


Adds the given * region * to the path by adding each rectangle in the region as a separate closed subpath .
fn add_region<R: RegionType<'a>>(&self, region: &R) -> &Self {
        let (obj_region_1, _funcs) = region.get_region_obj_funcs();
        let (obj_data, funcs) = self.get_painter_path_obj_funcs();
        unsafe {
            ((*funcs).add_region)(obj_data, obj_region_1);
        }
        self
    }
fn add_region < R : RegionType < ' a > > ( & self , region : & R ) -> & Self { let ( obj_region_1 , _funcs ) = region . get_region_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_painter_path_obj_funcs ( ) ; unsafe { ( ( * funcs ) . add_region ) ( obj_data , obj_region_1 ) ; } self }
Adds the given *region* to the path by adding each rectangle in
the region as a separate closed subpath.
Adds the given * region * to the path by adding each rectangle in the region as a separate closed subpath .
&self
region
&R