Table of Contents

Class TreeModel

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class TreeModel
Inheritance
TreeModel
Inherited Members

Methods

FilterNew(IntPtr, TreePathHandle)

Calls native method gtk_tree_model_filter_new.

public static extern IntPtr FilterNew(IntPtr childModel, TreePathHandle root)

Parameters

childModel IntPtr

Transfer ownership: None Nullable: False

root TreePathHandle

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: Full Nullable: False

Foreach(IntPtr, TreeModelForeachFunc, IntPtr)

Calls native method gtk_tree_model_foreach.

public static extern void Foreach(IntPtr model, TreeModelForeachFunc func, IntPtr userData)

Parameters

model IntPtr

Transfer ownership: None Nullable: False

func TreeModelForeachFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

GetColumnType(IntPtr, int)

Calls native method gtk_tree_model_get_column_type.

public static extern nuint GetColumnType(IntPtr treeModel, int index)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

index int

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

GetFlags(IntPtr)

Calls native method gtk_tree_model_get_flags.

public static extern TreeModelFlags GetFlags(IntPtr treeModel)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

Returns

TreeModelFlags

Transfer ownership: None Nullable: False

GetGType()

Calls native function gtk_tree_model_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetNColumns(IntPtr)

Calls native method gtk_tree_model_get_n_columns.

public static extern int GetNColumns(IntPtr treeModel)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetPath(IntPtr, TreeIterHandle)

Calls native method gtk_tree_model_get_path.

public static extern TreePathOwnedHandle GetPath(IntPtr treeModel, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

Returns

TreePathOwnedHandle

Transfer ownership: Full Nullable: False

GetStringFromIter(IntPtr, TreeIterHandle)

Calls native method gtk_tree_model_get_string_from_iter.

public static extern NullableUtf8StringOwnedHandle GetStringFromIter(IntPtr treeModel, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

GetValist(IntPtr, TreeIterHandle, IntPtr)

Calls native method gtk_tree_model_get_valist.

public static extern void GetValist(IntPtr treeModel, TreeIterHandle iter, IntPtr varArgs)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

varArgs IntPtr

Transfer ownership: None Nullable: False

IterHasChild(IntPtr, TreeIterHandle)

Calls native method gtk_tree_model_iter_has_child.

public static extern bool IterHasChild(IntPtr treeModel, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IterNChildren(IntPtr, TreeIterHandle)

Calls native method gtk_tree_model_iter_n_children.

public static extern int IterNChildren(IntPtr treeModel, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: True

Returns

int

Transfer ownership: None Nullable: False

IterNext(IntPtr, TreeIterHandle)

Calls native method gtk_tree_model_iter_next.

public static extern bool IterNext(IntPtr treeModel, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IterPrevious(IntPtr, TreeIterHandle)

Calls native method gtk_tree_model_iter_previous.

public static extern bool IterPrevious(IntPtr treeModel, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

RefNode(IntPtr, TreeIterHandle)

Calls native method gtk_tree_model_ref_node.

public static extern void RefNode(IntPtr treeModel, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

RowChanged(IntPtr, TreePathHandle, TreeIterHandle)

Calls native method gtk_tree_model_row_changed.

public static extern void RowChanged(IntPtr treeModel, TreePathHandle path, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

path TreePathHandle

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

RowDeleted(IntPtr, TreePathHandle)

Calls native method gtk_tree_model_row_deleted.

public static extern void RowDeleted(IntPtr treeModel, TreePathHandle path)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

path TreePathHandle

Transfer ownership: None Nullable: False

RowHasChildToggled(IntPtr, TreePathHandle, TreeIterHandle)

Calls native method gtk_tree_model_row_has_child_toggled.

public static extern void RowHasChildToggled(IntPtr treeModel, TreePathHandle path, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

path TreePathHandle

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

RowInserted(IntPtr, TreePathHandle, TreeIterHandle)

Calls native method gtk_tree_model_row_inserted.

public static extern void RowInserted(IntPtr treeModel, TreePathHandle path, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

path TreePathHandle

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

RowsReordered(IntPtr, TreePathHandle, TreeIterHandle, ref int)

Calls native method gtk_tree_model_rows_reordered.

public static extern void RowsReordered(IntPtr treeModel, TreePathHandle path, TreeIterHandle iter, ref int newOrder)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

path TreePathHandle

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False

newOrder int

Transfer ownership: None Nullable: False

RowsReordered(IntPtr, TreePathHandle, TreeIterHandle, ref int, int)

Calls native method gtk_tree_model_rows_reordered_with_length.

public static extern void RowsReordered(IntPtr treeModel, TreePathHandle path, TreeIterHandle iter, ref int newOrder, int length)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

path TreePathHandle

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: True

newOrder int

Transfer ownership: None Nullable: False

length int

Transfer ownership: None Nullable: False

UnrefNode(IntPtr, TreeIterHandle)

Calls native method gtk_tree_model_unref_node.

public static extern void UnrefNode(IntPtr treeModel, TreeIterHandle iter)

Parameters

treeModel IntPtr

Transfer ownership: None Nullable: False

iter TreeIterHandle

Transfer ownership: None Nullable: False