PLplot 5.15.0
Loading...
Searching...
No Matches
build/plplot_pyqt5/sipplplot_pyqt5QtPLDriver.cpp
Go to the documentation of this file.
1/*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 6.9.0
5 */
6
8
9#line 34 "/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
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
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 array_delete_QtPLDriver(void *);}
63static void array_delete_QtPLDriver(void *sipCpp)
64{
65 delete[] reinterpret_cast<::QtPLDriver *>(sipCpp);
66}
67
68
69extern "C" {static void assign_QtPLDriver(void *, Py_ssize_t, void *);}
70static void assign_QtPLDriver(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
71{
72 reinterpret_cast<::QtPLDriver *>(sipDst)[sipDstIdx] = *reinterpret_cast<::QtPLDriver *>(sipSrc);
73}
74
75
76extern "C" {static void *copy_QtPLDriver(const void *, Py_ssize_t);}
77static void *copy_QtPLDriver(const void *sipSrc, Py_ssize_t sipSrcIdx)
78{
79 return new ::QtPLDriver(reinterpret_cast<const ::QtPLDriver *>(sipSrc)[sipSrcIdx]);
80}
81
82
83extern "C" {static void dealloc_QtPLDriver(sipSimpleWrapper *);}
85{
86 if (sipIsDerivedClass(sipSelf))
87 reinterpret_cast<sipQtPLDriver *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
88
89 if (sipIsOwnedByPython(sipSelf))
90 {
92 }
93}
94
95
96extern "C" {static void *init_type_QtPLDriver(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
97static void *init_type_QtPLDriver(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
98{
99 sipQtPLDriver *sipCpp = SIP_NULLPTR;
100
101 {
102 int a0 = QT_DEFAULT_X;
103 int a1 = QT_DEFAULT_Y;
104
105 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "|ii", &a0, &a1))
106 {
107 sipCpp = new sipQtPLDriver(a0, a1);
108
109 sipCpp->sipPySelf = sipSelf;
110
111 return sipCpp;
112 }
113 }
114
115 {
116 const ::QtPLDriver* a0;
117
118 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QtPLDriver, &a0))
119 {
120 sipCpp = new sipQtPLDriver(*a0);
121
122 sipCpp->sipPySelf = sipSelf;
123
124 return sipCpp;
125 }
126 }
127
128 return SIP_NULLPTR;
129}
130
131PyDoc_STRVAR(doc_QtPLDriver, "\1QtPLDriver(i_iWidth: int = QT_DEFAULT_X, i_iHeight: int = QT_DEFAULT_Y)\n"
132"QtPLDriver(a0: QtPLDriver)");
133
134
141
142
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 **)
PyDoc_STRVAR(doc_QtPLDriver, "\1QtPLDriver(i_iWidth: int = QT_DEFAULT_X, i_iHeight: int = QT_DEFAULT_Y)\n" "QtPLDriver(a0: QtPLDriver)")
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
static void assign_QtPLDriver(void *, Py_ssize_t, void *)
#define SIP_TYPE_CLASS
Definition build/sip.h:1784
#define SIP_TYPE_SUPER_INIT
Definition build/sip.h:1794
#define SIP_NULLPTR
Definition build/sip.h:138
#define SIP_DERIVED_CLASS
Definition build/sip.h:1740
sipQtPLDriver & operator=(const sipQtPLDriver &)
sipQtPLDriver(const sipQtPLDriver &)
#define QT_DEFAULT_Y
Definition qt.h:91
#define QT_DEFAULT_X
Definition qt.h:90