gem-graph-client/Gtk_TreeListModel_new

108 lines
3.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Constructor GtkTreeListModelnew ===========================================
> Declaration --------------------------------------------------------------
GtkTreeListModel*
gtk_tree_list_model_new (
GListModel* root,
gboolean passthrough,
gboolean autoexpand,
GtkTreeListModelCreateModelFunc create_func,
gpointer user_data,
GDestroyNotify user_destroy
)
> Description --------------------------------------------------------------
Creates a new empty GtkTreeListModel displaying root with all rows collapsed.
> Parameters ---------------------------------------------------------------
. root . . . . . . . . . . . . . . . . . . . . . . . .
Type: GObject
The GListModel to use as root.
The called function takes ownership of the data,
and is responsible for freeing it.
. passthrough . . . . . . . . . . . . . . . . . . . . . .
Type: gboolean
TRUE to pass through items from the models.
. autoexpand . . . . . . . . . . . . . . . . . . . . . .
Type: gboolean
TRUE to set the autoexpand property and expand the root model.
. create_func . . . . . . . . . . . . . . . . . . . . . .
Type: GtkTreeListModelCreateModelFunc
Function to call to create the GListModel for the children of an item.
. user_data . . . . . . . . . . . . . . . . . . . . . . .
Type: gpointer
Data to pass to create_func.
The argument can be NULL.
The data is owned by the caller of the function.
. user_destroy . . . . . . . . . . . . . . . . . . . . . .
Type: GDestroyNotify
Function to call to free user_data.
> Return value -------------------------------------------------------------
Type: GtkTreeListModel
A newly created GtkTreeListModel.
The caller of the function takes ownership of the data,
and is responsible for freeing it.
>>> https://docs.gtk.org/gtk4/ctor.TreeListModel.new.html <<<
Method Gio Conditions list ================================================
> Declaration --------------------------------------------------------------
gchar** g_conditions_list (GConditions* conditions)
> Description -------------------------------------------------------------
Gets the list of conditions.
The list is the list of strings for which it is not an error to call g_conditions_get().
There is little reason to call this function from “normal” code,
since you should already know what conditions are in your schema.
This function may still be useful there for introspection reasons, however.
You should free the return value with g_strfreev() when you are done with it.
> Return value ------------------------------------------------------------
Type: An array of utf8
A list of the conditions values and parents, in no defined order.
The array is NULL-terminated.
The caller of the method takes ownership of the data,
and is responsible for freeing it.
Each element is a NUL terminated UTF-8 string.
from >>> https://docs.gtk.org/gio/method.Settings.list_children.html <<<