Table of Contents

Class SliceListModel

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class SliceListModel : Object, IObject, INotifyPropertyChanged, IDisposable, ListModel, SectionModel, IHandle, GTypeProvider
Inheritance
SliceListModel
Implements
Inherited Members

Constructors

SliceListModel(bool, params ConstructArgument[])

protected SliceListModel(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

SliceListModel(IntPtr, bool)

protected SliceListModel(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ModelPropertyDefinition

public static readonly Property<ListModel, SliceListModel> ModelPropertyDefinition

Field Value

Property<ListModel, SliceListModel>

NItemsPropertyDefinition

public static readonly Property<uint, SliceListModel> NItemsPropertyDefinition

Field Value

Property<uint, SliceListModel>

OffsetPropertyDefinition

public static readonly Property<uint, SliceListModel> OffsetPropertyDefinition

Field Value

Property<uint, SliceListModel>

SizePropertyDefinition

public static readonly Property<uint, SliceListModel> SizePropertyDefinition

Field Value

Property<uint, SliceListModel>

Properties

Model

public ListModel Model { get; set; }

Property Value

ListModel

NItems

public uint NItems { get; }

Property Value

uint

Offset

public uint Offset { get; set; }

Property Value

uint

Size

public uint Size { get; set; }

Property Value

uint

Methods

GetGType()

public static Type GetGType()

Returns

Type

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

GetOffset()

public uint GetOffset()

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

GetSize()

public uint GetSize()

Returns

uint

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?, uint, uint)

public static SliceListModel New(ListModel? model, uint offset, uint size)

Parameters

model ListModel
offset uint
size uint

Returns

SliceListModel

SectionsChanged(uint, uint)

public void SectionsChanged(uint position, uint nItems)

Parameters

position uint
nItems uint

SetModel(ListModel?)

public void SetModel(ListModel? model)

Parameters

model ListModel

SetOffset(uint)

public void SetOffset(uint offset)

Parameters

offset uint

SetSize(uint)

public void SetSize(uint size)

Parameters

size uint