///
/// Returns the widget's paint engine.
///
/// Note that this function should not be called explicitly by the
/// user, since it's meant for reimplementation purposes only. The
/// function is called by Qt internally, and the default
/// implementation may not always return a valid pointer.
Returns the widget's paint engine.
Note that this function should not be called explicitly by the
user, since it's meant for reimplementation purposes only. The
function is called by Qt internally, and the default
implementation may not always return a valid pointer.
Returns the widget ' s paint engine . Note that this function should not be called explicitly by the user since it ' s meant for reimplementation purposes only . The function is called by Qt internally and the default implementation may not always return a valid pointer .
pub fn paint_engine(&self) -> Option<PaintEngine> {
        let (obj_data, funcs) = self.get_widget_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).paint_engine)(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 = PaintEngine::new_from_rc(t);
            } else {
                ret_val = PaintEngine::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn paint_engine ( & self ) -> Option < PaintEngine > { let ( obj_data , funcs ) = self . get_widget_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . paint_engine ) ( 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 = PaintEngine :: new_from_rc ( t ) ; } else { ret_val = PaintEngine :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Returns the widget's paint engine.
Returns the widget ' s paint engine .
&self