Compilation Units
Tagged Types
Applies a gives sorter to the levels in a tree.
Here is an example for setting up a column view with a tree model and a GtkTreeListSorter:
gtk_tree_list_row_sorter_new (g_object_ref (column_sorter)); sort_model =
gtk_sort_list_model_new (tree_model, sorter); selection =
gtk_single_selection_new (sort_model); gtk_column_view_set_model (view,
G_LIST_MODEL (selection)); ```
function Get_Sorter
(Self : not null access Gtk_Tree_List_Row_Sorter_Record)
return Gtk.Sorter.Gtk_Sorter
Returns the sorter used by Self.
the sorter used. Has transfer-ownership='none'.
function Get_Type return Glib.GType
procedure Gtk_New
(Self : out Gtk_Tree_List_Row_Sorter;
Sorter : access Gtk.Sorter.Gtk_Sorter_Record'Class)
Create a special-purpose sorter that applies the sorting of Sorter to the levels of a GtkTreeListModel. Note that this sorter relies on [propertyGtk.TreeListModel:passthrough] being False as it can only sort [classGtk.TreeListRow]s. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
a GtkSorter. Has transfer-ownership='full'.
type Gtk_Tree_List_Row_Sorter is access all Gtk_Tree_List_Row_Sorter_Record'Class;
function Gtk_Tree_List_Row_Sorter_New
(Sorter : access Gtk.Sorter.Gtk_Sorter_Record'Class)
return Gtk_Tree_List_Row_Sorter
Create a special-purpose sorter that applies the sorting of Sorter to the levels of a GtkTreeListModel. Note that this sorter relies on [propertyGtk.TreeListModel:passthrough] being False as it can only sort [classGtk.TreeListRow]s.
a GtkSorter. Has transfer-ownership='full'.
type Gtk_Tree_List_Row_Sorter_Record is new Gtk_Sorter_Record with null record;
procedure Initialize
(Self : not null access Gtk_Tree_List_Row_Sorter_Record'Class;
Sorter : access Gtk.Sorter.Gtk_Sorter_Record'Class)
Create a special-purpose sorter that applies the sorting of Sorter to the levels of a GtkTreeListModel. Note that this sorter relies on [propertyGtk.TreeListModel:passthrough] being False as it can only sort [classGtk.TreeListRow]s. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
a GtkSorter. Has transfer-ownership='full'.
procedure Set_Sorter
(Self : not null access Gtk_Tree_List_Row_Sorter_Record;
Sorter : access Gtk.Sorter.Gtk_Sorter_Record'Class)
Sets the sorter to use for items with the same parent. This sorter will be passed the [propertyGtk.TreeListRow:item] of the tree list rows passed to Self.
The sorter to use
Sorter_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Sorter.Gtk_Sorter The underlying sorter