AvatarImageLoadFunc


Description:

[ CCode ( instance_pos = 1.9 ) ]
[ Version ( deprecated = true , deprecated_since = "1.2" , since = "1.0" ) ]
public delegate Pixbuf? AvatarImageLoadFunc (int size)

Warning: AvatarImageLoadFunc is deprecated since 1.2.

Callback for loading an [class@Avatar]'s image.

Note:

use [[email protected]_loadable_icon] instead.

The returned [[email protected]] is expected to be square with width and height set to size. The image is cropped to a circle without any scaling or transformation.

Parameters:

size

the required size of the avatar

user_data

user data

Returns:

the pixbuf to use as a custom avatar or `NULL` to fallback to the generated avatar


Namespace: Hdy
Package: libhandy-1



2022 vala-language.org