pub fn paint_device(&self) -> Option<PaintDevice> {
        let (obj_data, funcs) = self.get_paint_engine_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).paint_device)(obj_data);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = PaintDevice::new_from_rc(t);
            } else {
                ret_val = PaintDevice::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
///
/// Returns the device that this engine is painting on, if painting is
/// active; otherwise returns 0.
Returns the device that this engine is painting on, if painting is
active; otherwise returns 0.
Returns the device that this engine is painting on if painting is active ; otherwise returns 0 .
pub fn paint_device(&self) -> Option<PaintDevice> {
        let (obj_data, funcs) = self.get_paint_engine_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).paint_device)(obj_data);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = PaintDevice::new_from_rc(t);
            } else {
                ret_val = PaintDevice::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn paint_device ( & self ) -> Option < PaintDevice > { let ( obj_data , funcs ) = self . get_paint_engine_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . paint_device ) ( obj_data ) ; if ret_val . qt_data == :: std :: ptr :: null ( ) { return None ; } let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = PaintDevice :: new_from_rc ( t ) ; } else { ret_val = PaintDevice :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Returns the device that this engine is painting on, if painting is
active; otherwise returns 0.
Returns the device that this engine is painting on if painting is active ; otherwise returns 0 .
&self
&self