Blender V4.3
BPy_TimeStampF1D.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_TimeStampF1D.h"
10
12#include "../../BPy_Convert.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19using namespace Freestyle;
20
22
23//------------------------INSTANCE METHODS ----------------------------------
24
26 /* Wrap. */
27 TimeStampF1D___doc__,
28 "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > "
29 ":class:`freestyle.types.UnaryFunction1DVoid` > :class:`TimeStampF1D`\n"
30 "\n"
31 ".. method:: __init__()\n"
32 "\n"
33 " Builds a TimeStampF1D object.\n"
34 "\n"
35 ".. method:: __call__(inter)\n"
36 "\n"
37 " Returns the time stamp of the Interface1D.\n"
38 "\n"
39 " :arg inter: An Interface1D object.\n"
40 " :type inter: :class:`freestyle.types.Interface1D`\n");
41
42static int TimeStampF1D___init__(BPy_TimeStampF1D *self, PyObject *args, PyObject *kwds)
43{
44 static const char *kwlist[] = {nullptr};
45
46 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
47 return -1;
48 }
49 self->py_uf1D_void.uf1D_void = new Functions1D::TimeStampF1D();
50 return 0;
51}
52
53/*-----------------------BPy_TimeStampF1D type definition ------------------------------*/
54
55PyTypeObject TimeStampF1D_Type = {
56 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
57 /*tp_name*/ "TimeStampF1D",
58 /*tp_basicsize*/ sizeof(BPy_TimeStampF1D),
59 /*tp_itemsize*/ 0,
60 /*tp_dealloc*/ nullptr,
61 /*tp_vectorcall_offset*/ 0,
62 /*tp_getattr*/ nullptr,
63 /*tp_setattr*/ nullptr,
64 /*tp_as_async*/ nullptr,
65 /*tp_repr*/ nullptr,
66 /*tp_as_number*/ nullptr,
67 /*tp_as_sequence*/ nullptr,
68 /*tp_as_mapping*/ nullptr,
69 /*tp_hash*/ nullptr,
70 /*tp_call*/ nullptr,
71 /*tp_str*/ nullptr,
72 /*tp_getattro*/ nullptr,
73 /*tp_setattro*/ nullptr,
74 /*tp_as_buffer*/ nullptr,
75 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
76 /*tp_doc*/ TimeStampF1D___doc__,
77 /*tp_traverse*/ nullptr,
78 /*tp_clear*/ nullptr,
79 /*tp_richcompare*/ nullptr,
80 /*tp_weaklistoffset*/ 0,
81 /*tp_iter*/ nullptr,
82 /*tp_iternext*/ nullptr,
83 /*tp_methods*/ nullptr,
84 /*tp_members*/ nullptr,
85 /*tp_getset*/ nullptr,
86 /*tp_base*/ &UnaryFunction1DVoid_Type,
87 /*tp_dict*/ nullptr,
88 /*tp_descr_get*/ nullptr,
89 /*tp_descr_set*/ nullptr,
90 /*tp_dictoffset*/ 0,
91 /*tp_init*/ (initproc)TimeStampF1D___init__,
92 /*tp_alloc*/ nullptr,
93 /*tp_new*/ nullptr,
94};
95
97
98#ifdef __cplusplus
99}
100#endif
static int TimeStampF1D___init__(BPy_TimeStampF1D *self, PyObject *args, PyObject *kwds)
PyTypeObject TimeStampF1D_Type
PyDoc_STRVAR(TimeStampF1D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > " ":class:`freestyle.types.UnaryFunction1DVoid` > :class:`TimeStampF1D`\n" "\n" ".. method:: __init__()\n" "\n" " Builds a TimeStampF1D object.\n" "\n" ".. method:: __call__(inter)\n" "\n" " Returns the time stamp of the Interface1D.\n" "\n" " :arg inter: An Interface1D object.\n" " :type inter: :class:`freestyle.types.Interface1D`\n")
PyTypeObject UnaryFunction1DVoid_Type
Functions taking 1D input.
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20