28 #define PY_ARRAY_UNIQUE_SYMBOL itom_ARRAY_API //see numpy help ::array api :: Miscellaneous :: Importing the api (this line must bebefore include global.h)
29 #define NO_IMPORT_ARRAY
32 #if (defined _DEBUG) && (defined WIN32)
34 #include "python/pythonWrapper.h"
37 #include "python/pythonWrapper.h"
41 #include "../../common/typeDefs.h"
42 #include "../../common/color.h"
43 #include "structmember.h"
64 #define PyRgba_Check(op) PyObject_TypeCheck(op, &ito::PythonRgba::PyRgbaType)
71 static void PyRgba_dealloc(
PyRgba *
self);
72 static PyObject *PyRgba_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
73 static int PyRgba_init(
PyRgba *
self, PyObject *args, PyObject *kwds);
75 static PyRgba* createEmptyPyRgba();
76 static bool checkPyRgba(
int number, PyObject* rgba1 = NULL, PyObject* rgba2 = NULL, PyObject* rgba3 = NULL);
82 static PyObject *PyRgba_name(
PyRgba *
self);
84 static PyObject* PyRgba_repr(
PyRgba *
self);
86 static PyObject *PyRgba_toGray(
PyRgba *
self);
88 static PyObject *PyRgba_toColor(
PyRgba *
self);
90 static PyObject* PyRgba_RichCompare(
PyRgba *
self, PyObject *other,
int cmp_op);
92 static PyGetSetDef PyRgba_getseters[];
94 static PyObject* PyRgba_getValue(
PyRgba *
self,
void *closure);
95 static int PyRgba_setValue(
PyRgba *
self, PyObject *value,
void *closure);
97 static PyObject* PyRgba_Reduce(
PyRgba *
self, PyObject *args);
98 static PyObject* PyRgba_SetState(
PyRgba *
self, PyObject *args);
108 static PyObject* PyRgba_nbAdd(PyObject* o1, PyObject* o2);
109 static PyObject* PyRgba_nbSubtract(PyObject* o1, PyObject* o2);
110 static PyObject* PyRgba_nbMultiply(PyObject* o1, PyObject* o2);
111 static PyObject* PyRgba_nbPositive(PyObject* o1);
112 static PyObject* PyRgba_nbAbsolute(PyObject* o1);
113 static PyObject* PyRgba_nbInvert(PyObject* o1);
114 static PyObject* PyRgba_nbLshift(PyObject* o1, PyObject* o2);
115 static PyObject* PyRgba_nbRshift(PyObject* o1, PyObject* o2);
116 static PyObject* PyRgba_nbAnd(PyObject* o1, PyObject* o2);
117 static PyObject* PyRgba_nbXor(PyObject* o1, PyObject* o2);
118 static PyObject* PyRgba_nbOr(PyObject* o1, PyObject* o2);
120 static PyObject* PyRgba_nbInplaceAdd(PyObject* o1, PyObject* o2);
121 static PyObject* PyRgba_nbInplaceSubtract(PyObject* o1, PyObject* o2);
122 static PyObject* PyRgba_nbInplaceMultiply(PyObject* o1, PyObject* o2);
123 static PyObject* PyRgba_nbInplaceLshift(PyObject* o1, PyObject* o2);
124 static PyObject* PyRgba_nbInplaceRshift(PyObject* o1, PyObject* o2);
125 static PyObject* PyRgba_nbInplaceAnd(PyObject* o1, PyObject* o2);
126 static PyObject* PyRgba_nbInplaceXor(PyObject* o1, PyObject* o2);
127 static PyObject* PyRgba_nbInplaceOr(PyObject* o1, PyObject* o2);
133 static PyMemberDef PyRgba_members[];
134 static PyMethodDef PyRgba_methods[];
135 static PyTypeObject PyRgbaType;
136 static PyModuleDef PyRgbaModule;
138 static PyNumberMethods PyRgba_numberProtocol;
Definition: apiFunctionsGraph.cpp:39
Definition: pythonRgba.h:56
This class implements basic functionality for color handling in itom. This class implements ARGB32 i...
Definition: color.h:46
Definition: pythonRgba.h:48