Table of Contents

Class Sorter

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

Sorter(CreationData)

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

Parameters

data CreationData

Sorter(SorterHandle)

protected Sorter(SorterHandle handle)

Parameters

handle SorterHandle

Fields

ChangedSignal

Signal Descriptor for OnChanged.

public static readonly Signal<Sorter, Sorter.ChangedSignalArgs> ChangedSignal

Field Value

Signal<Sorter, Sorter.ChangedSignalArgs>

Methods

Changed(SorterChange)

public void Changed(SorterChange change)

Parameters

change SorterChange

Compare(Object, Object)

public Ordering Compare(Object item1, Object item2)

Parameters

item1 Object
item2 Object

Returns

Ordering

GetGType()

public static Type GetGType()

Returns

Type

GetOrder()

public SorterOrder GetOrder()

Returns

SorterOrder

NewFromPointer(nint, bool)

Creates a new managed Sorter instance for a given pointer.

public static Sorter NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Sorter

NewWithProperties(ConstructArgument[])

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

public static Sorter NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Sorter

Events

OnChanged

public event SignalHandler<Sorter, Sorter.ChangedSignalArgs> OnChanged

Event Type

SignalHandler<Sorter, Sorter.ChangedSignalArgs>