Callbacks

AnimationTargetFunc (value, *user_data)

CssClassBindingMapToClassFunc (self, property_value, *user_data)

CssClassBindingMapToPropertyFunc (self, class_applied, property_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.CssClassBindingMapToClassFunc(self, property_value, *user_data)
Parameters:
Returns:

whether to apply the target CSS class

Return type:

bool

Prototype for mapping properties to CSS classes for a [class`CssClassBinding`].

Added in version 1.10.

Adw.CssClassBindingMapToPropertyFunc(self, class_applied, property_value, *user_data)
Parameters:
  • self (Adw.CssClassBinding) – The binding class

  • class_applied (bool) – whether the target CSS class is applied

  • property_value (GObject.Value) – The value to use for the source property

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

Prototype for mapping CSS classes to properties for a [class`CssClassBinding`].

Added in version 1.10.

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.

Added in version 1.9.