summaryrefslogtreecommitdiff
path: root/fimage.h
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-10-05 00:39:37 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-10-05 00:39:37 -0400
commit1a505f4fdbc040da940e9c55c2cdefc5e1178a8d (patch)
tree8fba8ebf11f300e3fe4d444ca6ef40f351a718f0 /fimage.h
parent4f5a86a90eba179a74d5ba92887814e5d4dcb504 (diff)
fimage
Diffstat (limited to 'fimage.h')
-rw-r--r--fimage.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/fimage.h b/fimage.h
index cc357d2..9efc4ba 100644
--- a/fimage.h
+++ b/fimage.h
@@ -26,6 +26,8 @@ fragment_t *fragment_new_region (pixman_region32_t *region);
* (dest OP source).
*
* The intersection is subtracted from dest. The source is not changed
+ *
+ * Should probably be called "fragment_new_composite (op, dest, source)" FIXME
*/
fragment_t * fragment_composite (fragment_t *dest,
pixman_op_t op,
@@ -39,3 +41,23 @@ pixman_bool_t fragment_apply (fragment_t *fragment,
pixman_image_t *image);
void fragment_free (fragment_t *fragment);
+
+
+
+/* Images */
+typedef struct fimage_t fimage_t;
+
+fimage_t *fimage_new_blank (int width, int height);
+fimage_t *fimage_new_white (int width, int height);
+/* Takes ownership of @glyphs, but not glyph_cache */
+fimage_t *fimage_new_glyphs (int width, int height,
+ pixman_glyph_cache_t *glyph_cache,
+ int n_glyphs,
+ pixman_glyphs_t *glyphs);
+/* Takes ownership of the trapezoids */
+fimage_t *fimage_new_traps (int width, int height, int n_traps, pixman_trapezoids_t *traps);
+/* Takes ownership of the image */
+fimage_t *fimage_new_image (pixman_image_t *image);
+/* Makes a copy of the region; does not take ownership */
+fimage_t *fimage_new_region (int width, int height,
+ pixman_region32_t *region);