Пример #1
0
 static void SetRowDescription_cb(IntPtr inst, int row, IntPtr description)
 {
     try {
         ITableImplementor __obj = GLib.Object.GetObject(inst, false) as ITableImplementor;
         __obj.SetRowDescription(row, GLib.Marshaller.Utf8PtrToString(description));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Пример #2
0
 static void SetColumnHeader_cb(IntPtr inst, int column, IntPtr header)
 {
     try {
         ITableImplementor __obj = GLib.Object.GetObject(inst, false) as ITableImplementor;
         __obj.SetColumnHeader(column, GLib.Object.GetObject(header) as Atk.Object);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Пример #3
0
 static void SetCaption_cb(IntPtr inst, IntPtr caption)
 {
     try {
         ITableImplementor __obj = GLib.Object.GetObject(inst, false) as ITableImplementor;
         __obj.Caption = GLib.Object.GetObject(caption) as Atk.Object;
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Пример #4
0
 public TableAdapter(ITableImplementor 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;
 }
Пример #5
0
 static IntPtr RefAt_cb(IntPtr inst, int row, int column)
 {
     try {
         ITableImplementor __obj = GLib.Object.GetObject(inst, false) as ITableImplementor;
         Atk.Object        __result;
         __result = __obj.RefAt(row, column);
         return(__result == null ? IntPtr.Zero : __result.OwnedHandle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Пример #6
0
 static bool RemoveColumnSelection_cb(IntPtr inst, int column)
 {
     try {
         ITableImplementor __obj = GLib.Object.GetObject(inst, false) as ITableImplementor;
         bool __result;
         __result = __obj.RemoveColumnSelection(column);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Пример #7
0
 static int GetSelectedRows_cb(IntPtr inst, out int selected)
 {
     try {
         ITableImplementor __obj = GLib.Object.GetObject(inst, false) as ITableImplementor;
         int __result;
         __result = __obj.GetSelectedRows(out selected);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Пример #8
0
 static IntPtr GetSummary_cb(IntPtr inst)
 {
     try {
         ITableImplementor __obj = GLib.Object.GetObject(inst, false) as ITableImplementor;
         Atk.Object        __result;
         __result = __obj.Summary;
         return(__result == null ? IntPtr.Zero : __result.Handle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Пример #9
0
 static IntPtr GetRowDescription_cb(IntPtr inst, int row)
 {
     try {
         ITableImplementor __obj = GLib.Object.GetObject(inst, false) as ITableImplementor;
         string            __result;
         __result = __obj.GetRowDescription(row);
         return(GLib.Marshaller.StringToPtrGStrdup(__result));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Пример #10
0
 static int GetRowExtentAt_cb(IntPtr inst, int row, int column)
 {
     try {
         ITableImplementor __obj = GLib.Object.GetObject(inst, false) as ITableImplementor;
         int __result;
         __result = __obj.GetRowExtentAt(row, column);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Пример #11
0
		public TableAdapter (ITableImplementor 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;
		}