summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-08-29 00:03:07 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-08-29 00:03:07 +0300
commitb0f65054b810d432238ff4986bee3f63e1fc46df (patch)
tree01ad6fa8bf91f9884273f62481a67b10986e9fc9 /src
parent92fe2d370d120f4d9bc95e92209d1c1cec7e900b (diff)
subsurface: Add a note to the docs about usage restrictions.
Make our assumptions about constructed subsurfaces explicit while we work out the correct semantics for the edge cases.
Diffstat (limited to 'src')
-rw-r--r--src/cairo-surface-subsurface.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-surface-subsurface.c b/src/cairo-surface-subsurface.c
index 96459a78..9b21fa65 100644
--- a/src/cairo-surface-subsurface.c
+++ b/src/cairo-surface-subsurface.c
@@ -486,6 +486,11 @@ static const cairo_surface_backend_t _cairo_surface_subsurface_backend = {
* directly onto the parent surface, i.e. with no further backend allocations,
* double buffering or copies.
*
+ * <note><para>The semantics of subsurfaces have not been finalized yet
+ * unless the rectangle is in full device units, is contained within
+ * the extents of the target surface, and the target or subsurface's
+ * device transforms are not changed.</para></note>
+ *
* Return value: a pointer to the newly allocated surface. The caller
* owns the surface and should call cairo_surface_destroy() when done
* with it.
@@ -493,6 +498,8 @@ static const cairo_surface_backend_t _cairo_surface_subsurface_backend = {
* This function always returns a valid pointer, but it will return a
* pointer to a "nil" surface if @other is already in an error state
* or any other error occurs.
+ *
+ * Since: 1.10
**/
cairo_surface_t *
cairo_surface_create_for_rectangle (cairo_surface_t *target,