Blender V4.3
BPy_TrueUP1D.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_TrueUP1D.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15using namespace Freestyle;
16
18
19//------------------------INSTANCE METHODS ----------------------------------
20
22 /* Wrap. */
23 TrueUP1D___doc__,
24 "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`TrueUP1D`\n"
25 "\n"
26 ".. method:: __call__(inter)\n"
27 "\n"
28 " Always returns true.\n"
29 "\n"
30 " :arg inter: An Interface1D object.\n"
31 " :type inter: :class:`freestyle.types.Interface1D`\n"
32 " :return: True.\n"
33 " :rtype: bool\n");
34
35static int TrueUP1D___init__(BPy_TrueUP1D *self, PyObject *args, PyObject *kwds)
36{
37 static const char *kwlist[] = {nullptr};
38
39 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
40 return -1;
41 }
42 self->py_up1D.up1D = new Predicates1D::TrueUP1D();
43 return 0;
44}
45
46/*-----------------------BPy_TrueUP1D type definition ------------------------------*/
47
48PyTypeObject TrueUP1D_Type = {
49 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
50 /*tp_name*/ "TrueUP1D",
51 /*tp_basicsize*/ sizeof(BPy_TrueUP1D),
52 /*tp_itemsize*/ 0,
53 /*tp_dealloc*/ nullptr,
54 /*tp_vectorcall_offset*/ 0,
55 /*tp_getattr*/ nullptr,
56 /*tp_setattr*/ nullptr,
57 /*tp_as_async*/ nullptr,
58 /*tp_repr*/ nullptr,
59 /*tp_as_number*/ nullptr,
60 /*tp_as_sequence*/ nullptr,
61 /*tp_as_mapping*/ nullptr,
62 /*tp_hash*/ nullptr,
63 /*tp_call*/ nullptr,
64 /*tp_str*/ nullptr,
65 /*tp_getattro*/ nullptr,
66 /*tp_setattro*/ nullptr,
67 /*tp_as_buffer*/ nullptr,
68 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
69 /*tp_doc*/ TrueUP1D___doc__,
70 /*tp_traverse*/ nullptr,
71 /*tp_clear*/ nullptr,
72 /*tp_richcompare*/ nullptr,
73 /*tp_weaklistoffset*/ 0,
74 /*tp_iter*/ nullptr,
75 /*tp_iternext*/ nullptr,
76 /*tp_methods*/ nullptr,
77 /*tp_members*/ nullptr,
78 /*tp_getset*/ nullptr,
79 /*tp_base*/ &UnaryPredicate1D_Type,
80 /*tp_dict*/ nullptr,
81 /*tp_descr_get*/ nullptr,
82 /*tp_descr_set*/ nullptr,
83 /*tp_dictoffset*/ 0,
84 /*tp_init*/ (initproc)TrueUP1D___init__,
85 /*tp_alloc*/ nullptr,
86 /*tp_new*/ nullptr,
87};
88
90
91#ifdef __cplusplus
92}
93#endif
static int TrueUP1D___init__(BPy_TrueUP1D *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(TrueUP1D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`TrueUP1D`\n" "\n" ".. method:: __call__(inter)\n" "\n" " Always returns true.\n" "\n" " :arg inter: An Interface1D object.\n" " :type inter: :class:`freestyle.types.Interface1D`\n" " :return: True.\n" " :rtype: bool\n")
PyTypeObject TrueUP1D_Type
PyTypeObject UnaryPredicate1D_Type
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20