Struct gtk4::TreeRowReference [−][src]
pub struct TreeRowReference(_);
Expand description
Implementations
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
path
isn’t a valid path in model
, then None
is returned.
model
path
a valid TreePath
to monitor
Returns
a newly allocated TreeRowReference
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 None
is returned. However, unlike
references created with 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 TreeView
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
path
a valid TreePath
to monitor
Returns
a newly allocated TreeRowReference
Lets a set of row reference created by
new_proxy()
know that the
model emitted the ::row-deleted signal.
proxy
a GObject
path
the path position that was deleted
Lets a set of row reference created by
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
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for TreeRowReference
impl !Send for TreeRowReference
impl !Sync for TreeRowReference
impl Unpin for TreeRowReference
impl UnwindSafe for TreeRowReference
Blanket Implementations
Mutably borrows from an owned value. Read more