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