mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 19:25:31 +00:00
34 lines
642 B
C#
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;
|
||
|
}
|
||
|
}
|