25#ifndef PYBITMAP_GENERATOR_H
26#define PYBITMAP_GENERATOR_H
37#define PyBitmapGenerator_Type_NUM 0
39#define PyBitmapGenerator_GetNative_NUM 1
40#define PyBitmapGenerator_GetNative_RETURN BitmapGenerator_t*
41#define PyBitmapGenerator_GetNative_PROTO (PyBitmapGenerator*)
43#define PyBitmapGenerator_New_NUM 2
44#define PyBitmapGenerator_New_RETURN PyBitmapGenerator*
45#define PyBitmapGenerator_New_PROTO (BitmapGenerator_t*)
47#define PyBitmapGenerator_API_pointers 3
49#define PyBitmapGenerator_CAPSULE_NAME "_bitmapgenerator._C_API"
51#ifdef PYBITMAP_GENERATOR_MODULE
53extern PyTypeObject PyBitmapGenerator_Type;
56#define PyBitmapGenerator_Check(op) ((op)->ob_type == &PyBitmapGenerator_Type)
66static void **PyBitmapGenerator_API;
72#define PyBitmapGenerator_GetNative \
73 (*(PyBitmapGenerator_GetNative_RETURN (*)PyBitmapGenerator_GetNative_PROTO) PyBitmapGenerator_API[PyBitmapGenerator_GetNative_NUM])
80#define PyBitmapGenerator_New \
81 (*(PyBitmapGenerator_New_RETURN (*)PyBitmapGenerator_New_PROTO) PyBitmapGenerator_API[PyBitmapGenerator_New_NUM])
86#define PyBitmapGenerator_Check(op) \
87 (Py_TYPE(op) == &PyBitmapGenerator_Type)
89#define PyBitmapGenerator_Type (*(PyTypeObject*)PyBitmapGenerator_API[PyBitmapGenerator_Type_NUM])
94#define import_pybitmapgenerator() \
95 PyBitmapGenerator_API = (void **)PyCapsule_Import(PyBitmapGenerator_CAPSULE_NAME, 1);
Provides functionallity for creating a surrounding bitmap on a composite.
#define PyBitmapGenerator_New_RETURN
Return type for New.
Definition pybitmapgenerator.h:44
#define PyBitmapGenerator_GetNative
Returns a pointer to the internal polar scan, remember to release the reference when done with the ob...
Definition pybitmapgenerator.h:72
#define PyBitmapGenerator_GetNative_PROTO
Argument prototype for GetNative.
Definition pybitmapgenerator.h:41
#define PyBitmapGenerator_New
Creates a new polar scan instance.
Definition pybitmapgenerator.h:80
#define PyBitmapGenerator_GetNative_RETURN
Return type for GetNative.
Definition pybitmapgenerator.h:40
#define PyBitmapGenerator_New_PROTO
Argument prototype for New.
Definition pybitmapgenerator.h:45
The definition.
Definition pybitmapgenerator.h:32
PyObject_HEAD BitmapGenerator_t * generator
the c-api bitmap generator
Definition pybitmapgenerator.h:34
Represents the functionality for creating bitmaps.
Definition bitmap_generator.c:34