public SizeFuncWrapper(Rsvg.SizeFunc managed) { this.managed = managed; if (managed != null) { NativeDelegate = new SizeFuncNative(NativeCallback); } }
public static Rsvg.SizeFunc GetManagedDelegate(SizeFuncNative native) { if (native == null) { return(null); } SizeFuncWrapper wrapper = (SizeFuncWrapper)native.Target; if (wrapper == null) { return(null); } return(wrapper.managed); }
internal SizeFuncInvoker(SizeFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal SizeFuncInvoker(SizeFuncNative native_cb) : this(native_cb, IntPtr.Zero, null) { }
internal SizeFuncInvoker(SizeFuncNative native_cb, IntPtr data) : this(native_cb, data, null) { }
public static Rsvg.SizeFunc GetManagedDelegate(SizeFuncNative native) { if (native == null) return null; SizeFuncWrapper wrapper = (SizeFuncWrapper) native.Target; if (wrapper == null) return null; return wrapper.managed; }
public SizeFuncWrapper(Rsvg.SizeFunc managed) { this.managed = managed; if (managed != null) NativeDelegate = new SizeFuncNative (NativeCallback); }