Callbacks¶
|
|
|
|
|
Details¶
- Pango.AttrDataCopyFunc(*user_data)¶
- Parameters:
- Returns:
new copy of user_data.
- Return type:
Type of a function that can duplicate user data for an attribute.
- Pango.AttrFilterFunc(attribute, *user_data)¶
- Parameters:
attribute (
Pango.Attribute
) – a Pango attributeuser_data (
object
orNone
) – user data passed to the function
- Returns:
True
if the attribute should be selected for filtering,False
otherwise.- Return type:
Type of a function filtering a list of attributes.
- Pango.FontsetForeachFunc(fontset, font, *user_data)¶
- Parameters:
fontset (
Pango.Fontset
) – aPangoFontset
font (
Pango.Font
) – a font from fontset
- Returns:
if
True
, stop iteration and return immediately.- Return type:
Callback used when enumerating fonts in a fontset.
See [method`Pango`.Fontset.foreach].
New in version 1.4.