Trait gtk4::prelude::MultiFilterExt

source ·
pub trait MultiFilterExt: IsA<MultiFilter> + Sealed + 'static {
    // Provided methods
    fn append(&self, filter: impl IsA<Filter>) { ... }
    fn remove(&self, position: u32) { ... }
Expand description

Trait containing all MultiFilter methods.


AnyFilter, EveryFilter, MultiFilter

Provided Methods§


fn append(&self, filter: impl IsA<Filter>)

Adds a @filter to @self to use for matching.


A new filter to use


fn remove(&self, position: u32)

Removes the filter at the given @position from the list of filters used by @self.

If @position is larger than the number of filters, nothing happens and the function returns.


position of filter to remove

Object Safety§

This trait is not object safe.