2002-08-10 23:40:20 +00:00
|
|
|
// Gtk.TreeView.Custom - Gtk TreeView class customizations
|
|
|
|
//
|
|
|
|
// Author: Kristian Rietveld <kris@gtk.org>
|
|
|
|
//
|
|
|
|
// (c) 2002 Kristian Rietveld
|
|
|
|
//
|
|
|
|
// This code is inserted after the automatically generated code.
|
|
|
|
|
|
|
|
|
2003-02-22 04:34:56 +00:00
|
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
2002-08-10 23:40:20 +00:00
|
|
|
static extern IntPtr gtk_tree_view_get_model (IntPtr raw);
|
|
|
|
|
2003-02-22 04:34:56 +00:00
|
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
2002-10-04 16:38:47 +00:00
|
|
|
static extern IntPtr gtk_tree_view_set_model (IntPtr raw, IntPtr raw_model);
|
2002-09-21 21:06:22 +00:00
|
|
|
|
2002-08-10 23:40:20 +00:00
|
|
|
/// <summary>Model Property</summary>
|
|
|
|
/// <remarks>Gets the model being displayed by the TreeView
|
|
|
|
/// </remarks>
|
|
|
|
public Gtk.TreeModel Model {
|
|
|
|
get {
|
|
|
|
IntPtr raw_ret = gtk_tree_view_get_model (Handle);
|
|
|
|
Gtk.TreeModel ret = (Gtk.TreeModel) GLib.Object.GetObject (raw_ret);
|
|
|
|
return ret;
|
|
|
|
}
|
2002-09-21 21:06:22 +00:00
|
|
|
|
|
|
|
set {
|
2002-10-04 16:38:47 +00:00
|
|
|
gtk_tree_view_set_model (Handle, value.Handle);
|
2002-09-21 21:06:22 +00:00
|
|
|
}
|
2002-08-10 23:40:20 +00:00
|
|
|
}
|