mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 13:05:34 +00:00
b57221cf44
* 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
34 lines
637 B
C#
34 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;
|
|
}
|
|
}
|