Trait gtk4::prelude::SorterExt

source ·
pub trait SorterExt: 'static {
    // Required methods
    fn changed(&self, change: SorterChange);
    fn compare(
        &self,
        item1: &impl IsA<Object>,
        item2: &impl IsA<Object>
    ) -> Ordering;
    fn order(&self) -> SorterOrder;
    fn connect_changed<F: Fn(&Self, SorterChange) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}

Required Methods§

source

fn changed(&self, change: SorterChange)

source

fn compare( &self, item1: &impl IsA<Object>, item2: &impl IsA<Object> ) -> Ordering

source

fn order(&self) -> SorterOrder

source

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

Implementors§

source§

impl<O: IsA<Sorter>> SorterExt for O