1
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */
4
* Copyright (C) Nicolas Bruguier 2007-2010 <gandalfn@club-internet.fr>
6
* cairo-compmgr is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
11
* cairo-compmgr is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with cairo-compmgr. If not, write to:
18
* The Free Software Foundation, Inc.,
19
* 51 Franklin Street, Fifth Floor
20
* Boston, MA 02110-1301, USA.
26
#include "ccm-display.h"
27
#include "ccm-pixmap.h"
31
typedef struct _CCMImage CCMImage;
33
CCMImage* ccm_image_new (CCMDisplay* display, Visual* visual,
34
cairo_format_t format, int width, int height,
36
void ccm_image_destroy (CCMImage* image);
37
gboolean ccm_image_get_image (CCMImage* image, CCMPixmap* pixmap,
39
gboolean ccm_image_get_sub_image (CCMImage* image, CCMPixmap* pixmap, int x,
40
int y, int width, int height);
41
gboolean ccm_image_put_image (CCMImage* image, CCMPixmap* pixmap,
42
int x_src, int y_src, int x, int y,
43
int width, int height);
44
guchar* ccm_image_get_data (CCMImage* image);
45
gint ccm_image_get_width (CCMImage* image);
46
gint ccm_image_get_height (CCMImage* image);
47
gint ccm_image_get_stride (CCMImage* image);
51
#endif /* _CCM_IMAGE_H_ */