summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-08-11 15:48:25 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-08-11 20:39:14 -0400
commit5dd3585270746fd88b267d06ce20eb9c19cab5e5 (patch)
tree0c290d402e6fafe3ad2e86da131666ab58a07ef5 /pango/pango-attributes.h
parent6489105c20bdebc720c223894d947fd5e3cebe49 (diff)
downloadpango-5dd3585270746fd88b267d06ce20eb9c19cab5e5.tar.gz
Add attribute types for fg and bg alpha
Add attributes types for foreground and background alpha.
Diffstat (limited to 'pango/pango-attributes.h')
-rw-r--r--pango/pango-attributes.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h
index 3f783e45..1844fcde 100644
--- a/pango/pango-attributes.h
+++ b/pango/pango-attributes.h
@@ -137,6 +137,8 @@ typedef struct _PangoAttrIterator PangoAttrIterator;
* @PANGO_ATTR_GRAVITY: base text gravity (#PangoAttrInt)
* @PANGO_ATTR_GRAVITY_HINT: gravity hint (#PangoAttrInt)
* @PANGO_ATTR_FONT_FEATURES: OpenType font features (#PangoAttrString). Since 1.38
+ * @PANGO_ATTR_FOREGROUND_ALPHA: foreground alpha (#PangoAttrInt). Since 1.38
+ * @PANGO_ATTR_BACKGROUND_ALPHA: background alpha (#PangoAttrInt). Since 1.38
*
* The #PangoAttrType
* distinguishes between different types of attributes. Along with the
@@ -170,7 +172,9 @@ typedef enum
PANGO_ATTR_ABSOLUTE_SIZE, /* PangoAttrSize */
PANGO_ATTR_GRAVITY, /* PangoAttrInt */
PANGO_ATTR_GRAVITY_HINT, /* PangoAttrInt */
- PANGO_ATTR_FONT_FEATURES /* PangoAttrString */
+ PANGO_ATTR_FONT_FEATURES, /* PangoAttrString */
+ PANGO_ATTR_FOREGROUND_ALPHA, /* PangoAttrInt */
+ PANGO_ATTR_BACKGROUND_ALPHA /* PangoAttrInt */
} PangoAttrType;
/**
@@ -476,6 +480,8 @@ PangoAttribute *pango_attr_shape_new_with_data (const PangoRectangle *ink_
PangoAttribute *pango_attr_gravity_new (PangoGravity gravity);
PangoAttribute *pango_attr_gravity_hint_new (PangoGravityHint hint);
PangoAttribute *pango_attr_font_features_new (const gchar *features);
+PangoAttribute *pango_attr_foreground_alpha_new (guint16 alpha);
+PangoAttribute *pango_attr_background_alpha_new (guint16 alpha);
GType pango_attr_list_get_type (void) G_GNUC_CONST;
PangoAttrList * pango_attr_list_new (void);