gtk4::prelude

Trait TreeSortableExt

Source
pub trait TreeSortableExt: IsA<TreeSortable> + 'static {
    // Provided methods
    fn has_default_sort_func(&self) -> bool { ... }
    fn sort_column_changed(&self) { ... }
    fn connect_sort_column_changed<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
👎Deprecated: Since 4.10
Expand description

Trait containing all TreeSortable methods.

§Implementors

ListStore, TreeModelSort, TreeSortable, TreeStore

Provided Methods§

Source

fn has_default_sort_func(&self) -> bool

👎Deprecated: Since 4.10

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.

§Deprecated since 4.10
§Returns

true, if the model has a default sort function

Source

fn sort_column_changed(&self)

👎Deprecated: Since 4.10

Emits a GtkTreeSortable::sort-column-changed signal on @self.

§Deprecated since 4.10
Source

fn connect_sort_column_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

👎Deprecated: Since 4.10

The ::sort-column-changed signal is emitted when the sort column or sort order of @sortable is changed. The signal is emitted before the contents of @sortable are resorted.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§