gtk-sharpGtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.GLib.ObjectGtk.ITreeDragDestGtk.ITreeDragSourceGtk.ITreeModelGtk.ITreeSortableA tree-like data structure that can be used with the The object is a list model for use with a widget. It implements the interface, and consequentialy, can use all of the methods available there. It also implements the interface so it can be sorted by the view. Finally, it also implements the tree drag and drop interfaces.ConstructorProtected constructor.ConstructorSystem.ParamArray
a Protected Constructor.Chain to this constructor if you have manually registered a native value for your subclass.Constructor
Pointer to the C object.
Internal constructorThis is an internal constructor, and should not be used by user code.ConstructorSystem.ParamArray
a Creates a new instance.
Treestore store;
store = new TreeStore (typeof (int), typeof (string));
MethodGtk.TreeIterAppends a root node to the store.a MethodGtk.TreeIter
a Appends a child to an existing node.a MethodGtk.TreeIter
a with the data for the row.
Appends a new row to the .a MethodGtk.TreeIterSystem.ParamArray
a with the data for the row.
Appends a new row to the .a MethodGtk.TreeIter
the parent row to attach the new row under.
a with the data for the row.
Appends a new row to the .a To append the new row to the toplevel, use the MethodGtk.TreeIterSystem.ParamArray
the parent row to attach the new row under.
a with the data for the row.
Appends a new row to the .a To append the new row to the toplevel, use the MethodSystem.VoidFires a event.Designed to be called by routines that change the sort of the tree.MethodSystem.VoidRemoves all rows from the PropertyGLib.GType[]To be addeda To be addedPropertyGtk.TreeIterCompareFuncThe function that should be used to be sort columns by default if not otherwise specified by .a This property is meant to be used together with .MethodSystem.Boolean
A , the path of the data to delete.
When this TreeStore is the data source for a drag operation and the drag operation is a move, this method runs to delete the data after the data has been received by the target widget.A , true if the operation succeeds.MethodSystem.Boolean
a
A Method used when this TreeStore is part of a source widget
for a drag-and-drop operation; gets the data that was dragged from the
associated widget.A , true if the operation succeeded.MethodSystem.Boolean
A , the destination path of the drag
A , the data that was dragged
Drags data received into this object.A boolean, true if the data was successfully received.MethodSystem.Void
an object of type
an object of type Emits the event.MethodSystem.Void
an object of type Emits the event.This should be called by models after a row has been removed. The location pointed to by should be the location that the row previously was at. It may not be a valid location anymore.MethodSystem.Void
an object of type
an object of type Emits the event.MethodSystem.Void
an object of type
an object of type Emits the event.MethodSystem.Void
To be added.
To be added.
To be added.
To be added.To be added.PropertyGtk.TreeModelFlagsReturns a set of flags supported by this .an object of type The flags are a bitwise combination of . The flags supported should not change during the lifecycle of the .MethodSystem.Void
an object of type Calls on each node in model in a depth-first fashion.If func returns , then the tree ceases to be walked, and this method returns.MethodGLib.GType
a , the column to check
Gets the type of data stored in column number .a MethodSystem.Boolean
an object of type
an object of type Sets to a valid iterator pointing to .an object of type MethodSystem.Boolean
an object of type Gets the first iterator in the tree (the one at the path "0") and returns .an object of type Returns if the tree is empty.MethodSystem.Boolean
an object of type
an object of type Gets the at .an object of type Otherwise, is left invalid and is returned.
path_string "0" represent the first node, "1" the second, and so on.
path_string "0:0" represent the first child of the first node, "0:1" the second child of the first node, and so on.
MethodGtk.TreePath
an object of type Gets the of .an object of type MethodSystem.Boolean
a , gets filled with the column number that's currently used for sorting
a , the current type of sort (ascending or descending)
Report on which column is currently being used to sort this TreeStore.a , false if the default sort column for this TreeStore is being used, true if some other sort column is being used.MethodSystem.String
a Marshals the given into a path string.a MethodSystem.Void
an object of type
a , pointer to the va_list data structure of arguments (FIXME: clarify what va_lists look like)
Gets the values of child properties for the row pointed to by .MethodSystem.Object
a
a Gets a value at row and column .a MethodSystem.Void
a
a
a Gets the value of row of column
and puts it in .
PropertyGLib.GTypeGType Property.a Returns the native value for .PropertySystem.BooleanFind out whether this TreeStore has a default sort function.a , true if there is a default
sort function.To set a default sort function, use .MethodGtk.TreeIter
a Inserts a root node.a MethodGtk.TreeIter
a
a Inserts a child of an existing node.a MethodGtk.TreeIter
a Inserts a root node after a sibling.a MethodGtk.TreeIter
a
a Inserts a child of an existing node after a sibling.a MethodGtk.TreeIter
a Inserts a root node before a sibling.a MethodGtk.TreeIter
a
a Inserts a child of an existing node before a sibling.a MethodGtk.TreeIterSystem.ParamArray
Insert position.
An array of column values.
Inserts a row into the Root node of the store with values.An iter pointing to the added row.The column values provided should be in column order.MethodGtk.TreeIterSystem.ParamArray
Iter of the node to insert into.
Insert position.
An array of column values.
Inserts a child row into a node with values.An iter pointing to the added row.The column values provided should be in column order.MethodSystem.Boolean
an object of type
an object of type Returns if is an ancestor of .an object of type That is, is the parent (or grandparent or great-grandparent) of .MethodSystem.Boolean
an object of type Sets the TreeIter object pointed to by the iter param to point to the first child of this tree. an object of type MethodSystem.Boolean
an object of type
an object of type Sets to point to the first child of .an object of type If has no children, is returned and is set to be invalid. will remain a valid node after this function has been called.MethodSystem.Int32
an object of type Returns the depth of .an object of type This will be 0 for anything on the root level, 1 for anything down a level, etc.MethodSystem.Boolean
an object of type Returns if iter has children, otherwise.an object of type MethodSystem.Boolean
a Test whether is valid for this TreeStore.a , true if is valid.WARNING: this method is slow and is only intended for
debugging/testing purposes.MethodSystem.Int32Returns the number of children that the has.an object of type As a special case, if iter is , then the number of toplevel nodes is returned.MethodSystem.Int32
an object of type Returns the number of children that has.an object of type As a special case, if is , then the number of toplevel nodes is returned.MethodSystem.Boolean
an object of type Sets to point to the node following it at the current level.an object of type If there is no next iter, is returned and iter is set to be invalid.MethodSystem.Boolean
an object of type
an object of type Sets to be the child of the root node, using the given index.an object of type In this case, the nth root node is set.MethodSystem.Boolean
an object of type
an object of type
an object of type Sets to be the child of , using the given index.an object of type The first index is 0. If is too big, or has no children, is set to an invalid iterator and is returned. will remain a valid node after this function has been called.MethodSystem.Boolean
an object of type
an object of type Sets to be the parent of .an object of type If is at the toplevel, and does not have a parent, then is set to an invalid iterator and is returned. will remain a valid node after this function has been called.MethodSystem.Boolean
To be added.
To be added.To be added.To be added.MethodSystem.Void
a
a Move the row pointed to by to the
position after . If
is ,
will be moved to point to the start
of the list.
This only works in unsorted stores.MethodSystem.Void
a
a Move the row pointed to by to the
position before . If
is ,
will be moved to point to the end
of the list.
This only works in unsorted stores.PropertySystem.Int32Returns the number of columns supported by the .an object of type MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideRowChanged", Type=typeof(Gtk.TreeStore))System.Void
a
a Default handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideRowDeleted", Type=typeof(Gtk.TreeStore))System.Void
a Default handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideRowHasChildToggled", Type=typeof(Gtk.TreeStore))System.Void
a
a Default handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideRowInserted", Type=typeof(Gtk.TreeStore))System.Void
a
a Default handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideRowsReordered", Type=typeof(Gtk.TreeStore))System.Void
Path to the reordered parent node.
Iter corresponding to the reordered parent node.
An array of the old indices.
Default handler for the RowsReordered event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideSortColumnChanged", Type=typeof(Gtk.TreeStore))System.VoidDefault handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGtk.TreeIterPrepends a root node.a MethodGtk.TreeIter
a Prepends a child of an existing node.a MethodSystem.Void
an object of type Lets the tree ref the node.This is an optional method for models to implement. To be more specific, models may ignore this call as it exists primarily for performance reasons.This function is primarily meant as a way for views to let caching model know when nodes are being displayed (and hence, whether or not to cache that node.) For example, a file-system based model would not want to keep the entire file-hierarchy in memory, just the sections that are currently being displayed by every current view.A model should be expected to be able to get an iter independent of its referenced state.MethodSystem.Boolean
a Removes a row from the store.a After being removed, is set to be the next valid row, or invalidated if it pointed to the last row in the store.MethodSystem.Int32
To be added.
Reorders the TreeStore.a .(FIXME: Does this binding work?)EventGLib.Signal("row-changed")Gtk.RowChangedHandlerEmitted when a row is in the is changed.EventGLib.Signal("row-deleted")Gtk.RowDeletedHandlerEmitted when a row is deleted from the .MethodSystem.Boolean
a Returns whether or not a given row can be dragged.A boolean, true if the row is draggable.MethodSystem.Boolean
a , potential drop destination
a , potential data to be dropped.
Tests whether can be dropped on . a , true if drop is allowedEventGLib.Signal("row-has-child-toggled")Gtk.RowHasChildToggledHandlerEmitted when a child of a row is toggled.EventGLib.Signal("row-inserted")Gtk.RowInsertedHandlerEmitted when a row is inserted into the .EventGLib.Signal("rows_reordered")Gtk.RowsReorderedHandlerEmitted when the rows of the are re-ordered.MethodSystem.Void
A , the sort column index.
A , the kind of sort to use
Sets which column is to be used to sort the data in the tree.MethodSystem.Void
A , the index of the column to be sorted
A , the function to use for sorting
Sets a function that should be used to be sort a particular column.This method is meant to be used together with MethodSystem.Void
an object of type
a , pointer to the va_list data structure of arguments (FIXME: clarify what va_lists look like)
Sets the values of child properties for the row pointed to by .MethodSystem.Void
an object of type
an object of type
an object of type Sets the data in the cell specified by and .The type of value must be convertible to the type of the column.MethodSystem.Void
a
a
a Sets the value of the specified column in the row pointed by iter.The type of specified column must be a .MethodSystem.Void
a
a
a Sets the value of the specified column in the row pointed by iter.The type of specified column must be a .MethodSystem.Void
a
a
a Sets the value of the specified column in the row pointed by iter.The type of specified column must be an .MethodSystem.Void
a
a
a Sets the value of the specified column in the row pointed by iter.The type of specified column must be an .MethodSystem.Void
a
a
a Sets the value of the specified column in the row pointed by iter.The type of specified column must be an MethodSystem.Void
a
a
a Sets the value of the specified column in the row pointed by iter.The type of specified column must be a .MethodSystem.Void
a
a
a Sets the value of the specified column in the row pointed by iter.The type of specified column must be an .MethodSystem.VoidSystem.ParamArray
Update position.
An array of column values to set.
Sets the column values of a given row.EventGLib.Signal("sort-column-changed")System.EventHandlerEmitted when the sort column of the has changed.MethodSystem.Void
a
a Swaps rows a and b in the store.This is only works in unsorted stores.MethodSystem.Void
an object of type Lets the tree unref the node.This is an optional method for models to implement. To be more specific, models may ignore this call as it exists primarily for performance reasons. For more information on what this means, see . Please note that nodes that are deleted are not unreferenced.