Ejemplo n.º 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;
		}
Ejemplo n.º 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) {}
Ejemplo n.º 8
0
 internal TreeCellDataFuncInvoker(TreeCellDataFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
Ejemplo n.º 9
0
 internal TreeCellDataFuncInvoker(TreeCellDataFuncNative native_cb, IntPtr data) : this(native_cb, data, null)
 {
 }
Ejemplo n.º 10
0
 internal TreeCellDataFuncInvoker(TreeCellDataFuncNative native_cb) : this(native_cb, IntPtr.Zero, null)
 {
 }