23 #ifndef PYTHONREGION_H
24 #define PYTHONREGION_H
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
33 #if (defined _DEBUG) && (defined WIN32)
35 #include "python/pythonWrapper.h"
38 #include "python/pythonWrapper.h"
57 #define PyRegion_Check(op) PyObject_TypeCheck(op, &ito::PythonRegion::PyRegionType)
62 static void PyRegion_dealloc(
PyRegion *
self);
63 static PyObject* PyRegion_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
64 static int PyRegion_init(
PyRegion *
self, PyObject *args, PyObject *kwds);
66 static PyObject* createPyRegion(
const QRegion ®ion);
71 static PyObject* PyRegion_repr(
PyRegion *
self);
73 static PyObject* PyRegion_contains(
PyRegion *
self, PyObject *args, PyObject *kwds);
74 static PyObject* PyRegion_intersected(
PyRegion *
self, PyObject *args, PyObject *kwds);
75 static PyObject* PyRegion_intersects(
PyRegion *
self, PyObject *args, PyObject *kwds);
76 static PyObject* PyRegion_subtracted(
PyRegion *
self, PyObject *args, PyObject *kwds);
77 static PyObject* PyRegion_translate(
PyRegion *
self, PyObject *args, PyObject *kwds);
78 static PyObject* PyRegion_translated(
PyRegion *
self, PyObject *args, PyObject *kwds);
79 static PyObject* PyRegion_united(
PyRegion *
self, PyObject *args, PyObject *kwds);
80 static PyObject* PyRegion_xored(
PyRegion *
self, PyObject *args, PyObject *kwds);
82 static PyObject* PyRegion_createMask(
PyRegion *
self, PyObject *args, PyObject *kwds);
87 static PyObject* PyRegion_Reduce(
PyRegion *
self, PyObject *args);
88 static PyObject* PyRegion_SetState(
PyRegion *
self, PyObject *args);
107 static PyObject* PyRegion_getEmpty(
PyRegion *
self,
void *closure);
108 static PyObject* PyRegion_getRectCount(
PyRegion *
self,
void *closure);
109 static PyObject* PyRegion_getRects(
PyRegion *
self,
void *closure);
110 static PyObject* PyRegion_getBoundingRect(
PyRegion *
self,
void *closure);
116 static PyMethodDef PyRegion_methods[];
117 static PyGetSetDef PyRegion_getseters[];
118 static PyTypeObject PyRegionType;
119 static PyModuleDef PyRegionModule;
120 static PyNumberMethods PyRegion_numberProtocol;
122 static void PyRegion_addTpDict(PyObject *tp_dict);
Definition: apiFunctionsGraph.cpp:39
Definition: pythonRegion.h:47
Definition: pythonRegion.h:50