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