Exemplo n.º 1
0
 public SelectionAdapter(ISelectionImplementor 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;
 }
Exemplo n.º 2
0
 static int GetSelectionCount_cb(IntPtr inst)
 {
     try {
         ISelectionImplementor __obj = GLib.Object.GetObject(inst, false) as ISelectionImplementor;
         int __result;
         __result = __obj.SelectionCount;
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Exemplo n.º 3
0
 static IntPtr RefSelection_cb(IntPtr inst, int i)
 {
     try {
         ISelectionImplementor __obj = GLib.Object.GetObject(inst, false) as ISelectionImplementor;
         Atk.Object            __result;
         __result = __obj.RefSelection(i);
         return(__result == null ? IntPtr.Zero : __result.OwnedHandle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Exemplo n.º 4
0
 static bool RemoveSelection_cb(IntPtr inst, int i)
 {
     try {
         ISelectionImplementor __obj = GLib.Object.GetObject(inst, false) as ISelectionImplementor;
         bool __result;
         __result = __obj.RemoveSelection(i);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Exemplo n.º 5
0
		public SelectionAdapter (ISelectionImplementor 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;
		}