e215344e431a1833b2759851ab07e1729c3ba1ba
[swftools.git] / lib / python / primitives.h
1 /* primitives.h
2
3    Python wrapper for librfxswf- primitive objects (structs, prototypes)
4
5    Part of the swftools package.
6
7    Copyright (c) 2003 Matthias Kramm <kramm@quiss.org>
8  
9    This program is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 2 of the License, or
12    (at your option) any later version.
13
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18
19    You should have received a copy of the GNU General Public License
20    along with this program; if not, write to the Free Software
21    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
22
23 #ifndef __primitives_h__
24 #define __primitives_h__
25
26 #undef HAVE_STAT
27 #include <Python.h>
28
29 /* exported to allow casting to this type */
30 extern PyTypeObject ColorClass;
31 extern PyTypeObject BBoxClass;
32 extern PyTypeObject CXFormClass;
33 extern PyTypeObject GradientClass;
34 extern PyTypeObject MatrixClass;
35
36 PyObject* f_Color(PyObject* self, PyObject* args, PyObject* kwargs);
37 PyObject* f_ColorTransform(PyObject* self, PyObject* args, PyObject* kwargs);
38 PyObject* f_Gradient(PyObject* self, PyObject* args, PyObject* kwargs);
39 PyObject* f_BBox(PyObject* self, PyObject* args, PyObject* kwargs);
40 PyObject* f_Matrix(PyObject* self, PyObject* args, PyObject* kwargs);
41
42 RGBA color_getRGBA(PyObject*self);
43 CXFORM colortransform_getCXForm(PyObject*self);
44 GRADIENT gradient_getGradient(PyObject*self);
45 SRECT bbox_getBBox(PyObject*self);
46 MATRIX matrix_getMatrix(PyObject*self);
47
48 extern PyMethodDef* primitive_getMethods();
49
50 #endif