gtk-sharp0.0.0.0Gtk# 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?
using System;
using Gtk;
using GtkSharp;
public class TreeViewSample {
public static void Main (string [] args)
{
Application.Init ();
TreeStore store = new TreeStore (typeof (string), typeof (string));
for (int i=0; i < 5; i++)
{
TreeIter iter = store.AppendValues ("Demo " + i, "Data " + i);
}
Window win = new Window ("TreeView List Demo");
win.DeleteEvent += new DeleteEventHandler (delete_cb);
win.SetDefaultSize (400,250);
ScrolledWindow sw = new ScrolledWindow ();
win.Add (sw);
TreeView tv = new TreeView ();
tv.Model = store;
tv.HeadersVisible = true;
tv.AppendColumn ("Demo", new CellRendererText (), "text", 0);
tv.AppendColumn ("Data", new CellRendererText (), "text", 1);
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.ContainerAtk.ImplementorGLib.IWrapperGLib.IWrapperSystem.IDisposableMethodSystem.UInt32To be addedan object of type To be addedMethodSystem.Int32To be added
an object of type an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type
an object of type
an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type To be addedMethodGdk.PixmapTo be added
an object of type an object of type To be addedMethodSystem.VoidTo be addedTo be addedMethodSystem.VoidTo be added
an object of type
an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type To be addedMethodSystem.VoidTo be added
an object of type To be addedMethodSystem.Int32To be added
an object of type
an object of type an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type To be addedMethodSystem.BooleanTo be added
an object of type an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type To be addedMethodSystem.VoidTo be addedTo be addedMethodSystem.Int32To be added
an object of type an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type To be addedMethodSystem.VoidTo be addedTo be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type
an object of type To be addedMethodSystem.BooleanTo be added
an object of type an object of type To be addedMethodSystem.BooleanTo be added
an object of type
an object of type
an object of type
an object of type an object of type To be addedMethodSystem.VoidTo be addedTo be addedMethodSystem.VoidTo be added
an object of type
an object of type To be addedMethodSystem.VoidTo be added
an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type To be addedMethodGtk.TreeViewColumnTo be added
an object of type an object of type To be addedMethodSystem.BooleanTo be added
an object of type
an object of type an object of type To be addedMethodSystem.VoidTo be addedTo be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type
an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type To be addedMethodSystem.VoidDisposes the resources associated with the object.ConstructorInternal 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.ConstructorTo be addedan object of type To be addedConstructorTo be added
an object of type an object of type To be addedPropertySystem.UInt32The for The for the class.PropertyGtk.TreeModelTo be added
an object of type an object of type To be addedPropertyGtk.TreeSelectionTo be addedan object of type To be addedPropertyGdk.WindowTo be addedan object of type To be addedPropertyGLib.ListTo be addedan object of type To be addedPropertySystem.BooleanWhether to display alternating, shaded rows in the .
an object of type an object of type Setting to enables alternating, shaded rows in the .PropertySystem.BooleanTo be added
an object of type an object of type To be addedPropertySystem.BooleanTo be added
an object of type an object of type To be addedPropertyGtk.TreeViewColumnTo be added
an object of type an object of type To be addedPropertySystem.BooleanTo be added
an object of type an object of type To be addedPropertyGtk.AdjustmentTo be added
an object of type an object of type To be addedPropertySystem.BooleanTo be added
an object of type an object of type To be addedPropertyGtk.AdjustmentTo be added
an object of type an object of type To be addedPropertySystem.Int32To be added
an object of type an object of type To be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedConstructorInternal constructor
GLib type for the type
Creates a new instance of TreeView, using the GLib-provided typeThis 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.MethodSystem.BooleanTo be added
an object of type
an object of type
an object of type
an object of type an object of type To be addedMethodSystem.BooleanTo be added
an object of type
an object of type
an object of type an object of type To be addedMethodSystem.BooleanTo be added
an object of type
an object of type
an object of type
an object of type
an object of type
an object of type an object of type To be addedMethodSystem.VoidTo be added
an object of type
an object of type
an object of type
an object of type To be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedEventTo be addedTo be addedMethodGtk.TreeViewColumnTo be added
a
a
a a To be addedMethodGtk.TreeViewColumnTo be added
a
a
a a To be addedMethodSystem.VoidTo be added
a
a
a
a To be addedMethodSystem.VoidTo be added
a To be added