2003-11-04 23:20:15 +00:00
|
|
|
// 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; }
|
|
|
|
|
2003-11-05 22:11:45 +00:00
|
|
|
ITreeNode Parent { get; }
|
2003-11-04 23:20:15 +00:00
|
|
|
|
|
|
|
int ChildCount { get; }
|
|
|
|
|
|
|
|
ITreeNode this [int index] { get; }
|
|
|
|
|
|
|
|
int IndexOf (object o);
|
|
|
|
|
|
|
|
event EventHandler Changed;
|
|
|
|
|
|
|
|
event TreeNodeAddedHandler ChildAdded;
|
|
|
|
|
|
|
|
event TreeNodeRemovedHandler ChildRemoved;
|
|
|
|
}
|
|
|
|
}
|