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
constructArgumentsConstructArgument[]
CustomSorter(CustomSorterHandle)
public CustomSorter(CustomSorterHandle handle)
Parameters
handleCustomSorterHandle
Methods
GetGType()
public static Type GetGType()
Returns
New(CompareDataFunc?)
public static CustomSorter New(CompareDataFunc? sortFunc)
Parameters
sortFuncCompareDataFunc
Returns
New<T>(CompareDataFuncT<T>)
Creates a CustomSorter instance.
public static CustomSorter New<T>(CompareDataFuncT<T> func) where T : NativeObject
Parameters
funcCompareDataFuncT<T>A generic variant of CompareDataFunc
Returns
- CustomSorter
The new CustomSorter instance.
Type Parameters
TThe 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
sortFuncCompareDataFunc