Table of Contents

Class SelectionFilterModel

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

Constructors

SelectionFilterModel(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public SelectionFilterModel(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

SelectionFilterModel(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SelectionFilterModel(CreationData data)

Parameters

data CreationData

SelectionFilterModel(SelectionFilterModelHandle)

protected SelectionFilterModel(SelectionFilterModelHandle handle)

Parameters

handle SelectionFilterModelHandle

Fields

ItemsChangedSignal

Signal Descriptor for OnItemsChanged.

public static readonly Signal<ListModel, ListModel.ItemsChangedSignalArgs> ItemsChangedSignal

Field Value

Signal<ListModel, ListModel.ItemsChangedSignalArgs>

ModelPropertyDefinition

public static readonly Property<SelectionModel, SelectionFilterModel> ModelPropertyDefinition

Field Value

Property<SelectionModel, SelectionFilterModel>

NItemsPropertyDefinition

public static readonly Property<uint, SelectionFilterModel> NItemsPropertyDefinition

Field Value

Property<uint, SelectionFilterModel>

Properties

Model

public SelectionModel Model { get; set; }

Property Value

SelectionModel

NItems

public uint NItems { get; }

Property Value

uint

Methods

GetGType()

public static Type GetGType()

Returns

Type

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 SelectionModel? GetModel()

Returns

SelectionModel

GetNItems()

[Version("2.44")]
public uint GetNItems()

Returns

uint

GetObject(uint)

[Version("2.44")]
public Object? GetObject(uint position)

Parameters

position uint

Returns

Object

ItemsChanged(uint, uint, uint)

[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)

Parameters

position uint
removed uint
added uint

New(SelectionModel?)

public static SelectionFilterModel New(SelectionModel? model)

Parameters

model SelectionModel

Returns

SelectionFilterModel

NewFromPointer(nint, bool)

Creates a new managed SelectionFilterModel instance for a given pointer.

public static SelectionFilterModel NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

SelectionFilterModel

NewWithProperties(ConstructArgument[])

Creates a new SelectionFilterModel and sets the properties specified by the construct arguments.

public static SelectionFilterModel NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

SelectionFilterModel

SetModel(SelectionModel?)

public void SetModel(SelectionModel? model)

Parameters

model SelectionModel

Events

OnItemsChanged

public event SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs> OnItemsChanged

Event Type

SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs>