Basics
Guides
API Reference
Basics
Guides
API Reference
[162:14] static extends: object
Alternate constructors for GtkTreeRowReference. Usage:
GtkTreeRowReferenceCtors.<name>(...). The primary constructor lives
directly on GtkTreeRowReference.
newProxy (object proxy, object model, object path)
You do not need to use this function. Creates a row reference based on
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 gtk_tree_row_reference_inserted(), gtk_tree_row_reference_deleted(), gtk_tree_row_reference_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 GtkTreeView 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 is a proxy GObject.model is a GtkTreeModel.path is a valid GtkTreePath to monitor.A new GtkTreeRowReference.[14:7] extends: object
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().
GtkTreeRowReference (model = null, path = null)
Creates a row reference based on @path. This reference will keep pointing to the node pointed to by @path, so long as it exists. Any changes that occur on @model are propagated, and the path is updated appropriately. If
isn’t a valid path in @model, then %NULL is returned.model is a GtkTreeModel.path is a valid GtkTreePath to monitor.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.copy ()
Copies a
GtkTreeRowReference.
a copy of @reference.free ()
Free’s @reference. @reference may be %NULL
None.get_model ()
Returns the model that the row reference is monitoring.
the model.get_path ()
Returns a path that the row reference currently points to, or %NULL if the path pointed to is no longer valid.
a current path.valid ()
Returns %TRUE if the @reference is non-%NULL and refers to a current valid path.
%TRUE if @reference points to a valid path.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.