Callbacks¶
| AttrDataCopyFunc(*user_data) | |
| AttrFilterFunc(attribute, *user_data) | |
| FontsetForeachFunc(fontset, font, *user_data) | 
Details¶
- 
Pango.AttrDataCopyFunc(*user_data)¶
- Parameters: - user_data ( - objector- None) – user data to copy- Returns: - new copy of user_data. - Return type: - objector- None- Type of a function that can duplicate user data for an attribute. 
- 
Pango.AttrFilterFunc(attribute, *user_data)¶
- Parameters: - attribute (Pango.Attribute) – a Pango attribute
- user_data (objectorNone) – user data passed to the function
 - Returns: - Trueif the attribute should be selected for filtering,- Falseotherwise.- Return type: - Type of a function filtering a list of attributes. 
- attribute (
- 
Pango.FontsetForeachFunc(fontset, font, *user_data)¶
- Parameters: - fontset (Pango.Fontset) – aPango.Fontset
- font (Pango.Font) – a font from fontset
- user_data (objectorNone) – callback data
 - Returns: - if - True, stop iteration and return immediately.- Return type: - A callback function used by - Pango.Fontset.foreach() when enumerating the fonts in a fontset.- New in version 1.4. 
- fontset (