///
/// Reimplement this function to initialise your paint engine when
/// painting is to start on the paint device *pdev.* Return true if
/// the initialization was successful; otherwise return false.
///
/// **See also:** [`end()`]
/// [`is_active()`]
Reimplement this function to initialise your paint engine when
painting is to start on the paint device *pdev.* Return true if
the initialization was successful; otherwise return false.


Reimplement this function to initialise your paint engine when painting is to start on the paint device * pdev . * Return true if the initialization was successful ; otherwise return false .
pub fn begin<P: PaintDeviceTrait<'a>>(&self, pdev: &P) -> bool {
        let (obj_pdev_1, _funcs) = pdev.get_paint_device_obj_funcs();
        let (obj_data, funcs) = self.get_paint_engine_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).begin)(obj_data, obj_pdev_1);
            ret_val
        }
    }
pub fn begin < P : PaintDeviceTrait < ' a > > ( & self , pdev : & P ) -> bool { let ( obj_pdev_1 , _funcs ) = pdev . get_paint_device_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_paint_engine_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . begin ) ( obj_data , obj_pdev_1 ) ; ret_val } }
Reimplement this function to initialise your paint engine when
painting is to start on the paint device *pdev.
Reimplement this function to initialise your paint engine when painting is to start on the paint device * pdev .
&self
pdev
&P