Function

RotulusAvatarFunc

Declaration

GdkPaintable*
(* RotulusAvatarFunc) (
  RotulusView* view,
  guint64 key,
  gpointer user_data
)

Description [src]

Resolves a speaker’s key to the image in their avatar slot. Called on every draw, so an animated avatar animates; cache anything expensive. The function must not change the view.

Parameters

view

Type: RotulusView

The view.

The data is owned by the caller of the function.
key

Type: guint64

A speaker’s key.

user_data

Type: gpointer

The data passed to rotulus_view_set_avatar_func().

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: GdkPaintable

The avatar, or NULL for none.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.