~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

1.1.4 by Daniel Holbach
Import upstream version 2.3.16
1
/* -*- Mode: C; c-basic-offset: 4 -*-
2
    Gimp-Python - allows the writing of Gimp plugins in Python.
3
    Copyright (C) 2003  Manish Singh <yosh@gimp.org>
4
5
    This program is free software; you can redistribute it and/or modify
6
    it under the terms of the GNU General Public License as published by
7
    the Free Software Foundation; either version 2 of the License, or
8
    (at your option) any later version.
9
10
    This program is distributed in the hope that it will be useful,
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
    GNU General Public License for more details.
14
15
    You should have received a copy of the GNU General Public License
16
    along with this program; if not, write to the Free Software
17
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
 */
19
20
#ifndef _PYGIMPCOLOR_H_
21
#define _PYGIMPCOLOR_H_
22
23
#include <Python.h>
24
25
#include <glib-object.h>
26
27
#include <pygobject.h>
28
29
#include <libgimpcolor/gimpcolor.h>
30
31
G_BEGIN_DECLS
32
33
extern PyTypeObject PyGimpRGB_Type;
34
#define pygimp_rgb_check(v) (pyg_boxed_check((v), GIMP_TYPE_RGB))
35
PyObject *pygimp_rgb_new(const GimpRGB *rgb);
36
37
extern PyTypeObject PyGimpHSV_Type;
38
#define pygimp_hsv_check(v) (pyg_boxed_check((v), GIMP_TYPE_HSV))
39
PyObject *pygimp_hsv_new(const GimpHSV *hsv);
40
41
extern PyTypeObject PyGimpHSL_Type;
42
#define pygimp_hsl_check(v) (pyg_boxed_check((v), GIMP_TYPE_HSL))
43
PyObject *pygimp_hsl_new(const GimpHSL *hsl);
44
45
extern PyTypeObject PyGimpCMYK_Type;
46
#define pygimp_cmyk_check(v) (pyg_boxed_check((v), GIMP_TYPE_CMYK))
47
PyObject *pygimp_cmyk_new(const GimpCMYK *cmyk);
48
1.1.15 by Sebastien Bacher
Import upstream version 2.6.0
49
int pygimp_rgb_from_pyobject(PyObject *object, GimpRGB *color);
50
1.1.4 by Daniel Holbach
Import upstream version 2.3.16
51
G_END_DECLS
52
53
#endif