FilterListModel
Object Hierarchy:
Gtk.FilterListModel
Gtk.FilterListModel
Gtk.FilterListModel
GLib.Object
GLib.Object
GLib.Object->Gtk.FilterListModel
GLib.ListModel
GLib.ListModel
GLib.ListModel->Gtk.FilterListModel
Description:
[ CCode ( type_id = "gtk_filter_list_model_get_type ()" ) ]public class FilterListModel : Object , ListModel
`GtkFilterListModel` is a list model that filters the elements of the underlying model according to a `GtkFilter`.
It hides some elements from the other model according to criteria given by a `GtkFilter`.
The model can be set up to do incremental searching, so that filtering long lists doesn't block the UI. See [
[email protected] _incremental] for details.
Content:
Properties:
public Filter filter { get ; set ; }
The filter for this model.
public bool incremental { get ; set ; }
If the model should filter items incrementally.
public Type item_type { get ; }
The type of items.
public ListModel model { get ; set ; }
The model being filtered.
public uint n_items { get ; }
The number of items.
public uint pending { get ; }
Number of items not yet filtered.
Creation methods:
Methods:
public unowned Filter ? get_filter ()
Gets the `GtkFilter` currently set on this
.
public bool get_incremental ()
Returns whether incremental filtering is enabled.
public unowned ListModel ? get_model ()
Gets the model currently filtered or null
if none.
public uint get_pending ()
Returns the number of items that have not been filtered yet.
public void set_filter (Filter ? filter)
Sets the filter used to filter items.
public void set_incremental (bool incremental)
Sets the filter model to do an incremental sort.
public void set_model (ListModel ? model)
Sets the model to be filtered.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.ListModel