Class SliceListModel
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class SliceListModel : Object, ListModel, SectionModel, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
SliceListModel
- Implements
- Inherited Members
Constructors
SliceListModel(params ConstructArgument[])
public SliceListModel(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
SliceListModel(SliceListModelHandle)
public SliceListModel(SliceListModelHandle handle)
Parameters
handleSliceListModelHandle
Fields
ItemsChangedSignal
Signal Descriptor for OnItemsChanged.
public static readonly Signal<ListModel, ListModel.ItemsChangedSignalArgs> ItemsChangedSignal
Field Value
ModelPropertyDefinition
public static readonly Property<ListModel, SliceListModel> ModelPropertyDefinition
Field Value
NItemsPropertyDefinition
public static readonly Property<uint, SliceListModel> NItemsPropertyDefinition
Field Value
OffsetPropertyDefinition
public static readonly Property<uint, SliceListModel> OffsetPropertyDefinition
Field Value
SectionsChangedSignal
Signal Descriptor for OnSectionsChanged.
public static readonly Signal<SectionModel, SectionModel.SectionsChangedSignalArgs> SectionsChangedSignal
Field Value
SizePropertyDefinition
public static readonly Property<uint, SliceListModel> SizePropertyDefinition
Field Value
Properties
Model
public ListModel Model { get; set; }
Property Value
NItems
public uint NItems { get; }
Property Value
Offset
public uint Offset { get; set; }
Property Value
Size
public uint Size { get; set; }
Property Value
Methods
GetGType()
public static Type GetGType()
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
GetOffset()
public uint GetOffset()
Returns
GetSection(uint, out uint, out uint)
[Version("4.12")]
public void GetSection(uint position, out uint outStart, out uint outEnd)
Parameters
GetSize()
public uint GetSize()
Returns
ItemsChanged(uint, uint, uint)
[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)
Parameters
New(ListModel?, uint, uint)
public static SliceListModel New(ListModel? model, uint offset, uint size)
Parameters
Returns
SectionsChanged(uint, uint)
[Version("4.12")]
public void SectionsChanged(uint position, uint nItems)
Parameters
SetModel(ListModel?)
public void SetModel(ListModel? model)
Parameters
modelListModel
SetOffset(uint)
public void SetOffset(uint offset)
Parameters
offsetuint
SetSize(uint)
public void SetSize(uint size)
Parameters
sizeuint
Events
OnItemsChanged
public event SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs> OnItemsChanged
Event Type
OnSectionsChanged
public event SignalHandler<SectionModel, SectionModel.SectionsChangedSignalArgs> OnSectionsChanged