Table of Contents

Class MapListModel

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class MapListModel : Object, IDisposable, ListModel, SectionModel, GTypeProvider, InstanceFactory
Inheritance
MapListModel
Implements
Inherited Members

Constructors

MapListModel(params ConstructArgument[])

public MapListModel(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

MapListModel(MapListModelHandle)

public MapListModel(MapListModelHandle handle)

Parameters

handle MapListModelHandle

Fields

HasMapPropertyDefinition

public static readonly Property<bool, MapListModel> HasMapPropertyDefinition

Field Value

Property<bool, MapListModel>

ModelPropertyDefinition

public static readonly Property<ListModel, MapListModel> ModelPropertyDefinition

Field Value

Property<ListModel, MapListModel>

NItemsPropertyDefinition

public static readonly Property<uint, MapListModel> NItemsPropertyDefinition

Field Value

Property<uint, MapListModel>

Properties

HasMap

public bool HasMap { get; }

Property Value

bool

Model

public ListModel Model { get; }

Property Value

ListModel

NItems

public uint NItems { get; }

Property Value

uint

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetHasMap()

public bool GetHasMap()

Returns

bool

GetItem(uint)

[Version("2.44")]
public nint GetItem(uint position)

Parameters

position uint

Returns

nint

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

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

public static MapListModel New(ListModel? model, MapListModelMapFunc? mapFunc)

Parameters

model ListModel
mapFunc MapListModelMapFunc

Returns

MapListModel

SectionsChanged(uint, uint)

[Version("4.12")]
public void SectionsChanged(uint position, uint nItems)

Parameters

position uint
nItems uint

SetMapFunc(MapListModelMapFunc?)

public void SetMapFunc(MapListModelMapFunc? mapFunc)

Parameters

mapFunc MapListModelMapFunc

SetModel(ListModel?)

public void SetModel(ListModel? model)

Parameters

model ListModel