3 Python wrapper for librfxswf- primitive objects (structs, prototypes)
5 Part of the swftools package.
7 Copyright (c) 2003 Matthias Kramm <kramm@quiss.org>
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.
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.
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 */
23 #ifndef __primitives_h__
24 #define __primitives_h__
29 #include "../rfxswf.h"
31 /* exported to allow casting to this type */
32 extern PyTypeObject ColorClass;
33 extern PyTypeObject BBoxClass;
34 extern PyTypeObject CXFormClass;
35 extern PyTypeObject GradientClass;
36 extern PyTypeObject MatrixClass;
38 PyObject* f_Color(PyObject* self, PyObject* args, PyObject* kwargs);
39 PyObject* f_ColorTransform(PyObject* self, PyObject* args, PyObject* kwargs);
40 PyObject* f_Gradient(PyObject* self, PyObject* args, PyObject* kwargs);
41 PyObject* f_BBox(PyObject* self, PyObject* args, PyObject* kwargs);
42 PyObject* f_Matrix(PyObject* self, PyObject* args, PyObject* kwargs);
44 RGBA color_getRGBA(PyObject*self);
45 CXFORM colortransform_getCXForm(PyObject*self);
46 GRADIENT gradient_getGradient(PyObject*self);
47 SRECT bbox_getSRECT(PyObject*self);
48 MATRIX matrix_getMatrix(PyObject*self);
50 extern PyMethodDef* primitive_getMethods();