コード例 #1
0
		public TreeDragDestAdapter (ITreeDragDestImplementor implementor)
		{
			if (implementor == null)
				throw new ArgumentNullException ("implementor");
			else if (!(implementor is GLib.Object))
				throw new ArgumentException ("implementor must be a subclass of GLib.Object");
			this.implementor = implementor as GLib.Object;
		}
コード例 #2
0
 public TreeDragDestAdapter(ITreeDragDestImplementor implementor)
 {
     if (implementor == null)
     {
         throw new ArgumentNullException("implementor");
     }
     else if (!(implementor is GLib.Object))
     {
         throw new ArgumentException("implementor must be a subclass of GLib.Object");
     }
     this.implementor = implementor as GLib.Object;
 }
コード例 #3
0
 static bool RowDropPossible_cb(IntPtr inst, IntPtr dest_path, IntPtr selection_data)
 {
     try {
         ITreeDragDestImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeDragDestImplementor;
         bool __result;
         __result = __obj.RowDropPossible(dest_path == IntPtr.Zero ? null : (Gtk.TreePath)GLib.Opaque.GetOpaque(dest_path, typeof(Gtk.TreePath), false), selection_data == IntPtr.Zero ? null : (Gtk.SelectionData)GLib.Opaque.GetOpaque(selection_data, typeof(Gtk.SelectionData), false));
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }