TreeRowReference

A GtkTreeRowReference tracks model changes so that it always refers to the same row (a gtk.tree_path.TreePath refers to a position, not a fixed row). Create a new GtkTreeRowReference with gtk.tree_row_reference.TreeRowReference.new_.

More...

Constructors

this
this(gtk.tree_model.TreeModel model, gtk.tree_path.TreePath path)

Creates a row reference based on path.

Members

Functions

copy
gtk.tree_row_reference.TreeRowReference copy()

Copies a gtk.tree_row_reference.TreeRowReference.

getModel
gtk.tree_model.TreeModel getModel()

Returns the model that the row reference is monitoring.

getPath
gtk.tree_path.TreePath getPath()

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

valid
bool valid()

Returns true if the reference is non-null and refers to a current valid path.

Static functions

deleted
void deleted(gobject.object.ObjectG proxy, gtk.tree_path.TreePath path)

Lets a set of row reference created by gtk.tree_row_reference.TreeRowReference.newProxy know that the model emitted the ::row-deleted signal.

inserted
void inserted(gobject.object.ObjectG proxy, gtk.tree_path.TreePath path)

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

newProxy
gtk.tree_row_reference.TreeRowReference newProxy(gobject.object.ObjectG proxy, gtk.tree_model.TreeModel model, gtk.tree_path.TreePath path)

You do not need to use this function.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.

Detailed Description

Deprecated: Use gio.list_model.ListModel instead