public DestroyNotifyWrapper(Art.DestroyNotify managed) { this.managed = managed; if (managed != null) { NativeDelegate = new DestroyNotifyNative(NativeCallback); } }
public static PixBuf NewRgbaDnotify(out byte pixels, int width, int height, int rowstride, IntPtr dfunc_data, Art.DestroyNotify dfunc) { ArtSharp.DestroyNotifyWrapper dfunc_wrapper = new ArtSharp.DestroyNotifyWrapper(dfunc); PixBuf result = new PixBuf(art_pixbuf_new_rgba_dnotify(out pixels, width, height, rowstride, dfunc_data, dfunc_wrapper.NativeDelegate)); return(result); }
public PixBuf(out byte pixels, int width, int height, int rowstride, IntPtr dfunc_data, Art.DestroyNotify dfunc) { ArtSharp.DestroyNotifyWrapper dfunc_wrapper = new ArtSharp.DestroyNotifyWrapper(dfunc); Raw = art_pixbuf_new_rgb_dnotify(out pixels, width, height, rowstride, dfunc_data, dfunc_wrapper.NativeDelegate); }