Table of Contents

Class CustomSorter

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class CustomSorter : Sorter, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
CustomSorter
Implements
Inherited Members

Constructors

CustomSorter(params ConstructArgument[])

public CustomSorter(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

CustomSorter(CustomSorterHandle)

public CustomSorter(CustomSorterHandle handle)

Parameters

handle CustomSorterHandle

Methods

GetGType()

public static Type GetGType()

Returns

Type

New(CompareDataFunc?)

public static CustomSorter New(CompareDataFunc? sortFunc)

Parameters

sortFunc CompareDataFunc

Returns

CustomSorter

New<T>(CompareDataFuncT<T>)

Creates a CustomSorter instance.

public static CustomSorter New<T>(CompareDataFuncT<T> func) where T : NativeObject

Parameters

func CompareDataFuncT<T>

A generic variant of CompareDataFunc

Returns

CustomSorter

The new CustomSorter instance.

Type Parameters

T

The Object type which should be compared.

Remarks

This is a convenience function not available in the native API to allow comparing Object instead of nint.

SetSortFunc(CompareDataFunc?)

public void SetSortFunc(CompareDataFunc? sortFunc)

Parameters

sortFunc CompareDataFunc