summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-attributes.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h
index e22970de..88b7d2d7 100644
--- a/pango/pango-attributes.h
+++ b/pango/pango-attributes.h
@@ -111,9 +111,27 @@ struct _PangoAttribute
guint end_index; /* in bytes. The character at this index is not included */
};
+/**
+ * PangoAttrFilterFunc:
+ * @attribute: a Pango attribute
+ * @user_data: user data passed to the function
+ *
+ * Type of a function filtering a list of attributes.
+ *
+ * Return value: %TRUE if the attribute should be kept, %FALSE if it should be
+ * filtered out.
+ **/
typedef gboolean (*PangoAttrFilterFunc) (PangoAttribute *attribute,
gpointer user_data);
+/**
+ * PangoAttrDataCopyFunc:
+ * @user_data: user data to copy
+ *
+ * Type of a function that can duplicate user data for an attribute.
+ *
+ * Return value: new copy of @user_data.
+ **/
typedef gpointer (*PangoAttrDataCopyFunc) (gconstpointer user_data);
struct _PangoAttrClass