Example #1
0
 public SizeFuncWrapper(Rsvg.SizeFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new SizeFuncNative(NativeCallback);
     }
 }
Example #2
0
        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);
        }
Example #3
0
 internal SizeFuncInvoker(SizeFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
Example #4
0
 internal SizeFuncInvoker(SizeFuncNative native_cb) : this(native_cb, IntPtr.Zero, null)
 {
 }
Example #5
0
 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);
 }
 internal SizeFuncInvoker(SizeFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data = data;
     __notify = notify;
 }
 internal SizeFuncInvoker(SizeFuncNative native_cb, IntPtr data)
     : this(native_cb, data, null)
 {
 }
 internal SizeFuncInvoker(SizeFuncNative native_cb)
     : this(native_cb, IntPtr.Zero, null)
 {
 }