GtkSharp/gtk/ITreeNode.cs
Mike Kestner b57221cf44 2003-11-05 Mike Kestner <mkestner@ximian.com>
* gtk/ITreeNode.cs : make Parent readonly
	* gtk/TreeNode.cs : use an internal method to set parent on the
	child, and set child.Parent to null in RemoveChild.

svn path=/trunk/gtk-sharp/; revision=19651
2003-11-05 22:11:45 +00:00

33 lines
637 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; }
int ChildCount { get; }
ITreeNode this [int index] { get; }
int IndexOf (object o);
event EventHandler Changed;
event TreeNodeAddedHandler ChildAdded;
event TreeNodeRemovedHandler ChildRemoved;
}
}