Blender  V3.3
BPy_TrueBP1D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include "BPy_TrueBP1D.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 using namespace Freestyle;
14 
16 
17 //------------------------INSTANCE METHODS ----------------------------------
18 
19 static char TrueBP1D___doc__[] =
20  "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`TrueBP1D`\n"
21  "\n"
22  ".. method:: __call__(inter1, inter2)\n"
23  "\n"
24  " Always returns true.\n"
25  "\n"
26  " :arg inter1: The first Interface1D object.\n"
27  " :type inter1: :class:`freestyle.types.Interface1D`\n"
28  " :arg inter2: The second Interface1D object.\n"
29  " :type inter2: :class:`freestyle.types.Interface1D`\n"
30  " :return: True.\n"
31  " :rtype: bool\n";
32 
33 static int TrueBP1D___init__(BPy_TrueBP1D *self, PyObject *args, PyObject *kwds)
34 {
35  static const char *kwlist[] = {nullptr};
36 
37  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
38  return -1;
39  }
40  self->py_bp1D.bp1D = new Predicates1D::TrueBP1D();
41  return 0;
42 }
43 
44 /*-----------------------BPy_TrueBP1D type definition ------------------------------*/
45 
46 PyTypeObject TrueBP1D_Type = {
47  PyVarObject_HEAD_INIT(nullptr, 0) "TrueBP1D", /* tp_name */
48  sizeof(BPy_TrueBP1D), /* tp_basicsize */
49  0, /* tp_itemsize */
50  nullptr, /* tp_dealloc */
51  0, /* tp_vectorcall_offset */
52  nullptr, /* tp_getattr */
53  nullptr, /* tp_setattr */
54  nullptr, /* tp_reserved */
55  nullptr, /* tp_repr */
56  nullptr, /* tp_as_number */
57  nullptr, /* tp_as_sequence */
58  nullptr, /* tp_as_mapping */
59  nullptr, /* tp_hash */
60  nullptr, /* tp_call */
61  nullptr, /* tp_str */
62  nullptr, /* tp_getattro */
63  nullptr, /* tp_setattro */
64  nullptr, /* tp_as_buffer */
65  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
66  TrueBP1D___doc__, /* tp_doc */
67  nullptr, /* tp_traverse */
68  nullptr, /* tp_clear */
69  nullptr, /* tp_richcompare */
70  0, /* tp_weaklistoffset */
71  nullptr, /* tp_iter */
72  nullptr, /* tp_iternext */
73  nullptr, /* tp_methods */
74  nullptr, /* tp_members */
75  nullptr, /* tp_getset */
76  &BinaryPredicate1D_Type, /* tp_base */
77  nullptr, /* tp_dict */
78  nullptr, /* tp_descr_get */
79  nullptr, /* tp_descr_set */
80  0, /* tp_dictoffset */
81  (initproc)TrueBP1D___init__, /* tp_init */
82  nullptr, /* tp_alloc */
83  nullptr, /* tp_new */
84 };
85 
87 
88 #ifdef __cplusplus
89 }
90 #endif
PyTypeObject BinaryPredicate1D_Type
static char TrueBP1D___doc__[]
PyTypeObject TrueBP1D_Type
static int TrueBP1D___init__(BPy_TrueBP1D *self, PyObject *args, PyObject *kwds)
inherits from class Rep
Definition: AppCanvas.cpp:18