Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Dazzle.CounterForeachFunc(counter, *user_data)¶
- Parameters:
counter (
Dazzle.Counter
) – the counter.user_data (
object
orNone
) – data supplied toDazzle.CounterArena.foreach
().
Function prototype for callbacks provided to
Dazzle.CounterArena.foreach
().
- Dazzle.DirectoryModelVisibleFunc(self, directory, file_info, *user_data)¶
- Parameters:
self (
Dazzle.DirectoryModel
) –directory (
Gio.File
) –file_info (
Gio.FileInfo
) –
- Return type:
- Dazzle.ListModelFilterFunc(object, *user_data)¶
- Parameters:
object (
GObject.Object
) –
- Return type:
- Dazzle.RecursiveIgnoreFunc(file, *user_data)¶
- Dazzle.ShortcutChordTableForeach(chord, chord_data, *user_data)¶
- Parameters:
chord (
Dazzle.ShortcutChord
) –
- Dazzle.StackListCreateWidgetFunc(item, *user_data)¶
- Parameters:
item (
GObject.Object
) – the item from the model for which to create a widget foruser_data (
object
orNone
) – user data fromDazzle.StackList.push
()
- Returns:
a
Gtk.Widget
that represents item- Return type:
Called for stack lists that are bound to a
Gio.ListModel
withDazzle.StackList.push
() for each item that gets added to the model.
- Dazzle.SuggestionPositionFunc(entry, area, is_absolute, *user_data)¶
- Parameters:
entry (
Dazzle.SuggestionEntry
) – aDazzle.SuggestionEntry
area (
Gdk.Rectangle
) – location to place the popoveris_absolute (
bool
) – If the area is in absolute coordinates
- 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:
self (
Dazzle.TaskCache
) – AnDazzle.TaskCache
.task (
Gio.Task
) – the task to be completeduser_data (
object
orNone
) – user_data registered at initialization.
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
usingGio.Task.return_pointer
() or aGLib.Error
usingGio.Task.return_error
() or g_task_return_new_error().
- Dazzle.TreeFilterFunc(tree, node, *user_data)¶
- Parameters:
tree (
Dazzle.Tree
) –node (
Dazzle.TreeNode
) –
- Returns:
True
if node should be visible.- Return type:
Callback to check if node should be visible.
- Dazzle.TreeFindFunc(tree, node, child, *user_data)¶
- Parameters:
tree (
Dazzle.Tree
) –node (
Dazzle.TreeNode
) –child (
Dazzle.TreeNode
) –
- Returns:
True
if child matched- Return type:
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:
a (
Dazzle.TreeNode
) –b (
Dazzle.TreeNode
) –
- Return type: