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