summaryrefslogtreecommitdiff
path: root/pango/pangocairo.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-06-06 20:19:57 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-06-06 20:19:57 +0000
commit296ed093de978b8864a4829eaa30574ad877567e (patch)
treeb9653f22df6444197844f9ff5ef5e3c125fd9eb9 /pango/pangocairo.h
parenta01672546967d77e52fa98e51f9505429915fe5c (diff)
downloadpango-296ed093de978b8864a4829eaa30574ad877567e.tar.gz
Bug 343355 – Add pango_cairo_show_error_underline &
2006-06-06 Behdad Esfahbod <behdad@gnome.org> Bug 343355 – Add pango_cairo_show_error_underline & pango_cairo_error_underline_path Based on patch by LingNing Zhang. * docs/pango-sections.txt, docs/tmpl/pangocairo.sgml, pango/pangocairo.def, pango/pangocairo.h, pango/pangocairo-render.c: New functions pango_cairo_show_error_underline and pango_cairo_error_underline_path. * pango/pangocairo-render.c (_pango_cairo_do_glyph_string), (_pango_cairo_do_layout_line), (_pango_cairo_do_layout), (_pango_cairo_do_error_underline), (pango_cairo_show_glyph_string), (pango_cairo_show_layout_line), (pango_cairo_show_layout), (pango_cairo_show_error_underline), (pango_cairo_glyph_string_path), (pango_cairo_layout_line_path), (pango_cairo_layout_path), (pango_cairo_error_underline_path): Merge similar code for pango_cairo_show_* and pango_cairo_*_path functions.
Diffstat (limited to 'pango/pangocairo.h')
-rw-r--r--pango/pangocairo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/pango/pangocairo.h b/pango/pangocairo.h
index c14fab4f..51bb3c78 100644
--- a/pango/pangocairo.h
+++ b/pango/pangocairo.h
@@ -87,6 +87,12 @@ void pango_cairo_show_layout_line (cairo_t *cr,
void pango_cairo_show_layout (cairo_t *cr,
PangoLayout *layout);
+void pango_cairo_show_error_underline (cairo_t *cr,
+ double x,
+ double y,
+ double width,
+ double height);
+
/*
* Rendering to a path
*/
@@ -97,6 +103,12 @@ void pango_cairo_layout_line_path (cairo_t *cr,
PangoLayoutLine *line);
void pango_cairo_layout_path (cairo_t *cr,
PangoLayout *layout);
+
+void pango_cairo_error_underline_path (cairo_t *cr,
+ double x,
+ double y,
+ double width,
+ double height);
G_END_DECLS