GtkSharp/gtk/ITreeNode.cs
Mike Kestner 912980c396 2003-11-04 Mike Kestner <mkestner@ximian.com>
* glib/Value.cs : add set to Val prop
	* glue/Makefile.am : build nodestore.c
	* glue/makefile.win32 : link nodestore.o
	* glue/nodestore.c : new, glue for TreeModel implementation
	* gtk/NodeStore.cs : new tree store implementation
	* gtk/ITreeNode.cs : new interface for nodestore node types
	* gtk/TreeNode.cs : abstract class for deriving nodestore nodes
	* gtk/TreeNodeAttribute.cs : tree node marking attr
	* gtk/TreeNodeValueAttribute.cs : node column marking attr
	* gtk/TreeView.custom : add ctor(NodeStore)

svn path=/trunk/gtk-sharp/; revision=19630
2003-11-04 23:20:15 +00:00

34 lines
642 B
C#

// ITreeNode.cs - Interface and delegates for tree node navigation and updating.
//
// Author: Mike Kestner <mkestner@ximian.com>
//
// <c> 2003 Novell, Inc.
namespace Gtk {
using System;
public delegate void TreeNodeAddedHandler (object o, ITreeNode child);
public delegate void TreeNodeRemovedHandler (object o, int old_position);
public interface ITreeNode {
int ID { get; }
ITreeNode Parent { get; set; }
int ChildCount { get; }
ITreeNode this [int index] { get; }
int IndexOf (object o);
event EventHandler Changed;
event TreeNodeAddedHandler ChildAdded;
event TreeNodeRemovedHandler ChildRemoved;
}
}