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.6.2
5  */
6 
7 #include "sipAPIplplot_pyqt5.h"
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 {
17 public:
18  sipQtPLDriver(int,int);
19  sipQtPLDriver(const ::QtPLDriver&);
21 
22 public:
24 
25 private:
28 };
29 
30 sipQtPLDriver::sipQtPLDriver(int a0,int a1): ::QtPLDriver(a0,a1), sipPySelf(SIP_NULLPTR)
31 {
32 }
33 
34 sipQtPLDriver::sipQtPLDriver(const ::QtPLDriver& a0): ::QtPLDriver(a0), sipPySelf(SIP_NULLPTR)
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 *array_QtPLDriver(Py_ssize_t);}
56 static void *array_QtPLDriver(Py_ssize_t sipNrElem)
57 {
58  return new ::QtPLDriver[sipNrElem];
59 }
60 
61 
62 extern "C" {static void array_delete_QtPLDriver(void *);}
63 static void array_delete_QtPLDriver(void *sipCpp)
64 {
65  delete[] reinterpret_cast< ::QtPLDriver *>(sipCpp);
66 }
67 
68 
69 extern "C" {static void assign_QtPLDriver(void *, Py_ssize_t, void *);}
70 static 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 
76 extern "C" {static void *copy_QtPLDriver(const void *, Py_ssize_t);}
77 static void *copy_QtPLDriver(const void *sipSrc, Py_ssize_t sipSrcIdx)
78 {
79  return new ::QtPLDriver(reinterpret_cast<const ::QtPLDriver *>(sipSrc)[sipSrcIdx]);
80 }
81 
82 
83 extern "C" {static void dealloc_QtPLDriver(sipSimpleWrapper *);}
84 static void dealloc_QtPLDriver(sipSimpleWrapper *sipSelf)
85 {
86  if (sipIsDerivedClass(sipSelf))
87  reinterpret_cast<sipQtPLDriver *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
88 
89  if (sipIsOwnedByPython(sipSelf))
90  {
92  }
93 }
94 
95 
96 extern "C" {static void *init_type_QtPLDriver(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
97 static 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 
131 PyDoc_STRVAR(doc_QtPLDriver, "\1QtPLDriver(int = QT_DEFAULT_X, int = QT_DEFAULT_Y)\n"
132 "QtPLDriver(QtPLDriver)");
133 
134 
136  SIP_NULLPTR,
137  0,
138  SIP_NULLPTR,
140 };
141 
142 
144  {
145  -1,
146  SIP_NULLPTR,
147  SIP_NULLPTR,
150  SIP_NULLPTR,
152  },
153  {
155  {0, 0, 1},
156  0, SIP_NULLPTR,
157  0, SIP_NULLPTR,
158  0, SIP_NULLPTR,
160  },
161  doc_QtPLDriver,
162  -1,
163  -1,
164  SIP_NULLPTR,
165  SIP_NULLPTR,
167  SIP_NULLPTR,
168  SIP_NULLPTR,
169  SIP_NULLPTR,
170  SIP_NULLPTR,
176  SIP_NULLPTR,
177  SIP_NULLPTR,
178  SIP_NULLPTR,
179  SIP_NULLPTR,
180  SIP_NULLPTR,
181  SIP_NULLPTR,
182  SIP_NULLPTR,
184  sizeof ( ::QtPLDriver),
185 };
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)
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:1762
#define SIP_TYPE_SUPER_INIT
Definition: build/sip.h:1772
#define SIP_NULLPTR
Definition: build/sip.h:127
#define SIP_DERIVED_CLASS
Definition: build/sip.h:1718
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