Blender  V2.93
BPy_FalseUP0D.cpp
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 #include "BPy_FalseUP0D.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 using namespace Freestyle;
28 
30 
31 //------------------------INSTANCE METHODS ----------------------------------
32 
33 static char FalseUP0D___doc__[] =
34  "Class hierarchy: :class:`freestyle.types.UnaryPredicate0D` > :class:`FalseUP0D`\n"
35  "\n"
36  ".. method:: __call__(it)\n"
37  "\n"
38  " Always returns false.\n"
39  "\n"
40  " :arg it: An Interface0DIterator object.\n"
41  " :type it: :class:`freestyle.types.Interface0DIterator`\n"
42  " :return: False.\n"
43  " :rtype: bool\n";
44 
45 static int FalseUP0D___init__(BPy_FalseUP0D *self, PyObject *args, PyObject *kwds)
46 {
47  static const char *kwlist[] = {nullptr};
48 
49  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
50  return -1;
51  }
52  self->py_up0D.up0D = new Predicates0D::FalseUP0D();
53  return 0;
54 }
55 
56 /*-----------------------BPy_FalseUP0D type definition ------------------------------*/
57 
58 PyTypeObject FalseUP0D_Type = {
59  PyVarObject_HEAD_INIT(nullptr, 0) "FalseUP0D", /* tp_name */
60  sizeof(BPy_FalseUP0D), /* tp_basicsize */
61  0, /* tp_itemsize */
62  nullptr, /* tp_dealloc */
63  0, /* tp_vectorcall_offset */
64  nullptr, /* tp_getattr */
65  nullptr, /* tp_setattr */
66  nullptr, /* tp_reserved */
67  nullptr, /* tp_repr */
68  nullptr, /* tp_as_number */
69  nullptr, /* tp_as_sequence */
70  nullptr, /* tp_as_mapping */
71  nullptr, /* tp_hash */
72  nullptr, /* tp_call */
73  nullptr, /* tp_str */
74  nullptr, /* tp_getattro */
75  nullptr, /* tp_setattro */
76  nullptr, /* tp_as_buffer */
77  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
78  FalseUP0D___doc__, /* tp_doc */
79  nullptr, /* tp_traverse */
80  nullptr, /* tp_clear */
81  nullptr, /* tp_richcompare */
82  0, /* tp_weaklistoffset */
83  nullptr, /* tp_iter */
84  nullptr, /* tp_iternext */
85  nullptr, /* tp_methods */
86  nullptr, /* tp_members */
87  nullptr, /* tp_getset */
88  &UnaryPredicate0D_Type, /* tp_base */
89  nullptr, /* tp_dict */
90  nullptr, /* tp_descr_get */
91  nullptr, /* tp_descr_set */
92  0, /* tp_dictoffset */
93  (initproc)FalseUP0D___init__, /* tp_init */
94  nullptr, /* tp_alloc */
95  nullptr, /* tp_new */
96 };
97 
99 
100 #ifdef __cplusplus
101 }
102 #endif
static int FalseUP0D___init__(BPy_FalseUP0D *self, PyObject *args, PyObject *kwds)
static char FalseUP0D___doc__[]
PyTypeObject FalseUP0D_Type
PyTypeObject UnaryPredicate0D_Type
inherits from class Rep
Definition: AppCanvas.cpp:32