TreeRowReference

A GtkTreeRowReference tracks model changes so that it always refers to the same row (a gtk.TreePath refers to a position, not a fixed row). Create a new GtkTreeRowReference with TreeRowReference.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

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

copy
TreeRowReference copy()

Copies a gtk.TreeRowReference

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 TreeRowReference.newProxy know that the model emitted the row-deleted signal.

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

Lets a set of row reference created by TreeRowReference.newProxy know that the model emitted the row-inserted signal.

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

Lets a set of row reference created by TreeRowReference.newProxy know that the model emitted the rows-reordered signal.

Variables

gtkTreeRowReference
GtkTreeRowReference* gtkTreeRowReference;

the main Gtk struct