2006-01-17 12:43:50 +00:00
|
|
|
/* -*- Mode: C; c-basic-offset: 4 -*-
|
2009-01-17 22:28:01 +00:00
|
|
|
* Gimp-Python - allows the writing of Gimp plugins in Python.
|
|
|
|
* Copyright (C) 2003 Manish Singh <yosh@gimp.org>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2005-06-04 00:17:06 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PYGIMPCOLOR_H_
|
|
|
|
#define _PYGIMPCOLOR_H_
|
|
|
|
|
|
|
|
#include <Python.h>
|
|
|
|
|
2012-03-30 15:08:54 +02:00
|
|
|
#include <babl/babl.h>
|
2011-04-28 15:50:39 +02:00
|
|
|
#include <cairo.h>
|
2005-06-04 00:17:06 +00:00
|
|
|
#include <glib-object.h>
|
|
|
|
|
|
|
|
#include <pygobject.h>
|
|
|
|
|
|
|
|
#include <libgimpcolor/gimpcolor.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
extern PyTypeObject PyGimpRGB_Type;
|
|
|
|
#define pygimp_rgb_check(v) (pyg_boxed_check((v), GIMP_TYPE_RGB))
|
2006-07-20 04:53:47 +00:00
|
|
|
PyObject *pygimp_rgb_new(const GimpRGB *rgb);
|
|
|
|
|
|
|
|
extern PyTypeObject PyGimpHSV_Type;
|
|
|
|
#define pygimp_hsv_check(v) (pyg_boxed_check((v), GIMP_TYPE_HSV))
|
|
|
|
PyObject *pygimp_hsv_new(const GimpHSV *hsv);
|
|
|
|
|
|
|
|
extern PyTypeObject PyGimpHSL_Type;
|
|
|
|
#define pygimp_hsl_check(v) (pyg_boxed_check((v), GIMP_TYPE_HSL))
|
|
|
|
PyObject *pygimp_hsl_new(const GimpHSL *hsl);
|
|
|
|
|
|
|
|
extern PyTypeObject PyGimpCMYK_Type;
|
|
|
|
#define pygimp_cmyk_check(v) (pyg_boxed_check((v), GIMP_TYPE_CMYK))
|
|
|
|
PyObject *pygimp_cmyk_new(const GimpCMYK *cmyk);
|
2005-06-04 00:17:06 +00:00
|
|
|
|
2007-12-30 15:25:13 +00:00
|
|
|
int pygimp_rgb_from_pyobject(PyObject *object, GimpRGB *color);
|
|
|
|
|
2005-06-04 00:17:06 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif
|