Exemple #1
0
 public GSourceFuncWrapper(GLib.GSourceFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new GSourceFuncNative(NativeCallback);
     }
 }
		public static GLib.GSourceFunc GetManagedDelegate (GSourceFuncNative native)
		{
			if (native == null)
				return null;
			GSourceFuncWrapper wrapper = (GSourceFuncWrapper) native.Target;
			if (wrapper == null)
				return null;
			return wrapper.managed;
		}
Exemple #3
0
        public static GLib.GSourceFunc GetManagedDelegate(GSourceFuncNative native)
        {
            if (native == null)
            {
                return(null);
            }
            GSourceFuncWrapper wrapper = (GSourceFuncWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }
Exemple #4
0
 internal GSourceFuncInvoker(GSourceFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
Exemple #5
0
 internal GSourceFuncInvoker(GSourceFuncNative native_cb, IntPtr data) : this(native_cb, data, null)
 {
 }
Exemple #6
0
 internal GSourceFuncInvoker(GSourceFuncNative native_cb) : this(native_cb, IntPtr.Zero, null)
 {
 }
		public GSourceFuncWrapper (GLib.GSourceFunc managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new GSourceFuncNative (NativeCallback);
		}
		internal GSourceFuncInvoker (GSourceFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
		internal GSourceFuncInvoker (GSourceFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
		internal GSourceFuncInvoker (GSourceFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}