Class FilterListModel
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class FilterListModel : Object, ListModel, SectionModel, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
FilterListModel
- Implements
- Inherited Members
Constructors
FilterListModel(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public FilterListModel(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
FilterListModel(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FilterListModel(CreationData data)
Parameters
dataCreationData
FilterListModel(FilterListModelHandle)
protected FilterListModel(FilterListModelHandle handle)
Parameters
handleFilterListModelHandle
Fields
FilterPropertyDefinition
public static readonly Property<Filter?, FilterListModel> FilterPropertyDefinition
Field Value
IncrementalPropertyDefinition
public static readonly Property<bool, FilterListModel> IncrementalPropertyDefinition
Field Value
ItemsChangedSignal
Signal Descriptor for OnItemsChanged.
public static readonly Signal<ListModel, ListModel.ItemsChangedSignalArgs> ItemsChangedSignal
Field Value
ModelPropertyDefinition
public static readonly Property<ListModel, FilterListModel> ModelPropertyDefinition
Field Value
NItemsPropertyDefinition
public static readonly Property<uint, FilterListModel> NItemsPropertyDefinition
Field Value
PendingPropertyDefinition
public static readonly Property<uint, FilterListModel> PendingPropertyDefinition
Field Value
SectionsChangedSignal
Signal Descriptor for OnSectionsChanged.
public static readonly Signal<SectionModel, SectionModel.SectionsChangedSignalArgs> SectionsChangedSignal
Field Value
WatchItemsPropertyDefinition
public static readonly Property<bool, FilterListModel> WatchItemsPropertyDefinition
Field Value
Properties
Filter
public Filter? Filter { get; set; }
Property Value
Incremental
public bool Incremental { get; set; }
Property Value
Model
public ListModel Model { get; set; }
Property Value
NItems
public uint NItems { get; }
Property Value
Pending
public uint Pending { get; }
Property Value
WatchItems
public bool WatchItems { get; set; }
Property Value
Methods
GetFilter()
public Filter? GetFilter()
Returns
GetGType()
public static Type GetGType()
Returns
GetIncremental()
public bool GetIncremental()
Returns
GetItem(uint)
[Version("2.44")]
public nint GetItem(uint position)
Parameters
positionuint
Returns
GetItemType()
[Version("2.44")]
public Type GetItemType()
Returns
GetModel()
public ListModel? GetModel()
Returns
GetNItems()
[Version("2.44")]
public uint GetNItems()
Returns
GetObject(uint)
[Version("2.44")]
public Object? GetObject(uint position)
Parameters
positionuint
Returns
GetPending()
public uint GetPending()
Returns
GetSection(uint, out uint, out uint)
[Version("4.12")]
public void GetSection(uint position, out uint outStart, out uint outEnd)
Parameters
GetWatchItems()
[Version("4.20")]
public bool GetWatchItems()
Returns
ItemsChanged(uint, uint, uint)
[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)
Parameters
New(ListModel?, Filter?)
public static FilterListModel New(ListModel? model, Filter? filter)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed FilterListModel instance for a given pointer.
public static FilterListModel NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new FilterListModel and sets the properties specified by the construct arguments.
public static FilterListModel NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SectionsChanged(uint, uint)
[Version("4.12")]
public void SectionsChanged(uint position, uint nItems)
Parameters
SetFilter(Filter?)
public void SetFilter(Filter? filter)
Parameters
filterFilter
SetIncremental(bool)
public void SetIncremental(bool incremental)
Parameters
incrementalbool
SetModel(ListModel?)
public void SetModel(ListModel? model)
Parameters
modelListModel
SetWatchItems(bool)
[Version("4.20")]
public void SetWatchItems(bool watchItems)
Parameters
watchItemsbool
Events
OnItemsChanged
public event SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs> OnItemsChanged
Event Type
OnSectionsChanged
public event SignalHandler<SectionModel, SectionModel.SectionsChangedSignalArgs> OnSectionsChanged