Table of Contents

Class FlattenListModel

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

Constructors

FlattenListModel(bool, params ConstructArgument[])

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

Parameters

owned bool
constructArguments ConstructArgument[]

FlattenListModel(IntPtr, bool)

protected FlattenListModel(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ModelPropertyDefinition

public static readonly Property<ListModel, FlattenListModel> ModelPropertyDefinition

Field Value

Property<ListModel, FlattenListModel>

NItemsPropertyDefinition

public static readonly Property<uint, FlattenListModel> NItemsPropertyDefinition

Field Value

Property<uint, FlattenListModel>

Properties

Model

public ListModel Model { get; set; }

Property Value

ListModel

NItems

public uint NItems { get; }

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

GetModelForItem(uint)

public ListModel? GetModelForItem(uint position)

Parameters

position uint

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

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

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

public static FlattenListModel New(ListModel? model)

Parameters

model ListModel

Returns

FlattenListModel

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