hyperion.ng
EffectModule.h
1 #pragma once
2 
3 #undef slots
4 #include <Python.h>
5 #define slots
6 
7 #include <QJsonValue>
8 
9 class Effect;
10 
12 {
13 public:
14  // Python 3 module def
15  static struct PyModuleDef moduleDef;
16 
17  // Init module
18  static PyObject* PyInit_hyperion();
19 
20  // Register module once
21  static void registerHyperionExtensionModule();
22 
23  // json 2 python
24  static PyObject * json2python(const QJsonValue & jsonData);
25 
26  // Wrapper methods for Python interpreter extra buildin methods
27  static PyMethodDef effectMethods[];
28  static PyObject* wrapSetColor (PyObject *self, PyObject *args);
29  static PyObject* wrapSetImage (PyObject *self, PyObject *args);
30  static PyObject* wrapGetImage (PyObject *self, PyObject *args);
31  static PyObject* wrapAbort (PyObject *self, PyObject *args);
32  static PyObject* wrapImageShow (PyObject *self, PyObject *args);
33  static PyObject* wrapImageLinearGradient (PyObject *self, PyObject *args);
34  static PyObject* wrapImageConicalGradient (PyObject *self, PyObject *args);
35  static PyObject* wrapImageRadialGradient (PyObject *self, PyObject *args);
36  static PyObject* wrapImageSolidFill (PyObject *self, PyObject *args);
37  static PyObject* wrapImageDrawLine (PyObject *self, PyObject *args);
38  static PyObject* wrapImageDrawPoint (PyObject *self, PyObject *args);
39  static PyObject* wrapImageDrawRect (PyObject *self, PyObject *args);
40  static PyObject* wrapImageDrawPolygon (PyObject *self, PyObject *args);
41  static PyObject* wrapImageDrawPie (PyObject *self, PyObject *args);
42  static PyObject* wrapImageSetPixel (PyObject *self, PyObject *args);
43  static PyObject* wrapImageGetPixel (PyObject *self, PyObject *args);
44  static PyObject* wrapImageSave (PyObject *self, PyObject *args);
45  static PyObject* wrapImageMinSize (PyObject *self, PyObject *args);
46  static PyObject* wrapImageWidth (PyObject *self, PyObject *args);
47  static PyObject* wrapImageHeight (PyObject *self, PyObject *args);
48  static PyObject* wrapImageCRotate (PyObject *self, PyObject *args);
49  static PyObject* wrapImageCOffset (PyObject *self, PyObject *args);
50  static PyObject* wrapImageCShear (PyObject *self, PyObject *args);
51  static PyObject* wrapImageResetT (PyObject *self, PyObject *args);
52  static Effect * getEffect();
53 };
Definition: EffectModule.h:11
Definition: Effect.h:24