|
| FilterListModel (FilterListModel && src) noexcept |
|
FilterListModel & | operator= (FilterListModel && src) noexcept |
|
| ~FilterListModel () noexcept override |
|
GtkFilterListModel * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GtkFilterListModel * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GtkFilterListModel * | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
void | set_filter (const Glib::RefPtr< Filter > & filter) |
| Sets the filter used to filter items.
|
|
Glib::RefPtr< Filter > | get_filter () |
| Gets the Gtk::Filter currently set on self.
|
|
Glib::RefPtr< const Filter > | get_filter () const |
| Gets the Gtk::Filter currently set on self.
|
|
void | set_model (const Glib::RefPtr< Gio::ListModel > & model) |
| Sets the model to be filtered.
|
|
Glib::RefPtr< Gio::ListModel > | get_model () |
| Gets the model currently filtered or nullptr if none.
|
|
Glib::RefPtr< const Gio::ListModel > | get_model () const |
| Gets the model currently filtered or nullptr if none.
|
|
void | set_incremental (bool incremental=true) |
| Sets the filter model to do an incremental sort.
|
|
bool | get_incremental () const |
| Returns whether incremental filtering is enabled.
|
|
guint | get_pending () const |
| Returns the number of items that have not been filtered yet.
|
|
Glib::PropertyProxy< Glib::RefPtr< Filter > > | property_filter () |
| The filter for this model.
|
|
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Filter > > | property_filter () const |
| The filter for this model.
|
|
Glib::PropertyProxy< bool > | property_incremental () |
| If the model should filter items incrementally.
|
|
Glib::PropertyProxy_ReadOnly< bool > | property_incremental () const |
| If the model should filter items incrementally.
|
|
Glib::PropertyProxy_ReadOnly< GType > | property_item_type () const |
| The type of items.
|
|
Glib::PropertyProxy< Glib::RefPtr< Gio::ListModel > > | property_model () |
| The model being filtered.
|
|
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gio::ListModel > > | property_model () const |
| The model being filtered.
|
|
Glib::PropertyProxy_ReadOnly< unsigned int > | property_n_items () const |
| The number of items.
|
|
Glib::PropertyProxy_ReadOnly< guint > | property_pending () const |
| Number of items not yet filtered.
|
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
PropertyType | get_property (const Glib::ustring &property_name) const |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| ListModel (ListModel &&src) noexcept |
|
ListModel & | operator= (ListModel &&src) noexcept |
|
| ~ListModel () noexcept override |
|
GListModel * | gobj () |
|
const GListModel * | gobj () const |
|
GType | get_item_type () const |
|
guint | get_n_items () const |
|
Glib::RefPtr< Glib::ObjectBase > | get_object (guint position) |
|
Glib::RefPtr< const Glib::ObjectBase > | get_object (guint position) const |
|
Glib::SignalProxy< void(guint, guint, guint)> | signal_items_changed () |
|
Glib::RefPtr< Gio::ListModel > | wrap (GListModel *object, bool take_copy=false) |
|
| Interface () |
|
| Interface (Interface &&src) noexcept |
|
Interface & | operator= (Interface &&src) noexcept |
|
| Interface (const Glib::Interface_Class &interface_class) |
|
| Interface (GObject *castitem) |
|
| ~Interface () noexcept override |
|
| Interface (const Interface &)=delete |
|
Interface & | operator= (const Interface &)=delete |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
A list model that filters its items.
Gtk::FilterListModel is a list model that filters a given other listmodel. It hides some elements from the other model according to criteria given by a Gtk::Filter.
The model can be set up to do incremental searching, so that filtering long lists doesn't block the UI. See set_incremental() for details.
- See also
- Gio::ListModel, Gtk::Filter
- Since gtkmm 3.98:
void Gtk::FilterListModel::set_incremental |
( |
bool |
incremental = true | ) |
|
Sets the filter model to do an incremental sort.
When incremental filtering is enabled, the Gtk::FilterListModel
will not run filters immediately, but will instead queue an idle handler that incrementally filters the items and adds them to the list. This of course means that items are not instantly added to the list, but only appear incrementally.
When your filter blocks the UI while filtering, you might consider turning this on. Depending on your model and filters, this may become interesting around 10,000 to 100,000 items.
By default, incremental filtering is disabled.
See get_pending() for progress information about an ongoing incremental filtering operation.
- Parameters
-
incremental | true to enable incremental filtering. |