Callbacks

CounterForeachFunc (counter, *user_data)

DirectoryModelVisibleFunc (self, directory, file_info, *user_data)

ListModelFilterFunc (object, *user_data)

RecursiveIgnoreFunc (file, *user_data)

ShortcutChordTableForeach (chord, chord_data, *user_data)

StackListCreateWidgetFunc (item, *user_data)

SuggestionPositionFunc (entry, area, is_absolute, *user_data)

TaskCacheCallback (self, key, task, *user_data)

TreeFilterFunc (tree, node, *user_data)

TreeFindFunc (tree, node, child, *user_data)

TreeNodeCompareFunc (a, b, *user_data)

TrieTraverseFunc (dzl_trie, key, value, *user_data)

Details

Dazzle.CounterForeachFunc(counter, *user_data)
Parameters:

Function prototype for callbacks provided to Dazzle.CounterArena.foreach().

Dazzle.DirectoryModelVisibleFunc(self, directory, file_info, *user_data)
Parameters:
Return type:

bool

Dazzle.ListModelFilterFunc(object, *user_data)
Parameters:
Return type:

bool

Dazzle.RecursiveIgnoreFunc(file, *user_data)
Parameters:
Return type:

bool

Dazzle.ShortcutChordTableForeach(chord, chord_data, *user_data)
Parameters:
Dazzle.StackListCreateWidgetFunc(item, *user_data)
Parameters:
Returns:

a Gtk.Widget that represents item

Return type:

Gtk.Widget

Called for stack lists that are bound to a Gio.ListModel with Dazzle.StackList.push() for each item that gets added to the model.

Dazzle.SuggestionPositionFunc(entry, area, is_absolute, *user_data)
Parameters:
Returns:

area:

location to place the popover

is_absolute:

If the area is in absolute coordinates

Return type:

(area: Gdk.Rectangle, is_absolute: bool)

Positions the popover in the coordinates defined by area.

If is_absolute is set to True, then absolute coordinates are used. Otherwise, the position is expected to be relative to entry.

New in version 3.26.

Dazzle.TaskCacheCallback(self, key, task, *user_data)
Parameters:

Dazzle.TaskCacheCallback is the prototype for a function to be executed to populate an item in the cache.

This function will be executed when a fault (cache miss) occurs from a caller requesting an item from the cache.

The callee may complete the operation asynchronously, but MUST return either a GObject.Object using Gio.Task.return_pointer() or a GLib.Error using Gio.Task.return_error() or g_task_return_new_error().

Dazzle.TreeFilterFunc(tree, node, *user_data)
Parameters:
Returns:

True if node should be visible.

Return type:

bool

Callback to check if node should be visible.

Dazzle.TreeFindFunc(tree, node, child, *user_data)
Parameters:
Returns:

True if child matched

Return type:

bool

Callback to check child, a child of node, matches a lookup request. Returns True if child matches, False if not.

Dazzle.TreeNodeCompareFunc(a, b, *user_data)
Parameters:
Return type:

int

Dazzle.TrieTraverseFunc(dzl_trie, key, value, *user_data)
Parameters:
Return type:

bool