Blender  V3.3
BPy_MediumType.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include "BPy_MediumType.h"
8 
9 #include "BPy_Convert.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 using namespace Freestyle;
16 
18 
19 /*-----------------------BPy_MediumType type definition ------------------------------*/
20 
21 PyDoc_STRVAR(MediumType_doc,
22  "Class hierarchy: int > :class:`MediumType`\n"
23  "\n"
24  "The different blending modes available to simulate the interaction\n"
25  "media-medium:\n"
26  "\n"
27  "* Stroke.DRY_MEDIUM: To simulate a dry medium such as Pencil or Charcoal.\n"
28  "* Stroke.HUMID_MEDIUM: To simulate ink painting (color subtraction blending).\n"
29  "* Stroke.OPAQUE_MEDIUM: To simulate an opaque medium (oil, spray...).");
30 
31 PyTypeObject MediumType_Type = {
32  PyVarObject_HEAD_INIT(nullptr, 0) "MediumType", /* tp_name */
33  sizeof(PyLongObject), /* tp_basicsize */
34  0, /* tp_itemsize */
35  nullptr, /* tp_dealloc */
36  0, /* tp_vectorcall_offset */
37  nullptr, /* tp_getattr */
38  nullptr, /* tp_setattr */
39  nullptr, /* tp_reserved */
40  nullptr, /* tp_repr */
41  nullptr, /* tp_as_number */
42  nullptr, /* tp_as_sequence */
43  nullptr, /* tp_as_mapping */
44  nullptr, /* tp_hash */
45  nullptr, /* tp_call */
46  nullptr, /* tp_str */
47  nullptr, /* tp_getattro */
48  nullptr, /* tp_setattro */
49  nullptr, /* tp_as_buffer */
50  Py_TPFLAGS_DEFAULT, /* tp_flags */
51  MediumType_doc, /* tp_doc */
52  nullptr, /* tp_traverse */
53  nullptr, /* tp_clear */
54  nullptr, /* tp_richcompare */
55  0, /* tp_weaklistoffset */
56  nullptr, /* tp_iter */
57  nullptr, /* tp_iternext */
58  nullptr, /* tp_methods */
59  nullptr, /* tp_members */
60  nullptr, /* tp_getset */
61  &PyLong_Type, /* tp_base */
62  nullptr, /* tp_dict */
63  nullptr, /* tp_descr_get */
64  nullptr, /* tp_descr_set */
65  0, /* tp_dictoffset */
66  nullptr, /* tp_init */
67  nullptr, /* tp_alloc */
68  nullptr, /* tp_new */
69 };
70 
71 /*-----------------------BPy_IntegrationType instance definitions -------------------------*/
72 
74  PyVarObject_HEAD_INIT(&MediumType_Type, 1){Stroke::DRY_MEDIUM},
75 };
77  PyVarObject_HEAD_INIT(&MediumType_Type, 1){Stroke::HUMID_MEDIUM},
78 };
80  PyVarObject_HEAD_INIT(&MediumType_Type, 1){Stroke::OPAQUE_MEDIUM},
81 };
82 
83 //-------------------MODULE INITIALIZATION--------------------------------
84 
85 int MediumType_Init(PyObject *module)
86 {
87  if (module == nullptr) {
88  return -1;
89  }
90 
91  if (PyType_Ready(&MediumType_Type) < 0) {
92  return -1;
93  }
94  Py_INCREF(&MediumType_Type);
95  PyModule_AddObject(module, "MediumType", (PyObject *)&MediumType_Type);
96 
97  return 0;
98 }
99 
101 
102 #ifdef __cplusplus
103 }
104 #endif
PyLongObject _BPy_MediumType_DRY_MEDIUM
int MediumType_Init(PyObject *module)
PyLongObject _BPy_MediumType_OPAQUE_MEDIUM
PyTypeObject MediumType_Type
PyLongObject _BPy_MediumType_HUMID_MEDIUM
PyDoc_STRVAR(MediumType_doc, "Class hierarchy: int > :class:`MediumType`\n" "\n" "The different blending modes available to simulate the interaction\n" "media-medium:\n" "\n" "* Stroke.DRY_MEDIUM: To simulate a dry medium such as Pencil or Charcoal.\n" "* Stroke.HUMID_MEDIUM: To simulate ink painting (color subtraction blending).\n" "* Stroke.OPAQUE_MEDIUM: To simulate an opaque medium (oil, spray...).")
inherits from class Rep
Definition: AppCanvas.cpp:18
static struct PyModuleDef module
Definition: python.cpp:972