diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-07-10 00:03:40 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-01 23:25:13 -0400 |
commit | 34c8e9c1a5915a12c376508244df6a96a1bf7fbc (patch) | |
tree | 2535d451d20adc37357c41aec4b9a8b7e27da5f7 /pango/pango-attributes.h | |
parent | 6735e96058a007da315670aef1bc770e816e5d98 (diff) | |
download | pango-34c8e9c1a5915a12c376508244df6a96a1bf7fbc.tar.gz |
attributes: Add helper api for introspectionintrospection-fixes
Add functions to cast PangoAttribute to the various
struct types, so language bindings can get at the
payload.
Fixes: #476
Diffstat (limited to 'pango/pango-attributes.h')
-rw-r--r-- | pango/pango-attributes.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h index 3336eb53..6f18718e 100644 --- a/pango/pango-attributes.h +++ b/pango/pango-attributes.h @@ -699,6 +699,25 @@ gboolean pango_markup_parser_finish (GMarkupParseContext *context gunichar *accel_char, GError **error); +PANGO_AVAILABLE_IN_1_50 +PangoAttrString *pango_attribute_as_string (PangoAttribute *attr); +PANGO_AVAILABLE_IN_1_50 +PangoAttrLanguage *pango_attribute_as_language (PangoAttribute *attr); +PANGO_AVAILABLE_IN_1_50 +PangoAttrInt *pango_attribute_as_int (PangoAttribute *attr); +PANGO_AVAILABLE_IN_1_50 +PangoAttrSize *pango_attribute_as_size (PangoAttribute *attr); +PANGO_AVAILABLE_IN_1_50 +PangoAttrFloat *pango_attribute_as_float (PangoAttribute *attr); +PANGO_AVAILABLE_IN_1_50 +PangoAttrColor *pango_attribute_as_color (PangoAttribute *attr); +PANGO_AVAILABLE_IN_1_50 +PangoAttrFontDesc *pango_attribute_as_font_desc (PangoAttribute *attr); +PANGO_AVAILABLE_IN_1_50 +PangoAttrShape *pango_attribute_as_shape (PangoAttribute *attr); +PANGO_AVAILABLE_IN_1_50 +PangoAttrFontFeatures *pango_attribute_as_font_features (PangoAttribute *attr); + G_END_DECLS #endif /* __PANGO_ATTRIBUTES_H__ */ |