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
constructArgumentsConstructArgument[]
CustomSorter(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected CustomSorter(CreationData data)
Parameters
dataCreationData
CustomSorter(CustomSorterHandle)
protected CustomSorter(CustomSorterHandle handle)
Parameters
handleCustomSorterHandle
Methods
GetGType()
public static Type GetGType()
Returns
New(CompareDataFunc?)
public static CustomSorter New(CompareDataFunc? sortFunc)
Parameters
sortFuncCompareDataFunc
Returns
NewFromPointer(nint, bool)
Creates a new managed CustomSorter instance for a given pointer.
public static CustomSorter NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new CustomSorter and sets the properties specified by the construct arguments.
public static CustomSorter NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
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