PLplot 5.15.0
Loading...
Searching...
No Matches
sipplplot_pyqt5QtPLDriver.cpp
Go to the documentation of this file.
1/*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 6.17.1
5 */
6
8
9#line 36 "/builddir/build/BUILD/plplot-5.15.0-build/plplot-5.15.0/redhat-linux-build/bindings/qt_gui/pyqt5/plplot_pyqt5.sip"
10#include "qt.h"
11#line 12 "/builddir/build/BUILD/plplot-5.15.0-build/plplot-5.15.0/redhat-linux-build/bindings/qt_gui/pyqt5/build/plplot_pyqt5/sipplplot_pyqt5QtPLDriver.cpp"
12
13
14
15class sipQtPLDriver : public ::QtPLDriver
16{
17public:
18 sipQtPLDriver(int, int);
19 sipQtPLDriver(const ::QtPLDriver&);
21
22public:
24
25private:
28};
29
30sipQtPLDriver::sipQtPLDriver(int a0, int a1): ::QtPLDriver(a0, a1), sipPySelf(SIP_NULLPTR)
31{
32}
33
34sipQtPLDriver::sipQtPLDriver(const ::QtPLDriver& a0): ::QtPLDriver(a0), sipPySelf(SIP_NULLPTR)
35{
36}
37
39{
41}
42
43
44/* Call the instance's destructor. */
45extern "C" {static void release_QtPLDriver(void *, int);}
46static void release_QtPLDriver(void *sipCppV, int sipState)
47{
48 ::QtPLDriver *sipCpp = reinterpret_cast< ::QtPLDriver *>(sipCppV);
49
50 if (sipState & SIP_DERIVED_CLASS)
51 delete reinterpret_cast<sipQtPLDriver *>(sipCppV);
52 else
53 delete sipCpp;
54}
55
56
57extern "C" {static void *array_QtPLDriver(Py_ssize_t);}
58static void *array_QtPLDriver(Py_ssize_t sipNrElem)
59{
60 return new ::QtPLDriver[sipNrElem];
61}
62
63
64extern "C" {static void array_delete_QtPLDriver(void *);}
65static void array_delete_QtPLDriver(void *sipCpp)
66{
67 delete[] reinterpret_cast< ::QtPLDriver *>(sipCpp);
68}
69
70
71extern "C" {static void assign_QtPLDriver(void *, Py_ssize_t, void *);}
72static void assign_QtPLDriver(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
73{
74 reinterpret_cast< ::QtPLDriver *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QtPLDriver *>(sipSrc);
75}
76
77
78extern "C" {static void *copy_QtPLDriver(const void *, Py_ssize_t);}
79static void *copy_QtPLDriver(const void *sipSrc, Py_ssize_t sipSrcIdx)
80{
81 return new ::QtPLDriver(reinterpret_cast<const ::QtPLDriver *>(sipSrc)[sipSrcIdx]);
82}
83
84
85extern "C" {static void dealloc_QtPLDriver(sipSimpleWrapper *);}
87{
88 if (sipIsDerivedClass(sipSelf))
89 reinterpret_cast<sipQtPLDriver *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
90
91 if (sipIsOwnedByPython(sipSelf))
92 {
94 }
95}
96
97
98extern "C" {static void *init_type_QtPLDriver(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
99static void *init_type_QtPLDriver(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
100{
101 sipQtPLDriver *sipCpp = SIP_NULLPTR;
102
103 {
104 int a0 = QT_DEFAULT_X;
105 int a1 = QT_DEFAULT_Y;
106
107 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "|ii", &a0, &a1))
108 {
109 sipCpp = new sipQtPLDriver(a0, a1);
110
111 sipCpp->sipPySelf = sipSelf;
112
113 return sipCpp;
114 }
115 }
116
117 {
118 const ::QtPLDriver* a0;
119
120 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QtPLDriver, &a0))
121 {
122 sipCpp = new sipQtPLDriver(*a0);
123
124 sipCpp->sipPySelf = sipSelf;
125
126 return sipCpp;
127 }
128 }
129
130 return SIP_NULLPTR;
131}
132
133PyDoc_STRVAR(doc_QtPLDriver, "\1QtPLDriver(i_iWidth: int = QT_DEFAULT_X, i_iHeight: int = QT_DEFAULT_Y)\n"
134"QtPLDriver(a0: QtPLDriver)");
135
136
143
144
sipClassTypeDef sipTypeDef_plplot_pyqt5_QtPLDriver
static pyqt5ClassPluginDef plugin_QtPLDriver
static void array_delete_QtPLDriver(void *)
static void * array_QtPLDriver(Py_ssize_t)
static void * init_type_QtPLDriver(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **)
static void dealloc_QtPLDriver(sipSimpleWrapper *)
static void * copy_QtPLDriver(const void *, Py_ssize_t)
static void release_QtPLDriver(void *, int)
static void assign_QtPLDriver(void *, Py_ssize_t, void *)
PyDoc_STRVAR(doc_plfreeqtdev, "plfreeqtdev()")
#define SIP_TYPE_CLASS
Definition build/sip.h:1841
#define SIP_TYPE_SUPER_INIT
Definition build/sip.h:1851
#define SIP_NULLPTR
Definition build/sip.h:169
#define SIP_DERIVED_CLASS
Definition build/sip.h:1797
struct _sipSimpleWrapper sipSimpleWrapper
Definition build/sip.h:237
struct _pyqt5ClassPluginDef pyqt5ClassPluginDef
struct _sipClassTypeDef sipClassTypeDef
sipQtPLDriver(int, int)
sipQtPLDriver & operator=(const sipQtPLDriver &)
sipQtPLDriver(const sipQtPLDriver &)
sipQtPLDriver(const ::QtPLDriver &)
#define QT_DEFAULT_Y
Definition qt.h:91
#define QT_DEFAULT_X
Definition qt.h:90