Callbacks

AttrDataCopyFunc (*user_data)

AttrFilterFunc (attribute, *user_data)

FontsetForeachFunc (fontset, font, *user_data)

Details

Pango.AttrDataCopyFunc(*user_data)
Parameters:

user_data (object or None) – user data to copy

Returns:

new copy of user_data.

Return type:

object or None

Type of a function that can duplicate user data for an attribute.

Pango.AttrFilterFunc(attribute, *user_data)
Parameters:
Returns:

True if the attribute should be selected for filtering, False otherwise.

Return type:

bool

Type of a function filtering a list of attributes.

Pango.FontsetForeachFunc(fontset, font, *user_data)
Parameters:
Returns:

if True, stop iteration and return immediately.

Return type:

bool

Callback used when enumerating fonts in a fontset.

See [method`Pango`.Fontset.foreach].

New in version 1.4.