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[])

[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 CustomSorter(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

CustomSorter(CreationData)

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

Parameters

data CreationData

CustomSorter(CustomSorterHandle)

protected 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

NewFromPointer(nint, bool)

Creates a new managed CustomSorter instance for a given pointer.

public static CustomSorter NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

CustomSorter

NewWithProperties(ConstructArgument[])

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

public static CustomSorter NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

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