Gtk.TreeStore Members

The members of Gtk.TreeStore are listed below.

See Also: Inherited members from GLib.Object

Public Constructors

Protected Constructor.
Internal constructor
TreeStore(params Type[])
Creates a new Gtk.TreeStore instance.

Protected Constructors

Protected constructor.
Protected Constructor.

Public Properties

[write-only]
ColumnTypesGLib.GType[]. Documentation for this section has not yet been entered.
[write-only]
DefaultSortFuncTreeIterCompareFunc. The function that should be used to be sort columns by default if not otherwise specified by Gtk.TreeModelSort.SetSortFunc.
[read-only]
FlagsTreeModelFlags. Returns a set of flags supported by this Gtk.TreeStore.
[read-only]
static
GTypeGLib.GType. GType Property.
[read-only]
HasDefaultSortFuncbool. Find out whether this TreeStore has a default sort function.
[read-only]
NColumnsint. Returns the number of columns supported by the Gtk.TreeStore.

Public Methods

Append(TreeIter) : TreeIter
Appends a new row to the Gtk.TreeStore.
Append(out TreeIter)
Appends a new row to the Gtk.TreeStore.
AppendNode() : TreeIter
Appends a root node to the store.
AppendNode(TreeIter) : TreeIter
Appends a child to an existing node.
AppendValues(Array) : TreeIter
Appends a new row to the Gtk.TreeStore.
AppendValues(params object[]) : TreeIter
Appends a new row to the Gtk.TreeStore.
AppendValues(TreeIter, Array) : TreeIter
Appends a new row to the Gtk.TreeStore.
AppendValues(TreeIter, params object[]) : TreeIter
Appends a new row to the Gtk.TreeStore.
ChangeSortColumn()
Fires a TreeSortable.SortColumnChanged event.
Clear()
Removes all rows from the Gtk.TreeStore
DragDataDelete(TreePath) : bool
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.
DragDataGet(TreePath, SelectionData) : bool
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.
DragDataReceived(TreePath, SelectionData) : bool
Drags data received into this Gtk.TreeStore object.
EmitRowChanged(TreePath, TreeIter)
Emits the TreeStore.RowChanged event.
EmitRowDeleted(TreePath)
Emits the TreeModel.RowDeleted event.
EmitRowHasChildToggled(TreePath, TreeIter)
Emits the TreeStore.RowHasChildToggled event.
EmitRowInserted(TreePath, TreeIter)
Emits the TreeModel.RowInserted event.
EmitRowsReordered(TreePath, TreeIter) : int
Emits the TreeStore.RowsReordered event.
Foreach(TreeModelForeachFunc)
Calls func on each node in model in a depth-first fashion.
GetColumnType(int) : GLib.GType
Gets the type of data stored in column number index_.
GetIter(out TreeIter, TreePath) : bool
Sets iter to a valid iterator pointing to path.
GetIterFirst(out TreeIter) : bool
Gets the first iterator in the tree (the one at the path "0") and returns true.
GetIterFromString(out TreeIter, string) : bool
Gets the Gtk.TreeIter at path_string.
GetPath(TreeIter) : TreePath
Gets the Gtk.TreePath of iter.
GetSortColumnId(out int, out SortType) : bool
Report on which column is currently being used to sort this TreeStore.
GetStringFromIter(TreeIter) : string
Marshals the given iter into a path string.
GetValist(TreeIter, IntPtr)
Gets the values of child properties for the row pointed to by iter.
GetValue(TreeIter, int) : object
Gets a value at row iter and column column.
GetValue(TreeIter, int, ref GLib.Value)
Gets the value of row iter of column column and puts it in value.
Insert(out TreeIter, int)
Creates a new row at position.
Insert(TreeIter, int) : TreeIter
Inserts a new row at position position.
InsertAfter(out TreeIter, TreeIter)
Inserts a new row after sibling.
InsertAfter(TreeIter, TreeIter) : TreeIter
Inserts a new row after sibling.
InsertBefore(out TreeIter, TreeIter)
Inserts a new row before sibling.
InsertBefore(TreeIter, TreeIter) : TreeIter
Inserts a new row before sibling.
InsertNode(int) : TreeIter
Inserts a root node.
InsertNode(TreeIter, int) : TreeIter
Inserts a child of an existing node.
InsertNodeAfter(TreeIter) : TreeIter
Inserts a root node after a sibling.
InsertNodeAfter(TreeIter, TreeIter) : TreeIter
Inserts a child of an existing node after a sibling.
InsertNodeBefore(TreeIter) : TreeIter
Inserts a root node before a sibling.
InsertNodeBefore(TreeIter, TreeIter) : TreeIter
Inserts a child of an existing node before a sibling.
InsertWithValues(int, params object[]) : TreeIter
Inserts a row into the Root node of the store with values.
InsertWithValues(TreeIter, int, params object[]) : TreeIter
Inserts a child row into a node with values.
IsAncestor(TreeIter, TreeIter) : bool
Returns true if iter is an ancestor of descendant.
IterChildren(out TreeIter) : bool
Sets the TreeIter object pointed to by the iter param to point to the first child of this tree.
IterChildren(out TreeIter, TreeIter) : bool
Sets iter to point to the first child of parent.
IterDepth(TreeIter) : int
Returns the depth of iter.
IterHasChild(TreeIter) : bool
Returns true if iter has children, false otherwise.
IterIsValid(TreeIter) : bool
Test whether iter is valid for this TreeStore.
IterNChildren() : int
Returns the number of children that the Gtk.TreeIter has.
IterNChildren(TreeIter) : int
Returns the number of children that iter has.
IterNext(ref TreeIter) : bool
Sets iter to point to the node following it at the current level.
IterNthChild(out TreeIter, int) : bool
Sets iter to be the child of the root node, using the given index.
IterNthChild(out TreeIter, TreeIter, int) : bool
Sets iter to be the child of parent, using the given index.
IterParent(out TreeIter, TreeIter) : bool
Sets iter to be the parent of child.
MoveAfter(TreeIter, TreeIter)
Move the row pointed to by iter to the position after position. If position is null, iter will be moved to point to the start of the list.
MoveBefore(TreeIter, TreeIter)
Move the row pointed to by iter to the position before position. If position is null, iter will be moved to point to the end of the list.
Prepend(TreeIter) : TreeIter
Adds a new row to the beginning of the tree.
Prepend(out TreeIter)
Prepends a new row to the Gtk.TreeStore.
PrependNode() : TreeIter
Prepends a root node.
PrependNode(TreeIter) : TreeIter
Prepends a child of an existing node.
RefNode(TreeIter)
Lets the tree ref the node.
Remove(ref TreeIter) : bool
Removes a row from the store.
Reorder(TreeIter) : int
Reorders the TreeStore.
RowDraggable(TreePath) : bool
Returns whether or not a given row can be dragged.
RowDropPossible(TreePath, SelectionData) : bool
Tests whether selection_data can be dropped on dest_path.
SetColumnTypes(GLib.GType[])
Deprecated method to set what types go in each column of a TreeStore.
SetDefaultSortFunc(TreeIterCompareFunc, IntPtr, DestroyNotify)
Sets a function that should be used to be sort columns by default if not otherwise specified by Gtk.TreeModelSort.SetSortFunc.
SetSortColumnId(int, SortType)
Sets which column is to be used to sort the data in the tree.
SetSortFunc(int, TreeIterCompareFunc)
Sets a function that should be used to be sort a particular column.
SetSortFunc(int, TreeIterCompareFunc, IntPtr, DestroyNotify)
Sets a function that should be used to be sort a particular column.
SetValist(TreeIter, IntPtr)
Sets the values of child properties for the row pointed to by iter.
SetValue(TreeIter, int, GLib.Value)
Sets the data in the cell specified by iter and column.
SetValue(TreeIter, int, bool)
Sets the value of the specified column in the row pointed by iter.
SetValue(TreeIter, int, double)
Sets the value of the specified column in the row pointed by iter.
SetValue(TreeIter, int, int)
Sets the value of the specified column in the row pointed by iter.
SetValue(TreeIter, int, object)
Sets the value of the specified column in the row pointed by iter.
SetValue(TreeIter, int, float)
Sets the value of the specified column in the row pointed by iter.
SetValue(TreeIter, int, string)
Sets the value of the specified column in the row pointed by iter.
SetValue(TreeIter, int, uint)
Sets the value of the specified column in the row pointed by iter.
SetValues(TreeIter, params object[])
Sets the column values of a given row.
Swap(TreeIter, TreeIter)
Swaps rows a and b in the store.
UnrefNode(TreeIter)
Lets the tree unref the node.

Protected Methods

OnRowChanged(TreePath, TreeIter)
Default handler for the TreeStore.RowChanged event.
OnRowDeleted(TreePath)
Default handler for the TreeStore.RowDeleted event.
OnRowHasChildToggled(TreePath, TreeIter)
Default handler for the TreeStore.RowHasChildToggled event.
OnRowInserted(TreePath, TreeIter)
Default handler for the TreeStore.RowInserted event.
OnRowsReordered(TreePath, TreeIter, out int)
Default handler for the TreeStore.RowsReordered event.
OnRowsReordered(TreePath, TreeIter, int[])
Default handler for the RowsReordered event.
OnSortColumnChanged()
Default handler for the TreeStore.SortColumnChanged event.

Public Events

RowChangedEmitted when a row is in the Gtk.TreeStore is changed.
RowDeletedEmitted when a row is deleted from the Gtk.TreeStore.
RowHasChildToggledEmitted when a child of a row is toggled.
RowInsertedEmitted when a row is inserted into the Gtk.TreeStore.
RowsReorderedEmitted when the rows of the Gtk.TreeStore are re-ordered.
SortColumnChangedEmitted when the sort column of the Gtk.TreeStore has changed.