FlowBox.setSortFunc

By setting a sort function on the @box, one can dynamically reorder the children of the box, based on the contents of the children.

The @sort_func will be called for each child after the call, and will continue to be called each time a child changes (via [method@Gtk.FlowBoxChild.changed]) and when [method@Gtk.FlowBox.invalidate_sort] is called.

Note that using a sort function is incompatible with using a model (see [method@Gtk.FlowBox.bind_model]).

class FlowBox
void
setSortFunc

Parameters

sortFunc GtkFlowBoxSortFunc

the sort function

userData void*

user data passed to @sort_func

destroy GDestroyNotify

destroy notifier for @user_data

Meta