diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-05-04 11:33:14 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-05-04 11:33:14 +0000 |
commit | 0defecb84e0beabd95a1a39801dc715d327c3b59 (patch) | |
tree | cc2c4e11060dc43d7d5938d7fff40b9f4be2fd96 /pango/pangocairo.h | |
parent | 7dfb3c077cc7b2234fe9ab098a237c11e8de55da (diff) | |
download | pango-0defecb84e0beabd95a1a39801dc715d327c3b59.tar.gz |
New API
2007-05-04 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo.h:
* pango/pangocairo-context.c:
* pango/pangocairo-render.c:
New API
PangoCairoShapeRendererFunc and
pango_cairo_context_[sg]et_shape_renderer()
* docs/pango-sections.txt, docs/tmpl/pangocairo.sgml: Document new
* API.
* examples/Makefile.am, examples/cairoshape.c: New example to show off
new API/feature.
svn path=/trunk/; revision=2261
Diffstat (limited to 'pango/pangocairo.h')
-rw-r--r-- | pango/pangocairo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pango/pangocairo.h b/pango/pangocairo.h index fe97db3b..d8085112 100644 --- a/pango/pangocairo.h +++ b/pango/pangocairo.h @@ -44,6 +44,11 @@ G_BEGIN_DECLS typedef struct _PangoCairoFontMap PangoCairoFontMap; +typedef void (* PangoCairoShapeRendererFunc) (cairo_t *cr, + PangoAttrShape *attr, + gboolean do_path, + gpointer data); + /* * PangoCairoFontMap */ @@ -70,6 +75,13 @@ void pango_cairo_context_set_resolution (PangoContext *c double dpi); double pango_cairo_context_get_resolution (PangoContext *context); +void pango_cairo_context_set_shape_renderer (PangoContext *context, + PangoCairoShapeRendererFunc func, + gpointer data, + GDestroyNotify dnotify); +PangoCairoShapeRendererFunc pango_cairo_context_get_shape_renderer (PangoContext *context, + gpointer *data); + /* Convenience */ PangoLayout *pango_cairo_create_layout (cairo_t *cr); |