Callbacks

AnimationTargetFunc (value, *user_data)

SidebarSectionCreateItemFunc (item, *user_data)

Details

Adw.AnimationTargetFunc(value, *user_data)
Parameters:
  • value (float) – The animation value

  • user_data (object or None) – The user data provided when creating the target

Prototype for animation targets based on user callbacks.

Adw.SidebarSectionCreateItemFunc(item, *user_data)
Parameters:
  • item (GObject.Object) – the item from the model for which to create an item for

  • user_data (object or None) – user data

Returns:

an AdwSidebarItem that represents item

Return type:

Adw.SidebarItem

Called for sidebars that are bound to a [iface`Gio`.ListModel] with [method`SidebarSection`.bind_model] for each item that gets added to the model.

New in version 1.9.