コード例 #1
0
 static void Clear_cb(IntPtr inst)
 {
     try {
         ICellLayoutImplementor __obj = GLib.Object.GetObject(inst, false) as ICellLayoutImplementor;
         __obj.Clear();
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
コード例 #2
0
 static void AddAttribute_cb(IntPtr inst, IntPtr cell, IntPtr attribute, int column)
 {
     try {
         ICellLayoutImplementor __obj = GLib.Object.GetObject(inst, false) as ICellLayoutImplementor;
         __obj.AddAttribute(GLib.Object.GetObject(cell) as Gtk.CellRenderer, GLib.Marshaller.Utf8PtrToString(attribute), column);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
コード例 #3
0
 static void Reorder_cb(IntPtr inst, IntPtr cell, int position)
 {
     try {
         ICellLayoutImplementor __obj = GLib.Object.GetObject(inst, false) as ICellLayoutImplementor;
         __obj.Reorder(GLib.Object.GetObject(cell) as Gtk.CellRenderer, position);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
コード例 #4
0
 static void PackEnd_cb(IntPtr inst, IntPtr cell, bool expand)
 {
     try {
         ICellLayoutImplementor __obj = GLib.Object.GetObject(inst, false) as ICellLayoutImplementor;
         __obj.PackEnd(GLib.Object.GetObject(cell) as Gtk.CellRenderer, expand);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
コード例 #5
0
 static void ClearAttributes_cb(IntPtr inst, IntPtr cell)
 {
     try {
         ICellLayoutImplementor __obj = GLib.Object.GetObject(inst, false) as ICellLayoutImplementor;
         __obj.ClearAttributes(GLib.Object.GetObject(cell) as Gtk.CellRenderer);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
コード例 #6
0
 static void SetCellDataFunc_cb(IntPtr inst, IntPtr cell, GtkSharp.CellLayoutDataFuncNative func, IntPtr func_data, GLib.DestroyNotify destroy)
 {
     try {
         ICellLayoutImplementor             __obj        = GLib.Object.GetObject(inst, false) as ICellLayoutImplementor;
         GtkSharp.CellLayoutDataFuncInvoker func_invoker = new GtkSharp.CellLayoutDataFuncInvoker(func, func_data, destroy);
         __obj.SetCellDataFunc(GLib.Object.GetObject(cell) as Gtk.CellRenderer, func_invoker.Handler);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
コード例 #7
0
 public CellLayoutAdapter(ICellLayoutImplementor 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;
 }
コード例 #8
0
 static IntPtr GetArea_cb(IntPtr inst)
 {
     try {
         ICellLayoutImplementor __obj = GLib.Object.GetObject(inst, false) as ICellLayoutImplementor;
         Gtk.CellArea           __result;
         __result = __obj.Area;
         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 GetCells_cb(IntPtr inst)
 {
     try {
         ICellLayoutImplementor __obj = GLib.Object.GetObject(inst, false) as ICellLayoutImplementor;
         Gtk.CellRenderer[]     __result;
         __result = __obj.Cells;
         return(new GLib.List(__result, typeof(Gtk.CellRenderer), true, false) == null ? IntPtr.Zero : new GLib.List(__result, typeof(Gtk.CellRenderer), true, false).Handle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #10
0
		public CellLayoutAdapter (ICellLayoutImplementor 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;
		}