Table of Contents

Class MapListModel

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

Constructors

MapListModel(bool, params ConstructArgument[])

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

Parameters

owned bool
constructArguments ConstructArgument[]

MapListModel(IntPtr, bool)

protected MapListModel(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

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

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)

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