gtk.tree_sortable
Module for TreeSortable interface
Types 2
interfaceTreeSortable
#GtkTreeSortable is an interface to be implemented by tree models which support sorting. The #GtkTreeView uses the methods provided by this interface to sort the model.
Methods
bool getSortColumnId(out int sortColumnId, out gtk.types.SortType order)Fills in sort_column_id and order with the current sort column and the order. It returns true unless the sort_column_id is [gtk.types.TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID] or [gtk.types.TREE_SORTAB...bool hasDefaultSortFunc()Returns true if the model has a default sort function. This is used primarily by GtkTreeViewColumns in order to determine if a model can go back to the default state, or not. Returns: true, if the ...void setDefaultSortFunc(gtk.types.TreeIterCompareFunc sortFunc)Sets the default comparison function used when sorting to be sort_func. If the current sort column id of sortable is [gtk.types.TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID], then the model will sort using...void setSortColumnId(int sortColumnId, gtk.types.SortType order)Sets the current sort column to be sort_column_id. The sortable will resort itself to reflect this change, after emitting a #GtkTreeSortable::sort-column-changed signal. sort_column_id may either b...void setSortFunc(int sortColumnId, gtk.types.TreeIterCompareFunc sortFunc)Sets the comparison function used when sorting to be sort_func. If the current sort column id of sortable is the same as sort_column_id, then the model will sort using this function.void sortColumnChanged()Emits a #GtkTreeSortable::sort-column-changed signal on sortable.gulong connectSortColumnChanged(T)(T callback, Flag!"After" after = No.After)Connect to `SortColumnChanged` signal.interfaceTreeSortableGidBuilderImpl(T)
Fluent builder implementation template for gtk.tree_sortable.TreeSortable