Blender V4.3
BPy_EqualToTimeStampUP1D.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
10
11#include "BLI_sys_types.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17using namespace Freestyle;
18
20
21//------------------------INSTANCE METHODS ----------------------------------
22
24 /* Wrap. */
25 EqualToTimeStampUP1D___doc__,
26 "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`EqualToTimeStampUP1D`\n"
27 "\n"
28 ".. method:: __init__(ts)\n"
29 "\n"
30 " Builds a EqualToTimeStampUP1D object.\n"
31 "\n"
32 " :arg ts: A time stamp value.\n"
33 " :type ts: int\n"
34 "\n"
35 ".. method:: __call__(inter)\n"
36 "\n"
37 " Returns true if the Interface1D's time stamp is equal to a certain\n"
38 " user-defined value.\n"
39 "\n"
40 " :arg inter: An Interface1D object.\n"
41 " :type inter: :class:`freestyle.types.Interface1D`\n"
42 " :return: True if the time stamp is equal to a user-defined value.\n"
43 " :rtype: bool\n");
44
46 PyObject *args,
47 PyObject *kwds)
48{
49 static const char *kwlist[] = {"ts", nullptr};
50 uint u;
51
52 if (!PyArg_ParseTupleAndKeywords(args, kwds, "I", (char **)kwlist, &u)) {
53 return -1;
54 }
55 self->py_up1D.up1D = new Predicates1D::EqualToTimeStampUP1D(u);
56 return 0;
57}
58
59/*-----------------------BPy_EqualToTimeStampUP1D type definition ------------------------------*/
60
62 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
63 /*tp_name*/ "EqualToTimeStampUP1D",
64 /*tp_basicsize*/ sizeof(BPy_EqualToTimeStampUP1D),
65 /*tp_itemsize*/ 0,
66 /*tp_dealloc*/ nullptr,
67 /*tp_vectorcall_offset*/ 0,
68 /*tp_getattr*/ nullptr,
69 /*tp_setattr*/ nullptr,
70 /*tp_as_async*/ nullptr,
71 /*tp_repr*/ nullptr,
72 /*tp_as_number*/ nullptr,
73 /*tp_as_sequence*/ nullptr,
74 /*tp_as_mapping*/ nullptr,
75 /*tp_hash*/ nullptr,
76 /*tp_call*/ nullptr,
77 /*tp_str*/ nullptr,
78 /*tp_getattro*/ nullptr,
79 /*tp_setattro*/ nullptr,
80 /*tp_as_buffer*/ nullptr,
81 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
82 /*tp_doc*/ EqualToTimeStampUP1D___doc__,
83 /*tp_traverse*/ nullptr,
84 /*tp_clear*/ nullptr,
85 /*tp_richcompare*/ nullptr,
86 /*tp_weaklistoffset*/ 0,
87 /*tp_iter*/ nullptr,
88 /*tp_iternext*/ nullptr,
89 /*tp_methods*/ nullptr,
90 /*tp_members*/ nullptr,
91 /*tp_getset*/ nullptr,
92 /*tp_base*/ &UnaryPredicate1D_Type,
93 /*tp_dict*/ nullptr,
94 /*tp_descr_get*/ nullptr,
95 /*tp_descr_set*/ nullptr,
96 /*tp_dictoffset*/ 0,
97 /*tp_init*/ (initproc)EqualToTimeStampUP1D___init__,
98 /*tp_alloc*/ nullptr,
99 /*tp_new*/ nullptr,
100};
101
103
104#ifdef __cplusplus
105}
106#endif
unsigned int uint
PyTypeObject EqualToTimeStampUP1D_Type
PyDoc_STRVAR(EqualToTimeStampUP1D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`EqualToTimeStampUP1D`\n" "\n" ".. method:: __init__(ts)\n" "\n" " Builds a EqualToTimeStampUP1D object.\n" "\n" " :arg ts: A time stamp value.\n" " :type ts: int\n" "\n" ".. method:: __call__(inter)\n" "\n" " Returns true if the Interface1D's time stamp is equal to a certain\n" " user-defined value.\n" "\n" " :arg inter: An Interface1D object.\n" " :type inter: :class:`freestyle.types.Interface1D`\n" " :return: True if the time stamp is equal to a user-defined value.\n" " :rtype: bool\n")
static int EqualToTimeStampUP1D___init__(BPy_EqualToTimeStampUP1D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryPredicate1D_Type
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20