Class SortListModel
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class SortListModel : Object, IObject, INotifyPropertyChanged, IDisposable, ListModel, SectionModel, IHandle, GTypeProvider
- Inheritance
-
SortListModel
- Implements
-
- Inherited Members
-
Constructors
SortListModel(bool, params ConstructArgument[])
protected SortListModel(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
SortListModel(IntPtr, bool)
protected SortListModel(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
IncrementalPropertyDefinition
public static readonly Property<bool, SortListModel> IncrementalPropertyDefinition
Field Value
- Property<bool, SortListModel>
ModelPropertyDefinition
public static readonly Property<ListModel, SortListModel> ModelPropertyDefinition
Field Value
- Property<ListModel, SortListModel>
NItemsPropertyDefinition
public static readonly Property<uint, SortListModel> NItemsPropertyDefinition
Field Value
- Property<uint, SortListModel>
PendingPropertyDefinition
public static readonly Property<uint, SortListModel> PendingPropertyDefinition
Field Value
- Property<uint, SortListModel>
SectionSorterPropertyDefinition
public static readonly Property<Sorter?, SortListModel> SectionSorterPropertyDefinition
Field Value
- Property<Sorter, SortListModel>
SorterPropertyDefinition
public static readonly Property<Sorter?, SortListModel> SorterPropertyDefinition
Field Value
- Property<Sorter, SortListModel>
Properties
Incremental
public bool Incremental { get; set; }
Property Value
- bool
Model
public ListModel Model { get; set; }
Property Value
- ListModel
NItems
public uint NItems { get; }
Property Value
- uint
Pending
public uint Pending { get; }
Property Value
- uint
SectionSorter
public Sorter? SectionSorter { get; set; }
Property Value
- Sorter
Sorter
public Sorter? Sorter { get; set; }
Property Value
- Sorter
Methods
GetGType()
public static Type GetGType()
Returns
- Type
GetIncremental()
public bool GetIncremental()
Returns
- bool
GetItem(uint)
[Version("2.44")]
public IntPtr GetItem(uint position)
Parameters
position
uint
Returns
- IntPtr
GetItemType()
[Version("2.44")]
public Type GetItemType()
Returns
- Type
GetModel()
public ListModel? GetModel()
Returns
- ListModel
GetNItems()
[Version("2.44")]
public uint GetNItems()
Returns
- uint
GetObject(uint)
[Version("2.44")]
public Object? GetObject(uint position)
Parameters
position
uint
Returns
- Object
GetPending()
Returns
- uint
GetSection(uint, out uint, out uint)
[Version("4.12")]
public void GetSection(uint position, out uint outStart, out uint outEnd)
Parameters
position
uint
outStart
uint
outEnd
uint
GetSectionSorter()
[Version("4.12")]
public Sorter? GetSectionSorter()
Returns
- Sorter
GetSorter()
public Sorter? GetSorter()
Returns
- Sorter
ItemsChanged(uint, uint, uint)
[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)
Parameters
position
uint
removed
uint
added
uint
New(ListModel?, Sorter?)
public static SortListModel New(ListModel? model, Sorter? sorter)
Parameters
model
ListModel
sorter
Sorter
Returns
- SortListModel
SectionsChanged(uint, uint)
public void SectionsChanged(uint position, uint nItems)
Parameters
position
uint
nItems
uint
SetIncremental(bool)
public void SetIncremental(bool incremental)
Parameters
incremental
bool
SetModel(ListModel?)
public void SetModel(ListModel? model)
Parameters
model
ListModel
SetSectionSorter(Sorter?)
[Version("4.12")]
public void SetSectionSorter(Sorter? sorter)
Parameters
sorter
Sorter
SetSorter(Sorter?)
public void SetSorter(Sorter? sorter)
Parameters
sorter
Sorter