~ubuntu-branches/ubuntu/jaunty/kaa-imlib2/jaunty

« back to all changes in this revision

Viewing changes to src/image.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremie Corbier
  • Date: 2007-05-29 12:48:02 UTC
  • Revision ID: james.westby@ubuntu.com-20070529124802-7rqvjajce01xpyly
Tags: upstream-0.2.1
ImportĀ upstreamĀ versionĀ 0.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ----------------------------------------------------------------------------
 
3
 * Imlib2 wrapper for Python
 
4
 * ----------------------------------------------------------------------------
 
5
 * $Id: image.h 2604 2007-03-28 09:21:52Z dmeyer $
 
6
 *
 
7
 * ----------------------------------------------------------------------------
 
8
 * kaa.imlib2 - An imlib2 wrapper for Python
 
9
 * Copyright (C) 2004-2006 Jason Tackaberry <tack@urandom.ca>
 
10
 *
 
11
 * First Edition: Jason Tackaberry <tack@urandom.ca>
 
12
 * Maintainer:    Jason Tackaberry <tack@urandom.ca>
 
13
 *
 
14
 * Please see the file AUTHORS for a complete list of authors.
 
15
 *
 
16
 * This library is free software; you can redistribute it and/or modify
 
17
 * it under the terms of the GNU Lesser General Public License version
 
18
 * 2.1 as published by the Free Software Foundation.
 
19
 *
 
20
 * This library is distributed in the hope that it will be useful, but
 
21
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
23
 * Lesser General Public License for more details.
 
24
 *
 
25
 * You should have received a copy of the GNU Lesser General Public
 
26
 * License along with this library; if not, write to the Free Software
 
27
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
28
 * 02110-1301 USA
 
29
 *
 
30
 * ----------------------------------------------------------------------------
 
31
 */
 
32
 
 
33
#define Image_PyObject_Check(v) ((v)->ob_type == &Image_PyObject_Type)
 
34
 
 
35
typedef struct {
 
36
    PyObject_HEAD
 
37
    Imlib_Image *image;
 
38
    void *raw_data;
 
39
    PyObject *buffer;
 
40
} Image_PyObject;
 
41
 
 
42
extern PyTypeObject Image_PyObject_Type;
 
43
void Image_PyObject__dealloc(Image_PyObject *);
 
44
PyObject *Image_PyObject__getattr(Image_PyObject *, char *);
 
45
 
 
46
// Exported
 
47
Imlib_Image *imlib_image_from_pyobject(Image_PyObject *pyimg);
 
48