summaryrefslogtreecommitdiff
path: root/src/cairo.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-05-03 08:33:32 +0000
committerCarl Worth <cworth@cworth.org>2005-05-03 08:33:32 +0000
commit05ccd7685420be7c7213e68462e1fcc4c01bad3c (patch)
tree1a78808e9128fc08b6424c537899ba98e3048a3c /src/cairo.h
parent8283381f120c0d5a4d3d770a541a576974cfdf89 (diff)
Originally 2005-04-20 Carl Worth <cworth@cworth.org>
Remove cairo_show_surface. Add new cairo_set_source_surface. Remove _cairo_gstate_show_surface. Replace calls to cairo_show_surface with cairo_set_source_surface; cairo_paint. Fix messages to prefer - over _. Fix documentation. Three new tests to exercise set_source_surface more completely, (two of these are expected failures dues to outstanding bugs).
Diffstat (limited to 'src/cairo.h')
-rw-r--r--src/cairo.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/cairo.h b/src/cairo.h
index 229a1dcdc..654e6d220 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -300,11 +300,6 @@ cairo_set_operator (cairo_t *cr, cairo_operator_t op);
void
cairo_set_source (cairo_t *cr, cairo_pattern_t *source);
-/* XXX: NYI:
-void
-cairo_set_source_surface (cairo_t *cr, cairo_surface_t *surface);
-*/
-
void
cairo_set_source_rgb (cairo_t *cr, double red, double green, double blue);
@@ -313,6 +308,12 @@ cairo_set_source_rgba (cairo_t *cr,
double red, double green, double blue,
double alpha);
+void
+cairo_set_source_surface (cairo_t *cr,
+ cairo_surface_t *surface,
+ double x,
+ double y);
+
/* XXX: Currently, the tolerance value is specified by the user in
terms of device-space units. If I'm not mistaken, this is the only
value in this API that is not expressed in user-space units. I
@@ -788,15 +789,6 @@ cairo_scaled_font_glyph_extents (cairo_scaled_font_t *scaled_font,
int num_glyphs,
cairo_text_extents_t *extents);
-/* Image functions */
-
-/* XXX: Eliminate width/height here */
-void
-cairo_show_surface (cairo_t *cr,
- cairo_surface_t *surface,
- int width,
- int height);
-
/* Query functions */
/* XXX: It would be nice if I could find a simpler way to make the