PLplot  5.15.0
sipplplot_pyqt5QtPLDriver.cpp
Go to the documentation of this file.
1 /*
2  * Interface wrapper code.
3  *
4  * Generated by SIP 4.19.19
5  */
6 
7 #include "sipAPIplplot_pyqt5.h"
8 
9 #line 34 "/builddir/build/BUILD/plplot-5.15.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(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 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 = SIP_NULLPTR;
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 = 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 
124 
125 static pyqt5ClassPluginDef plugin_QtPLDriver = {
126  SIP_NULLPTR,
127  0,
128  SIP_NULLPTR,
129  SIP_NULLPTR
130 };
131 
132 
134  {
135  -1,
136  SIP_NULLPTR,
137  SIP_NULLPTR,
138  SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
140  {SIP_NULLPTR},
142  },
143  {
145  {0, 0, 1},
146  0, SIP_NULLPTR,
147  0, SIP_NULLPTR,
148  0, SIP_NULLPTR,
149  {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
150  },
151  SIP_NULLPTR,
152  -1,
153  -1,
154  SIP_NULLPTR,
155  SIP_NULLPTR,
157  SIP_NULLPTR,
158  SIP_NULLPTR,
159 #if PY_MAJOR_VERSION >= 3
160  SIP_NULLPTR,
161  SIP_NULLPTR,
162 #else
163  SIP_NULLPTR,
164  SIP_NULLPTR,
165  SIP_NULLPTR,
166  SIP_NULLPTR,
167 #endif
173  SIP_NULLPTR,
174  SIP_NULLPTR,
175  SIP_NULLPTR,
176  SIP_NULLPTR,
177  SIP_NULLPTR,
178  SIP_NULLPTR,
179  SIP_NULLPTR
180 };
QT_DEFAULT_X
#define QT_DEFAULT_X
Definition: qt.h:89
assign_QtPLDriver
static void assign_QtPLDriver(void *, SIP_SSIZE_T, void *)
Definition: sipplplot_pyqt5QtPLDriver.cpp:56
release_QtPLDriver
static void release_QtPLDriver(void *, int)
Definition: sipplplot_pyqt5QtPLDriver.cpp:46
sipQtPLDriver
Definition: sipplplot_pyqt5QtPLDriver.cpp:15
qt.h
sipQtPLDriver::sipPySelf
sipSimpleWrapper * sipPySelf
Definition: sipplplot_pyqt5QtPLDriver.cpp:23
sipNameNr_QtPLDriver
#define sipNameNr_QtPLDriver
Definition: sipAPIplplot_pyqt5.h:138
array_QtPLDriver
static void * array_QtPLDriver(SIP_SSIZE_T)
Definition: sipplplot_pyqt5QtPLDriver.cpp:63
QtPLDriver
Definition: qt.h:117
sipInstanceDestroyedEx
#define sipInstanceDestroyedEx
Definition: sipAPIplplot_pyqt5.h:223
plugin_QtPLDriver
static pyqt5ClassPluginDef plugin_QtPLDriver
Definition: sipplplot_pyqt5QtPLDriver.cpp:125
sipQtPLDriver::operator=
sipQtPLDriver & operator=(const sipQtPLDriver &)
sipIsOwnedByPython
#define sipIsOwnedByPython
Definition: sipAPIplplot_pyqt5.h:337
sipQtPLDriver::sipQtPLDriver
sipQtPLDriver(int, int)
Definition: sipplplot_pyqt5QtPLDriver.cpp:30
sipIsDerivedClass
#define sipIsDerivedClass
Definition: sipAPIplplot_pyqt5.h:338
sipGetAddress
#define sipGetAddress
Definition: sipAPIplplot_pyqt5.h:245
QT_DEFAULT_Y
#define QT_DEFAULT_Y
Definition: qt.h:90
copy_QtPLDriver
static void * copy_QtPLDriver(const void *, SIP_SSIZE_T)
Definition: sipplplot_pyqt5QtPLDriver.cpp:70
sipQtPLDriver::~sipQtPLDriver
~sipQtPLDriver()
Definition: sipplplot_pyqt5QtPLDriver.cpp:38
sipTypeDef_plplot_pyqt5_QtPLDriver
sipClassTypeDef sipTypeDef_plplot_pyqt5_QtPLDriver
Definition: sipplplot_pyqt5QtPLDriver.cpp:133
sipType_QtPLDriver
#define sipType_QtPLDriver
Definition: sipAPIplplot_pyqt5.h:384
dealloc_QtPLDriver
static void dealloc_QtPLDriver(sipSimpleWrapper *)
Definition: sipplplot_pyqt5QtPLDriver.cpp:77
sipParseKwdArgs
#define sipParseKwdArgs
Definition: sipAPIplplot_pyqt5.h:220
sipAPIplplot_pyqt5.h
init_type_QtPLDriver
static void * init_type_QtPLDriver(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **)
Definition: sipplplot_pyqt5QtPLDriver.cpp:90