pub(crate) fn rebuild(&self, handle: HWND) -> Result<(), PlottersError> {
        let mut target = self.target_mut();
        let new_size = unsafe { client_size(handle) };
        if target.size != new_size || target.last_error == D2DERR_RECREATE_TARGET {
            *target = unsafe { build_render_target(handle, &mut *self.renderer)? };
        }


        target.allocate_pixel_bitmap(self.renderer);

        Ok(())
    }
/// Rebuilds the inner target if needed
Rebuilds the inner target if needed
Rebuilds the inner target if needed
pub(crate) fn rebuild(&self, handle: HWND) -> Result<(), PlottersError> {
        let mut target = self.target_mut();
        let new_size = unsafe { client_size(handle) };
        if target.size != new_size || target.last_error == D2DERR_RECREATE_TARGET {
            *target = unsafe { build_render_target(handle, &mut *self.renderer)? };
        }
        target.allocate_pixel_bitmap(self.renderer);
        Ok(())
    }
pub ( crate ) fn rebuild ( & self , handle : HWND ) -> Result < ( ) , PlottersError > { let mut target = self . target_mut ( ) ; let new_size = unsafe { client_size ( handle ) } ; if target . size != new_size || target . last_error == D2DERR_RECREATE_TARGET { * target = unsafe { build_render_target ( handle , & mut * self . renderer ) ? } ; } target . allocate_pixel_bitmap ( self . renderer ) ; Ok ( ( ) ) }
Rebuilds the inner target if needed
Rebuilds the inner target if needed
&self
handle
HWND