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