コード例 #1
0
 public ColorSelectionChangePaletteWithScreenFuncWrapper(Gtk.ColorSelectionChangePaletteWithScreenFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new ColorSelectionChangePaletteWithScreenFuncNative(NativeCallback);
     }
 }
		public static Gtk.ColorSelectionChangePaletteWithScreenFunc GetManagedDelegate (ColorSelectionChangePaletteWithScreenFuncNative native)
		{
			if (native == null)
				return null;
			ColorSelectionChangePaletteWithScreenFuncWrapper wrapper = (ColorSelectionChangePaletteWithScreenFuncWrapper) native.Target;
			if (wrapper == null)
				return null;
			return wrapper.managed;
		}
		public ColorSelectionChangePaletteWithScreenFuncWrapper (Gtk.ColorSelectionChangePaletteWithScreenFunc managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new ColorSelectionChangePaletteWithScreenFuncNative (NativeCallback);
		}
		internal ColorSelectionChangePaletteWithScreenFuncInvoker (ColorSelectionChangePaletteWithScreenFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
		internal ColorSelectionChangePaletteWithScreenFuncInvoker (ColorSelectionChangePaletteWithScreenFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
コード例 #6
0
        public static Gtk.ColorSelectionChangePaletteWithScreenFunc GetManagedDelegate(ColorSelectionChangePaletteWithScreenFuncNative native)
        {
            if (native == null)
            {
                return(null);
            }
            ColorSelectionChangePaletteWithScreenFuncWrapper wrapper = (ColorSelectionChangePaletteWithScreenFuncWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }
コード例 #7
0
 internal ColorSelectionChangePaletteWithScreenFuncInvoker(ColorSelectionChangePaletteWithScreenFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #8
0
 internal ColorSelectionChangePaletteWithScreenFuncInvoker(ColorSelectionChangePaletteWithScreenFuncNative native_cb, IntPtr data) : this(native_cb, data, null)
 {
 }