W Wrapl, The Programming Language

Libraries:Gtk:Gtk:TreeRowReference

Types

T

Constants

Nil : T

Functions

Deleted(proxy @ Gtk.GObject.Object.T, path @ Gtk.Gtk.TreePath.T) : Std.Object.T

Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "row_deleted" signal.

proxy A GObject
path The path position that was deleted


GetType() : Gtk.GObject.Type.T



Inserted(proxy @ Gtk.GObject.Object.T, path @ Gtk.Gtk.TreePath.T) : Std.Object.T

Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "row_inserted" signal.

proxy A GObject
path The row position that was inserted


New(model @ Gtk.Gtk.TreeModel.T, path @ Gtk.Gtk.TreePath.T) : Gtk.Gtk.TreeRowReference.T

Creates a row reference based on path. This reference will keep pointing to the node pointed to by path, so long as it exists. It listens to all signals emitted by model, and updates its path appropriately. If path isn't a valid path in model, then NULL is returned.

model A Gtk.Gtk.TreeModel.T
path A valid Gtk.Gtk.TreePath.T to monitor
Returns A newly allocated T, or NULL


NewProxy(proxy @ Gtk.GObject.Object.T, model @ Gtk.Gtk.TreeModel.T, path @ Gtk.Gtk.TreePath.T) : Gtk.Gtk.TreeRowReference.T

You do not need to use this function. Creates a row reference based on path. This reference will keep pointing to the node pointed to by path, so long as it exists. If path isn't a valid path in model, then NULL is returned. However, unlike references created with gtk_tree_row_reference_new(), it does not listen to the model for changes. The creator of the row reference must do this explicitly using Inserted, Deleted, Reordered.

These functions must be called exactly once per proxy when the corresponding signal on the model is emitted. This single call updates all row references for that proxy. Since built-in GTK+ objects like Gtk.Gtk.TreeView.T already use this mechanism internally, using them as the proxy object will produce unpredictable results. Further more, passing the same object as model and proxy doesn't work for reasons of internal implementation.

This type of row reference is primarily meant by structures that need to carefully monitor exactly when a row reference updates itself, and is not generally needed by most applications.

proxy A proxy GObject
model A Gtk.Gtk.TreeModel.T
path A valid Gtk.Gtk.TreePath.T to monitor
Returns A newly allocated T, or NULL


Reordered(proxy @ Gtk.GObject.Object.T, path @ Gtk.Gtk.TreePath.T, iter @ Gtk.Gtk.TreeIter.T, new_order @ Std.Object.T) : Std.Object.T

Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "rows_reordered" signal.

proxy A GObject
path The parent path of the reordered signal
iter The iter pointing to the parent of the reordered
new_order The new order of rows


Methods

:"="(_ @ T, _ @ T)

:Copy(self @ T) : Gtk.Gtk.TreeRowReference.T

Copies a T.

reference a T
Returns a copy of reference.


:Free(self @ T) : Std.Object.T

Free's reference. reference may be NULL.

reference A T, or NULL. [allow-none]


:GetModel(self @ T) : Gtk.Gtk.TreeModel.T

Returns the model that the row reference is monitoring.

reference A T
Returns the model. [transfer none]


:GetPath(self @ T) : Gtk.Gtk.TreePath.T

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

reference A T
Returns A current path, or NULL.


:Valid(self @ T) : Std.Symbol.T

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

reference A T, or NULL. [allow-none]
Returns TRUE if reference points to a valid path.


:"~="(_ @ T, _ @ T)