~shnatsel/+junk/cairo-compmgr

« back to all changes in this revision

Viewing changes to src/ccm-image.h

  • Committer: Sergey "Shnatsel" Davidoff
  • Date: 2012-03-04 22:53:22 UTC
  • Revision ID: shnatsel@gmail.com-20120304225322-q2hz82j51yxv1qqw
fixed up build dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */
 
2
/*
 
3
 * cairo-compmgr
 
4
 * Copyright (C) Nicolas Bruguier 2007-2010 <gandalfn@club-internet.fr>
 
5
 * 
 
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.
 
10
 * 
 
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.
 
15
 * 
 
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.
 
21
 */
 
22
 
 
23
#ifndef _CCM_IMAGE_H_
 
24
#define _CCM_IMAGE_H_
 
25
 
 
26
#include "ccm-display.h"
 
27
#include "ccm-pixmap.h"
 
28
 
 
29
G_BEGIN_DECLS 
 
30
 
 
31
typedef struct _CCMImage CCMImage;
 
32
 
 
33
CCMImage* ccm_image_new           (CCMDisplay* display, Visual* visual,
 
34
                                   cairo_format_t format, int width, int height,
 
35
                                   int depth);
 
36
void      ccm_image_destroy       (CCMImage* image);
 
37
gboolean  ccm_image_get_image     (CCMImage* image, CCMPixmap* pixmap, 
 
38
                                   int x, int y);
 
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);
 
48
 
 
49
G_END_DECLS
 
50
 
 
51
#endif                          /* _CCM_IMAGE_H_ */