TreeRowReference

A GtkTreeRowReference tracks model changes so that it always refers to the same row (a #GtkTreePath refers to a position, not a fixed row). Create a new GtkTreeRowReference with gtk_tree_row_reference_new().

Constructors

this
this(GtkTreeRowReference* gtkTreeRowReference, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(TreeModelIF model, TreePath path)

Creates a row reference based on @path.

this
this(ObjectG proxy, TreeModelIF model, TreePath path)

You do not need to use this function.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

copy
TreeRowReference copy()

Copies a #GtkTreeRowReference.

free
void free()

Free’s @reference. @reference may be %NULL

getModel
TreeModelIF getModel()

Returns the model that the row reference is monitoring.

getPath
TreePath getPath()

Returns a path that the row reference currently points to, or %NULL if the path pointed to is no longer valid.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTreeRowReferenceStruct
GtkTreeRowReference* getTreeRowReferenceStruct(bool transferOwnership)

Get the main Gtk struct

valid
bool valid()

Returns %TRUE if the @reference is non-%NULL and refers to a current valid path.

Static functions

deleted
void deleted(ObjectG proxy, TreePath path)

Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the #GtkTreeModel::row-deleted signal.

getType
GType getType()
inserted
void inserted(ObjectG proxy, TreePath path)

Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the #GtkTreeModel::row-inserted signal.

reordered
void reordered(ObjectG proxy, TreePath path, TreeIter iter, int[] newOrder)

Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the #GtkTreeModel::rows-reordered signal.

Variables

gtkTreeRowReference
GtkTreeRowReference* gtkTreeRowReference;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta