diff options
Diffstat (limited to 'fimage.h')
-rw-r--r-- | fimage.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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); |