예제 #1
0
 public TreeCellDataFuncWrapper(Gtk.TreeCellDataFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new TreeCellDataFuncNative(NativeCallback);
     }
 }
		public static Gtk.TreeCellDataFunc GetManagedDelegate (TreeCellDataFuncNative native)
		{
			if (native == null)
				return null;
			TreeCellDataFuncWrapper wrapper = (TreeCellDataFuncWrapper) native.Target;
			if (wrapper == null)
				return null;
			return wrapper.managed;
		}
예제 #3
0
        public static Gtk.TreeCellDataFunc GetManagedDelegate(TreeCellDataFuncNative native)
        {
            if (native == null)
            {
                return(null);
            }
            TreeCellDataFuncWrapper wrapper = (TreeCellDataFuncWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }
		public TreeCellDataFuncWrapper (Gtk.TreeCellDataFunc managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new TreeCellDataFuncNative (NativeCallback);
		}
		internal TreeCellDataFuncInvoker (TreeCellDataFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
		internal TreeCellDataFuncInvoker (TreeCellDataFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
		internal TreeCellDataFuncInvoker (TreeCellDataFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
예제 #8
0
 internal TreeCellDataFuncInvoker(TreeCellDataFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
예제 #9
0
 internal TreeCellDataFuncInvoker(TreeCellDataFuncNative native_cb, IntPtr data) : this(native_cb, data, null)
 {
 }
예제 #10
0
 internal TreeCellDataFuncInvoker(TreeCellDataFuncNative native_cb) : this(native_cb, IntPtr.Zero, null)
 {
 }