gi-gtk-4.0.11: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.MultiFilter

Description

GtkMultiFilter is the base class for filters that combine multiple filters.

Synopsis

Exported types

class (GObject o, IsDescendantOf MultiFilter o) => IsMultiFilter o Source #

Type class for types which can be safely cast to MultiFilter, for instance with toMultiFilter.

Instances

Instances details
(GObject o, IsDescendantOf MultiFilter o) => IsMultiFilter o Source # 
Instance details

Defined in GI.Gtk.Objects.MultiFilter

toMultiFilter :: (MonadIO m, IsMultiFilter o) => o -> m MultiFilter Source #

Cast to MultiFilter, for types for which this is known to be safe. For general casts, use castTo.

Methods

append

multiFilterAppend Source #

Arguments

:: (HasCallStack, MonadIO m, IsMultiFilter a, IsFilter b) 
=> a

self: a GtkMultiFilter

-> b

filter: A new filter to use

-> m () 

Adds a filter to self to use for matching.

remove

multiFilterRemove Source #

Arguments

:: (HasCallStack, MonadIO m, IsMultiFilter a) 
=> a

self: a GtkMultiFilter

-> Word32

position: position of filter to remove

-> m () 

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.

Properties

itemType

The type of items. See listModelGetItemType.

Since: 4.8

getMultiFilterItemType :: (MonadIO m, IsMultiFilter o) => o -> m GType Source #

Get the value of the “item-type” property. When overloading is enabled, this is equivalent to

get multiFilter #itemType

nItems

The number of items. See listModelGetNItems.

Since: 4.8

getMultiFilterNItems :: (MonadIO m, IsMultiFilter o) => o -> m Word32 Source #

Get the value of the “n-items” property. When overloading is enabled, this is equivalent to

get multiFilter #nItems