static void UnrefNode_cb(IntPtr inst, IntPtr iter) { try { ITreeModelImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeModelImplementor; __obj.UnrefNode(Gtk.TreeIter.New(iter)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public TreeModelAdapter(ITreeModelImplementor 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; }
static IntPtr GetColumnType_cb(IntPtr inst, int index_) { try { ITreeModelImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeModelImplementor; GLib.GType __result; __result = __obj.GetColumnType(index_); return(__result.Val); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static int GetNColumns_cb(IntPtr inst) { try { ITreeModelImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeModelImplementor; int __result; __result = __obj.NColumns; return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static int IterNChildren_cb(IntPtr inst, IntPtr iter) { try { ITreeModelImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeModelImplementor; int __result; __result = __obj.IterNChildren(Gtk.TreeIter.New(iter)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr GetPath_cb(IntPtr inst, IntPtr iter) { try { ITreeModelImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeModelImplementor; Gtk.TreePath __result; __result = __obj.GetPath(Gtk.TreeIter.New(iter)); return(__result == null ? IntPtr.Zero : __result.OwnedCopy); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static void GetValue_cb(IntPtr inst, IntPtr iter, int column, IntPtr value) { try { ITreeModelImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeModelImplementor; GLib.Value myvalue = (GLib.Value)Marshal.PtrToStructure(value, typeof(GLib.Value)); __obj.GetValue(Gtk.TreeIter.New(iter), column, ref myvalue); if (value != IntPtr.Zero) { System.Runtime.InteropServices.Marshal.StructureToPtr(myvalue, value, false); } } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static bool IterParent_cb(IntPtr inst, IntPtr iter, IntPtr child) { try { ITreeModelImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeModelImplementor; bool __result; Gtk.TreeIter myiter; __result = __obj.IterParent(out myiter, Gtk.TreeIter.New(child)); if (iter != IntPtr.Zero) { System.Runtime.InteropServices.Marshal.StructureToPtr(myiter, iter, false); } return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool GetIter_cb(IntPtr inst, IntPtr iter, IntPtr path) { try { ITreeModelImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeModelImplementor; bool __result; Gtk.TreeIter myiter; __result = __obj.GetIter(out myiter, path == IntPtr.Zero ? null : (Gtk.TreePath)GLib.Opaque.GetOpaque(path, typeof(Gtk.TreePath), false)); if (iter != IntPtr.Zero) { System.Runtime.InteropServices.Marshal.StructureToPtr(myiter, iter, false); } return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
public TreeModelAdapter (ITreeModelImplementor 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; }