PLplot  5.14.0
sipplplot_pyqt5QtPLDriver.cpp
Go to the documentation of this file.
1 /*
2  * Interface wrapper code.
3  *
4  * Generated by SIP 4.19.12
5  */
6 
7 #include "sipAPIplplot_pyqt5.h"
8 
9 #line 34 "/builddir/build/BUILD/plplot-5.14.0/bindings/qt_gui/pyqt5/plplot_pyqt5.sip"
10 #include "qt.h"
11 #line 12 "./sipplplot_pyqt5QtPLDriver.cpp"
12 
13 
14 
16 {
17 public:
18  sipQtPLDriver(int,int);
19  sipQtPLDriver(const ::QtPLDriver&);
21 
22 public:
23  sipSimpleWrapper *sipPySelf;
24 
25 private:
28 };
29 
30 sipQtPLDriver::sipQtPLDriver(int a0,int a1): ::QtPLDriver(a0,a1), sipPySelf(0)
31 {
32 }
33 
34 sipQtPLDriver::sipQtPLDriver(const ::QtPLDriver& a0): ::QtPLDriver(a0), sipPySelf(0)
35 {
36 }
37 
39 {
41 }
42 
43 
44 /* Call the instance's destructor. */
45 extern "C" {static void release_QtPLDriver(void *, int);}
46 static 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 
55 extern "C" {static void assign_QtPLDriver(void *, SIP_SSIZE_T, void *);}
56 static void assign_QtPLDriver(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
57 {
58  reinterpret_cast< ::QtPLDriver *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QtPLDriver *>(sipSrc);
59 }
60 
61 
62 extern "C" {static void *array_QtPLDriver(SIP_SSIZE_T);}
63 static void *array_QtPLDriver(SIP_SSIZE_T sipNrElem)
64 {
65  return new ::QtPLDriver[sipNrElem];
66 }
67 
68 
69 extern "C" {static void *copy_QtPLDriver(const void *, SIP_SSIZE_T);}
70 static void *copy_QtPLDriver(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
71 {
72  return new ::QtPLDriver(reinterpret_cast<const ::QtPLDriver *>(sipSrc)[sipSrcIdx]);
73 }
74 
75 
76 extern "C" {static void dealloc_QtPLDriver(sipSimpleWrapper *);}
77 static void dealloc_QtPLDriver(sipSimpleWrapper *sipSelf)
78 {
79  if (sipIsDerivedClass(sipSelf))
80  reinterpret_cast<sipQtPLDriver *>(sipGetAddress(sipSelf))->sipPySelf = NULL;
81 
82  if (sipIsOwnedByPython(sipSelf))
83  {
85  }
86 }
87 
88 
89 extern "C" {static void *init_type_QtPLDriver(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
90 static void *init_type_QtPLDriver(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
91 {
92  sipQtPLDriver *sipCpp = 0;
93 
94  {
95  int a0 = QT_DEFAULT_X;
96  int a1 = QT_DEFAULT_Y;
97 
98  if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, 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, NULL, 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 NULL;
122 }
123 
124 
125 static pyqt5ClassPluginDef plugin_QtPLDriver = {
126  0,
127  0,
128  0,
129  0
130 };
131 
132 
134  {
135  -1,
136  0,
137  0,
138  SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
140  {0},
142  },
143  {
145  {0, 0, 1},
146  0, 0,
147  0, 0,
148  0, 0,
149  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
150  },
151  0,
152  -1,
153  -1,
154  0,
155  0,
157  0,
158  0,
159 #if PY_MAJOR_VERSION >= 3
160  0,
161  0,
162 #else
163  0,
164  0,
165  0,
166  0,
167 #endif
173  0,
174  0,
175  0,
176  0,
177  0,
178  0,
179  0
180 };
static void dealloc_QtPLDriver(sipSimpleWrapper *)
static void release_QtPLDriver(void *, int)
#define sipNameNr_QtPLDriver
#define sipInstanceDestroyedEx
#define sipIsOwnedByPython
static void * copy_QtPLDriver(const void *, SIP_SSIZE_T)
sipClassTypeDef sipTypeDef_plplot_pyqt5_QtPLDriver
#define sipIsDerivedClass
#define sipGetAddress
#define sipType_QtPLDriver
static void assign_QtPLDriver(void *, SIP_SSIZE_T, void *)
static void * init_type_QtPLDriver(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **)
Definition: qt.h:117
static pyqt5ClassPluginDef plugin_QtPLDriver
sipQtPLDriver & operator=(const sipQtPLDriver &)
static void * array_QtPLDriver(SIP_SSIZE_T)
#define sipParseKwdArgs
#define QT_DEFAULT_X
Definition: qt.h:89
sipSimpleWrapper * sipPySelf
#define QT_DEFAULT_Y
Definition: qt.h:90