Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: object
Sorts items via a callback function.
GtkCustomSorter (sort_func = null, user_data = null, user_destroy = null)
Creates a new
GtkSorterthat works by calling @sort_func to compare items. If @sort_func is %NULL, all items are considered equal.
sort_func is the GCompareDataFunc to use for sorting.user_data is user data to pass to @sort_func.user_destroy is destroy notify for @user_data.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asSorter ()
Wraps this handle as
GtkSorter.
A GtkSorter object.set_sort_func (object user_destroy)
Sets (or unsets) the function used for sorting items. If @sort_func is %NULL, all items are considered equal. If the sort func changes its sorting behavior, gtk_sorter_changed() needs to be called. If a previous function was set, its @user_destroy will be called now.
sort_func is function to sort items.user_data is user data to pass to @match_func.user_destroy is destroy notify for @user_data.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.