mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 01:25:30 +00:00
912980c396
* 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
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;
|
|
}
|
|
}
|