Blender  V2.93
BPy_MediumType.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
21 #pragma once
22 
23 extern "C" {
24 #include <Python.h>
25 }
26 
27 #include "../stroke/Stroke.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
34 
35 extern PyTypeObject MediumType_Type;
36 
37 #define BPy_MediumType_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&MediumType_Type))
38 
39 /*---------------------------Python BPy_MediumType structure definition----------*/
40 typedef struct {
41  PyLongObject i;
43 
44 /*---------------------------Python BPy_MediumType visible prototypes-----------*/
45 
46 int MediumType_Init(PyObject *module);
47 
48 // internal constants
49 extern PyLongObject _BPy_MediumType_DRY_MEDIUM;
50 extern PyLongObject _BPy_MediumType_HUMID_MEDIUM;
51 extern PyLongObject _BPy_MediumType_OPAQUE_MEDIUM;
52 // public constants
53 #define BPy_MediumType_DRY_MEDIUM ((PyObject *)&_BPy_MediumType_DRY_MEDIUM)
54 #define BPy_MediumType_HUMID_MEDIUM ((PyObject *)&_BPy_MediumType_HUMID_MEDIUM)
55 #define BPy_MediumType_OPAQUE_MEDIUM ((PyObject *)&_BPy_MediumType_OPAQUE_MEDIUM)
56 
58 
59 #ifdef __cplusplus
60 }
61 #endif
PyLongObject _BPy_MediumType_DRY_MEDIUM
int MediumType_Init(PyObject *module)
PyLongObject _BPy_MediumType_OPAQUE_MEDIUM
PyTypeObject MediumType_Type
PyLongObject _BPy_MediumType_HUMID_MEDIUM
static struct PyModuleDef module
PyLongObject i