Class TreeRowReference
- All Implemented Interfaces:
Proxy
GtkTreePath refers to a position, not a fixed row). Create a
new GtkTreeRowReference with gtk_tree_row_reference_new().-
Constructor Summary
ConstructorsConstructorDescriptionTreeRowReference(MemorySegment address) Deprecated.Create a TreeRowReference proxy instance for the provided memory address.TreeRowReference(TreeModel model, TreePath path) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Deprecated.static voidDeprecated.voidfree()Deprecated.getModel()Deprecated.@Nullable TreePathgetPath()Deprecated.static @Nullable TypegetType()Deprecated.Get the GType of the TreeRowReference classstatic voidDeprecated.static TreeRowReferenceDeprecated.static voidreordered(GObject proxy, TreePath path, TreeIter iter, @org.jspecify.annotations.Nullable int @Nullable [] newOrder) Deprecated.booleanvalid()Deprecated.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
TreeRowReference
Deprecated.Create a TreeRowReference proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
TreeRowReference
Deprecated.Creates a row reference based onpath.This reference will keep pointing to the node pointed to by
path,so long as it exists. Any changes that occur onmodelare propagated, and the path is updated appropriately. Ifpathisn’t a valid path inmodel,thennullis returned.- Parameters:
model- aGtkTreeModelpath- a validGtkTreePathto monitor
-
-
Method Details
-
getType
Deprecated.Get the GType of the TreeRowReference class- Returns:
- the GType
-
proxy
Deprecated.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. Ifpathisn’t a valid path inmodel,thennullis 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
GtkTreeViewalready use this mechanism internally, using them as the proxy object will produce unpredictable results. Further more, passing the same object asmodelandproxydoesn’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.
- Parameters:
proxy- a proxyGObjectmodel- aGtkTreeModelpath- a validGtkTreePathto monitor- Returns:
- a newly allocated
GtkTreeRowReference
-
deleted
Deprecated.Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the ::row-deleted signal.- Parameters:
proxy- aGObjectpath- the path position that was deleted
-
inserted
Deprecated.Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the ::row-inserted signal.- Parameters:
proxy- aGObjectpath- the row position that was inserted
-
reordered
@Deprecated public static void reordered(GObject proxy, TreePath path, TreeIter iter, @org.jspecify.annotations.Nullable int @Nullable [] newOrder) Deprecated.Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the ::rows-reordered signal.- Parameters:
proxy- aGObjectpath- the parent path of the reordered signaliter- the iter pointing to the parent of the reorderednewOrder- the new order of rows
-
copy
Deprecated.Copies aGtkTreeRowReference.- Returns:
- a copy of this TreeRowReference
-
free
-
getModel
Deprecated.Returns the model that the row reference is monitoring.- Returns:
- the model
-
getPath
Deprecated.Returns a path that the row reference currently points to, ornullif the path pointed to is no longer valid.- Returns:
- a current path
-
valid
Deprecated.Returnstrueif the this TreeRowReference is non-nulland refers to a current valid path.- Returns:
trueif this TreeRowReference points to a valid path
-
ListModelinstead