gtk-sharp 0.0.0.0 Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. A widget for displaying both trees and lists. Widget that displays any object that implements the interface. To create a tree or list in GTK#, you need to use the interface, in conjunction with the widget. This widget is designed around a Model/View/Controller design and consists of four major parts: , the tree view widget , the view column. The cell renderers ( and others). , the model interface. The View is composed of the first three, while the last is the Model. One of the prime benefits of the MVC design is that multiple views can be created of a single model. For example, a model mapping the file system could be created for a file manager. Many views could be created to display various parts of the file system, but only one copy need be kept in memory. The purpose of the cell renderers is to provide extensibility to the widget and to allow multiple ways of rendering the same type of data. For example, consider how to render a boolean variable. Should you render it as a string of "True" or "False", "On" or "Off", or should you render it as a checkbox? namespace Samples { using System; using System.Drawing; using GLib; using Gtk; using GtkSharp; public class TreeView { public static void Main (string [] args) { TreeStore store = null; Application.Init (); store = new TreeStore ((int)TypeFundamentals.TypeString, (int)TypeFundamentals.TypeString); TreeIter iter = new TreeIter (); for (int i=0; i<0; i++) { GLib.Value Name = new GLib.Value ("Demo " + i.ToString()); GLib.Value Type = new GLib.Value ("Data " + i.ToString()); store.Append (out iter); store.SetValue (iter, 0, Name); store.SetValue (iter, 1, Type); } Window win = new Window ("TreeView List Demo"); win.DeleteEvent += new DeleteEventHandler (delete_cb); win.DefaultSize = new Size (400,250); ScrolledWindow sw = new ScrolledWindow (); win.Add (sw); TreeView tv = new TreeView (store); tv.HeadersVisible = true; TreeViewColumn DemoCol = new TreeViewColumn (); CellRenderer DemoRenderer = new CellRendererText (); DemoCol.Title = "Demo"; DemoCol.PackStart (DemoRenderer, true); DemoCol.AddAttribute (DemoRenderer, "text", 0); tv.AppendColumn (DemoCol); TreeViewColumn DataCol = new TreeViewColumn (); CellRenderer DataRenderer = new CellRendererText (); DataCol.Title = "Data"; DataCol.PackStart (DataRenderer, false); DataCol.AddAttribute (DataRenderer, "text", 1); tv.AppendColumn (DataCol); sw.Add (tv); sw.Show(); win.ShowAll (); Application.Run (); } private static void delete_cb (System.Object o, DeleteEventArgs args) { Application.Quit (); args.RetVal = true; } } } Gtk.Container Atk.Implementor GLib.IWrapper GLib.IWrapper System.IDisposable Method System.UInt32 To be added To be added: an object of type 'uint' To be added Method System.Int32 To be added To be added: an object of type 'Gtk.TreeViewColumn' To be added: an object of type 'int' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreeViewColumnDropFunc' To be added: an object of type 'IntPtr' To be added: an object of type 'Gtk.DestroyNotify' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'Gtk.TreeViewColumn' To be added: an object of type 'bool' To be added: an object of type 'float' To be added: an object of type 'float' To be added Method System.Void To be added To be added: an object of type 'Gtk.TargetEntry' To be added: an object of type 'int' To be added: an object of type 'Gdk.DragAction' To be added Method Gdk.Pixmap To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'Gdk.Pixmap' To be added Method System.Void To be added To be added Method System.Void To be added To be added: an object of type 'Gtk.TreeViewColumn' To be added: an object of type 'Gtk.TreeViewColumn' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'Gtk.TreeViewColumn' To be added: an object of type 'bool' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'Gtk.TreeViewColumn' To be added: an object of type 'Gdk.Rectangle' To be added Method System.Void To be added To be added: an object of type 'Gdk.Rectangle' To be added Method System.Int32 To be added To be added: an object of type 'Gtk.TreeViewColumn' To be added: an object of type 'int' To be added: an object of type 'int' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'Gtk.TreeViewColumn' To be added Method System.Boolean To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'bool' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreeDestroyCountFunc' To be added: an object of type 'IntPtr' To be added: an object of type 'Gtk.DestroyNotify' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreeViewSearchEqualFunc' To be added: an object of type 'IntPtr' To be added: an object of type 'Gtk.DestroyNotify' To be added Method System.Void To be added To be added Method System.Int32 To be added To be added: an object of type 'Gtk.TreeViewColumn' To be added: an object of type 'int' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'Gtk.TreeViewDropPosition' To be added Method System.Void To be added To be added Method System.Void To be added To be added: an object of type 'Gdk.ModifierType' To be added: an object of type 'Gtk.TargetEntry' To be added: an object of type 'int' To be added: an object of type 'Gdk.DragAction' To be added Method System.Boolean To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'bool' To be added Method System.Boolean To be added To be added: an object of type 'int' To be added: an object of type 'int' To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'Gtk.TreeViewDropPosition' To be added: an object of type 'bool' To be added Method System.Void To be added To be added Method System.Void To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'Gtk.TreeViewDropPosition' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreeViewMappingFunc' To be added Method System.Void To be added To be added: an object of type 'int' To be added: an object of type 'int' To be added Method Gtk.TreeViewColumn To be added To be added: an object of type 'int' To be added: an object of type 'Gtk.TreeViewColumn' To be added Method System.Boolean To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'bool' To be added: an object of type 'bool' To be added Method System.Void To be added To be added Method System.Void To be added To be added: an object of type 'int' To be added: an object of type 'int' To be added: an object of type 'int' To be added: an object of type 'int' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'Gtk.TreeViewColumn' To be added: an object of type 'Gdk.Rectangle' To be added Method System.Void To be added To be added: an object of type 'Gtk.TreePath' To be added: an object of type 'Gtk.TreeViewColumn' To be added Method System.Void Disposes the resources associated with the object. Constructor Internal constructor Pointer to the C object. An instance of TreeView, wrapping the C object. This is an internal constructor, and should not be used by user code. Constructor To be added To be added: an object of type 'Gtk.TreeView' To be added Constructor To be added To be added: an object of type 'Gtk.TreeModel' To be added: an object of type 'Gtk.TreeView' To be added Property System.UInt32 The GLib Type for Gtk.TreeView The GLib Type for the Gtk.TreeView class. Property Gtk.TreeModel To be added To be added: an object of type 'Gtk.TreeModel' To be added: an object of type 'Gtk.TreeModel' To be added Property Gtk.TreeSelection To be added To be added: an object of type 'Gtk.TreeSelection' To be added Property Gdk.Window To be added To be added: an object of type 'Gdk.Window' To be added Property GLib.List To be added To be added: an object of type 'GLib.List' To be added Property System.Boolean Whether to display alternating, shaded rows in the . an object of type an object of type Setting to enables alternating, shaded rows in the . Property System.Boolean To be added an object of type an object of type To be added Property System.Boolean To be added an object of type an object of type To be added Property Gtk.TreeViewColumn To be added To be added: an object of type 'Gtk.TreeViewColumn' To be added: an object of type 'Gtk.TreeViewColumn' To be added Property System.Boolean To be added an object of type an object of type To be added Property Gtk.Adjustment To be added To be added: an object of type 'Gtk.Adjustment' To be added: an object of type 'Gtk.Adjustment' To be added Property System.Boolean To be added an object of type an object of type To be added Property Gtk.Adjustment To be added To be added: an object of type 'Gtk.Adjustment' To be added: an object of type 'Gtk.Adjustment' To be added Property System.Int32 To be added To be added: an object of type 'int' To be added: an object of type 'int' To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Event To be added To be added Constructor Internal constructor GLib type for the type Creates a new instance of TreeView, using the GLib-provided type This is a constructor used by derivative types of that would have their own GLib type assigned to it. This is not typically used by C# code. Method System.Boolean To be added To be added: an object of type 'int' To be added: an object of type 'int' To be added: an object of type 'Gtk.TreePath&' To be added: an object of type 'Gtk.TreeViewColumn' an object of type To be added Method System.Boolean To be added To be added: an object of type 'int' To be added: an object of type 'int' To be added: an object of type 'Gtk.TreePath&' an object of type To be added Method System.Boolean To be added To be added: an object of type 'int' To be added: an object of type 'int' To be added: an object of type 'Gtk.TreePath&' To be added: an object of type 'Gtk.TreeViewColumn' To be added: an object of type 'int&' To be added: an object of type 'int&' an object of type To be added Method System.Void To be added To be added: an object of type 'int' To be added: an object of type 'int' To be added: an object of type 'int&' To be added: an object of type 'int&' To be added