summaryrefslogtreecommitdiff
path: root/pango/pango-renderer.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-08-11 15:35:21 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-08-11 20:39:14 -0400
commit884db27321c7eb381fbec23fa445cc481bf546b7 (patch)
tree242a11cec78de8727cebb9b8b3e210701af991d4 /pango/pango-renderer.h
parent5dd3585270746fd88b267d06ce20eb9c19cab5e5 (diff)
downloadpango-884db27321c7eb381fbec23fa445cc481bf546b7.tar.gz
Add alpha support to PangoRenderer
Add pango_renderer_get/set_alpha to allow associating alpha values with the various colors. The alpha is stored as a value between 0 and 65536, with 0 meaning 'unset'.
Diffstat (limited to 'pango/pango-renderer.h')
-rw-r--r--pango/pango-renderer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pango/pango-renderer.h b/pango/pango-renderer.h
index 63d9e656..2127a4cc 100644
--- a/pango/pango-renderer.h
+++ b/pango/pango-renderer.h
@@ -248,6 +248,12 @@ void pango_renderer_set_color (PangoRenderer *renderer,
PangoColor *pango_renderer_get_color (PangoRenderer *renderer,
PangoRenderPart part);
+void pango_renderer_set_alpha (PangoRenderer *renderer,
+ PangoRenderPart part,
+ guint16 alpha);
+guint16 pango_renderer_get_alpha (PangoRenderer *renderer,
+ PangoRenderPart part);
+
void pango_renderer_set_matrix (PangoRenderer *renderer,
const PangoMatrix *matrix);
const PangoMatrix *pango_renderer_get_matrix (PangoRenderer *renderer);