///
/// Returns the currently set clip region. Note that the clip region
/// is given in logical coordinates.
///
/// **Warning**: QPainter does not store the combined clip explicitly as
/// this is handled by the underlying QPaintEngine, so the path is
/// recreated on demand and transformed to the current logical
/// coordinate system. This is potentially an expensive operation.
///
/// **See also:** [`set_clip_region()`]
/// [`clip_path()`]
/// [`set_clipping()`]
Returns the currently set clip region. Note that the clip region
is given in logical coordinates.

Warning**: QPainter does not store the combined clip explicitly as
this is handled by the underlying QPaintEngine, so the path is
recreated on demand and transformed to the current logical
coordinate system. This is potentially an expensive operation.


Returns the currently set clip region . Note that the clip region is given in logical coordinates . Warning ** : QPainter does not store the combined clip explicitly as this is handled by the underlying QPaintEngine so the path is recreated on demand and transformed to the current logical coordinate system . This is potentially an expensive operation .
pub fn clip_region(&self) -> Region {
        let (obj_data, funcs) = self.get_painter_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).clip_region)(obj_data);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Region::new_from_rc(t);
            } else {
                ret_val = Region::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn clip_region ( & self ) -> Region { let ( obj_data , funcs ) = self . get_painter_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . clip_region ) ( obj_data ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Region :: new_from_rc ( t ) ; } else { ret_val = Region :: new_from_owned ( t ) ; } ret_val } }
Returns the currently set clip region.
Returns the currently set clip region .
&self