Gnome::Gtk4::T-treemodel
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
Class initialization
new
Initialization of a type class is simple and only needed when the standalone functions are used.
method new ( )
#------------------------------------------------------------------------------- #--[Record Structure Documentation]--------------------------------------------- #-------------------------------------------------------------------------------
Record N-TreeIter
class N-TreeIter:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {
has gint $.stamp;
has gpointer $.user-data;
has gpointer $.user-data2;
has gpointer $.user-data3;
}
stamp; a unique stamp to catch invalid iterators
user-data; model-specific data
user-data2; model-specific data
user-data3; model-specific data
#------------------------------------------------------------------------------- #--[Record Structure]----------------------------------------------------------- #-------------------------------------------------------------------------------
Record N-TreePath
This is an opaque type of which fields are not available.
class N-TreePath:auth<github:MARTIMM>:api<2> is export is repr('CStruct') { }
#------------------------------------------------------------------------------- #--[Record Structure]----------------------------------------------------------- #-------------------------------------------------------------------------------
Record N-TreeRowReference
This is an opaque type of which fields are not available.
class N-TreeRowReference:auth<github:MARTIMM>:api<2> is export is repr('CStruct') { }
#------------------------------------------------------------------------------- #--[Bitfields]------------------------------------------------------------------ #-------------------------------------------------------------------------------
Bitfields
GtkTreeModelFlags
These flags indicate various properties of a Gnome::Gtk4::R-TreeModel.
They are returned by .get-flags() in class TreeModel, and must be
static for the lifetime of the object. A more complete description
of GTK_TREE_MODEL_ITERS_PERSIST can be found in the overview of
this section.
GTK_TREE_MODEL_ITERS_PERSIST; iterators survive all signals emitted by the treeGTK_TREE_MODEL_LIST_ONLY; the model is a list only, and never has children
#------------------------------------------------------------------------------- #--[Callback Functions]--------------------------------------------------------- #-------------------------------------------------------------------------------
Callback Functions
TreeModelForeachFunc
Signature
:( N-Object() $model, N-Object $path, N-Object $iter, gpointer $data )
$model; the Gnome::Gtk4::R-TreeModel being iterated
$path; the current Gnome::Gtk4::N-TreePath
$iter; the current Gnome::Gtk4::T-treemodel
$data; The user data passed to gtk_tree_model_foreach()
#------------------------------------------------------------------------------- #--[Standalone Functions]------------------------------------------------------- #-------------------------------------------------------------------------------
Standalone Functions
#-------------------------------------------------------------------------------
tree-row-reference-deleted
Lets a set of row reference created by
.new-proxy() know that the
model emitted the row-deleted signal.
method tree-row-reference-deleted ( N-Object() $proxy, N-Object $path )
$proxy; a Gnome::GObject::Object.
$path; the path position that was deleted
#-------------------------------------------------------------------------------
tree-row-reference-inserted
Lets a set of row reference created by
.new-proxy() know that the
model emitted the row-inserted signal.
method tree-row-reference-inserted ( N-Object() $proxy, N-Object $path )
$proxy; a Gnome::GObject::Object.
$path; the row position that was inserted
#-------------------------------------------------------------------------------
tree-row-reference-reordered
Lets a set of row reference created by
.new-proxy() know that the
model emitted the rows-reordered signal.
method tree-row-reference-reordered ( N-Object() $proxy, N-Object $path, N-Object $iter, Array[Int] $new-order )
$proxy; a Gnome::GObject::Object.
$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.