Top | ![]() |
![]() |
![]() |
![]() |
IdeTree * | ide_tree_model_get_tree () |
IdeTreeNode * | ide_tree_model_get_root () |
void | ide_tree_model_set_root () |
const gchar * | ide_tree_model_get_kind () |
void | ide_tree_model_set_kind () |
IdeTreeNode * | ide_tree_model_get_node () |
GtkTreePath * | ide_tree_model_get_path_for_node () |
gboolean | ide_tree_model_get_iter_for_node () |
void | ide_tree_model_invalidate () |
void | ide_tree_model_expand_async () |
gboolean | ide_tree_model_expand_finish () |
gchar * | kind | Read / Write |
IdeTreeNode * | root | Read / Write |
IdeTree * | tree | Read / Write / Construct Only |
IdeTreeNode *
ide_tree_model_get_root (IdeTreeModel *self
);
Gets the root IdeTreeNode. This node is never visualized in the tree, but is used to build the immediate children which are displayed in the tree.
Since: 3.32
const gchar *
ide_tree_model_get_kind (IdeTreeModel *self
);
Gets the kind of model that is being generated. See “kind” for more information.
Since: 3.32
void ide_tree_model_set_kind (IdeTreeModel *self
,const gchar *kind
);
Sets the kind of model that is being created. This determines what plugins are used to generate the tree contents.
This should be set before adding the IdeTreeModel to an IdeObject to ensure the tree builds the proper contents.
Since: 3.32
IdeTreeNode * ide_tree_model_get_node (IdeTreeModel *self
,GtkTreeIter *iter
);
Gets the IdeTreeNode found at iter
.
Since: 3.32
GtkTreePath * ide_tree_model_get_path_for_node (IdeTreeModel *self
,IdeTreeNode *node
);
Gets the GtkTreePath pointing at node
.
Since: 3.32
gboolean ide_tree_model_get_iter_for_node (IdeTreeModel *self
,GtkTreeIter *iter
,IdeTreeNode *node
);
Gets a GtkTreeIter that points at node
.
Since: 3.32
void ide_tree_model_invalidate (IdeTreeModel *self
,IdeTreeNode *node
);
Invalidates model
starting from node
so that those items
are rebuilt using the configured tree addins.
If node
is NULL
, the root of the tree is invalidated.
Since: 3.32
void ide_tree_model_expand_async (IdeTreeModel *self
,IdeTreeNode *node
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean ide_tree_model_expand_finish (IdeTreeModel *self
,GAsyncResult *result
,GError **error
);
“kind”
property “kind” gchar *
The "kind" property is used to determine what IdeTreeAddin plugins to load. Only plugins which match the "kind" will be loaded to extend the tree contents.
For example, to extend the project-tree, plugins should set "X-Tree-Kind=project-tree" in their .plugin manifest.
Owner: IdeTreeModel
Flags: Read / Write
Default value: NULL
Since: 3.32
“root”
property“root” IdeTreeNode *
The "root" property contains the root IdeTreeNode that is used to build the tree. It should contain an object for the “item” property so that IdeTreeAddin's may use it to build the node and any children.
Owner: IdeTreeModel
Flags: Read / Write
Since: 3.32
“tree”
property“tree” IdeTree *
The tree the model belongs to.
Owner: IdeTreeModel
Flags: Read / Write / Construct Only