PLplot 5.15.0
build/plplot_pyqt5/sipplplot_pyqt5QtPLDriver.cpp
Go to the documentation of this file.
1/*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 6.5.1
5 */
6
8
9#line 34 "/builddir/build/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/redhat-linux-build/bindings/qt_gui/pyqt5/build/plplot_pyqt5/sipplplot_pyqt5QtPLDriver.cpp"
12
13
14
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 if (sipState & SIP_DERIVED_CLASS)
49 delete reinterpret_cast<sipQtPLDriver *>(sipCppV);
50 else
51 delete reinterpret_cast< ::QtPLDriver *>(sipCppV);
52}
53
54
55extern "C" {static void *array_QtPLDriver(Py_ssize_t);}
56static void *array_QtPLDriver(Py_ssize_t sipNrElem)
57{
58 return new ::QtPLDriver[sipNrElem];
59}
60
61
62extern "C" {static void assign_QtPLDriver(void *, Py_ssize_t, void *);}
63static void assign_QtPLDriver(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
64{
65 reinterpret_cast< ::QtPLDriver *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QtPLDriver *>(sipSrc);
66}
67
68
69extern "C" {static void *copy_QtPLDriver(const void *, Py_ssize_t);}
70static void *copy_QtPLDriver(const void *sipSrc, Py_ssize_t sipSrcIdx)
71{
72 return new ::QtPLDriver(reinterpret_cast<const ::QtPLDriver *>(sipSrc)[sipSrcIdx]);
73}
74
75
76extern "C" {static void dealloc_QtPLDriver(sipSimpleWrapper *);}
78{
79 if (sipIsDerivedClass(sipSelf))
80 reinterpret_cast<sipQtPLDriver *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
81
82 if (sipIsOwnedByPython(sipSelf))
83 {
85 }
86}
87
88
89extern "C" {static void *init_type_QtPLDriver(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
90static void *init_type_QtPLDriver(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
91{
92 sipQtPLDriver *sipCpp = SIP_NULLPTR;
93
94 {
95 int a0 = QT_DEFAULT_X;
96 int a1 = QT_DEFAULT_Y;
97
98 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "|ii", &a0, &a1))
99 {
100 sipCpp = new sipQtPLDriver(a0,a1);
101
102 sipCpp->sipPySelf = sipSelf;
103
104 return sipCpp;
105 }
106 }
107
108 {
109 const ::QtPLDriver* a0;
110
111 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QtPLDriver, &a0))
112 {
113 sipCpp = new sipQtPLDriver(*a0);
114
115 sipCpp->sipPySelf = sipSelf;
116
117 return sipCpp;
118 }
119 }
120
121 return SIP_NULLPTR;
122}
123
124PyDoc_STRVAR(doc_QtPLDriver, "\1QtPLDriver(int = QT_DEFAULT_X, int = QT_DEFAULT_Y)\n"
125"QtPLDriver(QtPLDriver)");
126
127
130 0,
133};
134
135
137 {
138 -1,
145 },
146 {
148 {0, 0, 1},
149 0, SIP_NULLPTR,
150 0, SIP_NULLPTR,
151 0, SIP_NULLPTR,
153 },
154 doc_QtPLDriver,
155 -1,
156 -1,
176};
static pyqt5ClassPluginDef plugin_QtPLDriver
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)
sipClassTypeDef sipTypeDef_plplot_pyqt5_QtPLDriver
PyDoc_STRVAR(doc_QtPLDriver, "\1QtPLDriver(int = QT_DEFAULT_X, int = QT_DEFAULT_Y)\n" "QtPLDriver(QtPLDriver)")
static void assign_QtPLDriver(void *, Py_ssize_t, void *)
#define SIP_TYPE_CLASS
Definition: build/sip.h:1751
#define SIP_TYPE_SUPER_INIT
Definition: build/sip.h:1761
#define SIP_NULLPTR
Definition: build/sip.h:114
#define SIP_DERIVED_CLASS
Definition: build/sip.h:1707
Definition: qt.h:119
sipQtPLDriver & operator=(const sipQtPLDriver &)
sipQtPLDriver(const sipQtPLDriver &)
#define QT_DEFAULT_Y
Definition: qt.h:91
#define QT_DEFAULT_X
Definition: qt.h:90