1 /*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 4.19.16
5 *
6 * Copyright: (c) 2018 by Total Control Software
7 * License: wxWindows License
8 */
9
10 #include "sipAPI_core.h"
11
12 #include <wx/gbsizer.h>
13
14 #include <wx/gbsizer.h>
15 #include <wx/gbsizer.h>
16 #include <wx/window.h>
17 #include <wx/sizer.h>
18 #include <wx/gbsizer.h>
19 #include <wx/gdicmn.h>
20 #include <wx/gdicmn.h>
21 #include <wx/gdicmn.h>
22 #include <wx/object.h>
23 #include <wx/object.h>
24 #include <wx/object.h>
25
26
27 PyDoc_STRVAR(doc_wxGBSizerItem_GetPos, "GetPos() -> GBPosition\n"
28 "\n"
29 "Get the grid position of the item.");
30
31 extern "C" {static PyObject *meth_wxGBSizerItem_GetPos(PyObject *, PyObject *);}
meth_wxGBSizerItem_GetPos(PyObject * sipSelf,PyObject * sipArgs)32 static PyObject *meth_wxGBSizerItem_GetPos(PyObject *sipSelf, PyObject *sipArgs)
33 {
34 PyObject *sipParseErr = SIP_NULLPTR;
35
36 {
37 const ::wxGBSizerItem *sipCpp;
38
39 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGBSizerItem, &sipCpp))
40 {
41 ::wxGBPosition*sipRes;
42
43 PyErr_Clear();
44
45 Py_BEGIN_ALLOW_THREADS
46 sipRes = new ::wxGBPosition(sipCpp->GetPos());
47 Py_END_ALLOW_THREADS
48
49 if (PyErr_Occurred())
50 return 0;
51
52 return sipConvertFromNewType(sipRes,sipType_wxGBPosition,SIP_NULLPTR);
53 }
54 }
55
56 /* Raise an exception if the arguments couldn't be parsed. */
57 sipNoMethod(sipParseErr, sipName_GBSizerItem, sipName_GetPos, SIP_NULLPTR);
58
59 return SIP_NULLPTR;
60 }
61
62
63 PyDoc_STRVAR(doc_wxGBSizerItem_GetSpan, "GetSpan() -> GBSpan\n"
64 "\n"
65 "Get the row and column spanning of the item.");
66
67 extern "C" {static PyObject *meth_wxGBSizerItem_GetSpan(PyObject *, PyObject *);}
meth_wxGBSizerItem_GetSpan(PyObject * sipSelf,PyObject * sipArgs)68 static PyObject *meth_wxGBSizerItem_GetSpan(PyObject *sipSelf, PyObject *sipArgs)
69 {
70 PyObject *sipParseErr = SIP_NULLPTR;
71
72 {
73 const ::wxGBSizerItem *sipCpp;
74
75 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGBSizerItem, &sipCpp))
76 {
77 ::wxGBSpan*sipRes;
78
79 PyErr_Clear();
80
81 Py_BEGIN_ALLOW_THREADS
82 sipRes = new ::wxGBSpan(sipCpp->GetSpan());
83 Py_END_ALLOW_THREADS
84
85 if (PyErr_Occurred())
86 return 0;
87
88 return sipConvertFromNewType(sipRes,sipType_wxGBSpan,SIP_NULLPTR);
89 }
90 }
91
92 /* Raise an exception if the arguments couldn't be parsed. */
93 sipNoMethod(sipParseErr, sipName_GBSizerItem, sipName_GetSpan, SIP_NULLPTR);
94
95 return SIP_NULLPTR;
96 }
97
98
99 PyDoc_STRVAR(doc_wxGBSizerItem_GetEndPos, "GetEndPos() -> (row, col)\n"
100 "\n"
101 "Get the row and column of the endpoint of this item.");
102
103 extern "C" {static PyObject *meth_wxGBSizerItem_GetEndPos(PyObject *, PyObject *, PyObject *);}
meth_wxGBSizerItem_GetEndPos(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)104 static PyObject *meth_wxGBSizerItem_GetEndPos(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
105 {
106 PyObject *sipParseErr = SIP_NULLPTR;
107
108 {
109 int row;
110 int col;
111 ::wxGBSizerItem *sipCpp;
112
113 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxGBSizerItem, &sipCpp))
114 {
115 PyErr_Clear();
116
117 Py_BEGIN_ALLOW_THREADS
118 sipCpp->GetEndPos(row,col);
119 Py_END_ALLOW_THREADS
120
121 if (PyErr_Occurred())
122 return 0;
123
124 return sipBuildResult(0,"(ii)",row,col);
125 }
126 }
127
128 /* Raise an exception if the arguments couldn't be parsed. */
129 sipNoMethod(sipParseErr, sipName_GBSizerItem, sipName_GetEndPos, SIP_NULLPTR);
130
131 return SIP_NULLPTR;
132 }
133
134
135 PyDoc_STRVAR(doc_wxGBSizerItem_Intersects, "Intersects(other) -> bool\n"
136 "Intersects(pos, span) -> bool\n"
137 "\n"
138 "Returns true if this item and the other item intersect.\n"
139 "");
140
141 extern "C" {static PyObject *meth_wxGBSizerItem_Intersects(PyObject *, PyObject *, PyObject *);}
meth_wxGBSizerItem_Intersects(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)142 static PyObject *meth_wxGBSizerItem_Intersects(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
143 {
144 PyObject *sipParseErr = SIP_NULLPTR;
145
146 {
147 const ::wxGBSizerItem* other;
148 ::wxGBSizerItem *sipCpp;
149
150 static const char *sipKwdList[] = {
151 sipName_other,
152 };
153
154 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxGBSizerItem, &sipCpp, sipType_wxGBSizerItem, &other))
155 {
156 bool sipRes;
157
158 PyErr_Clear();
159
160 Py_BEGIN_ALLOW_THREADS
161 sipRes = sipCpp->Intersects(*other);
162 Py_END_ALLOW_THREADS
163
164 if (PyErr_Occurred())
165 return 0;
166
167 return PyBool_FromLong(sipRes);
168 }
169 }
170
171 {
172 const ::wxGBPosition* pos;
173 int posState = 0;
174 const ::wxGBSpan* span;
175 int spanState = 0;
176 ::wxGBSizerItem *sipCpp;
177
178 static const char *sipKwdList[] = {
179 sipName_pos,
180 sipName_span,
181 };
182
183 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1", &sipSelf, sipType_wxGBSizerItem, &sipCpp, sipType_wxGBPosition, &pos, &posState, sipType_wxGBSpan, &span, &spanState))
184 {
185 bool sipRes;
186
187 PyErr_Clear();
188
189 Py_BEGIN_ALLOW_THREADS
190 sipRes = sipCpp->Intersects(*pos,*span);
191 Py_END_ALLOW_THREADS
192 sipReleaseType(const_cast< ::wxGBPosition *>(pos),sipType_wxGBPosition,posState);
193 sipReleaseType(const_cast< ::wxGBSpan *>(span),sipType_wxGBSpan,spanState);
194
195 if (PyErr_Occurred())
196 return 0;
197
198 return PyBool_FromLong(sipRes);
199 }
200 }
201
202 /* Raise an exception if the arguments couldn't be parsed. */
203 sipNoMethod(sipParseErr, sipName_GBSizerItem, sipName_Intersects, SIP_NULLPTR);
204
205 return SIP_NULLPTR;
206 }
207
208
209 PyDoc_STRVAR(doc_wxGBSizerItem_SetPos, "SetPos(pos) -> bool\n"
210 "\n"
211 "If the item is already a member of a sizer then first ensure that\n"
212 "there is no other item that would intersect with this one at the new\n"
213 "position, then set the new position.");
214
215 extern "C" {static PyObject *meth_wxGBSizerItem_SetPos(PyObject *, PyObject *, PyObject *);}
meth_wxGBSizerItem_SetPos(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)216 static PyObject *meth_wxGBSizerItem_SetPos(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
217 {
218 PyObject *sipParseErr = SIP_NULLPTR;
219
220 {
221 const ::wxGBPosition* pos;
222 int posState = 0;
223 ::wxGBSizerItem *sipCpp;
224
225 static const char *sipKwdList[] = {
226 sipName_pos,
227 };
228
229 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxGBSizerItem, &sipCpp, sipType_wxGBPosition, &pos, &posState))
230 {
231 bool sipRes;
232
233 PyErr_Clear();
234
235 Py_BEGIN_ALLOW_THREADS
236 sipRes = sipCpp->SetPos(*pos);
237 Py_END_ALLOW_THREADS
238 sipReleaseType(const_cast< ::wxGBPosition *>(pos),sipType_wxGBPosition,posState);
239
240 if (PyErr_Occurred())
241 return 0;
242
243 return PyBool_FromLong(sipRes);
244 }
245 }
246
247 /* Raise an exception if the arguments couldn't be parsed. */
248 sipNoMethod(sipParseErr, sipName_GBSizerItem, sipName_SetPos, SIP_NULLPTR);
249
250 return SIP_NULLPTR;
251 }
252
253
254 PyDoc_STRVAR(doc_wxGBSizerItem_SetSpan, "SetSpan(span) -> bool\n"
255 "\n"
256 "If the item is already a member of a sizer then first ensure that\n"
257 "there is no other item that would intersect with this one with its new\n"
258 "spanning size, then set the new spanning.");
259
260 extern "C" {static PyObject *meth_wxGBSizerItem_SetSpan(PyObject *, PyObject *, PyObject *);}
meth_wxGBSizerItem_SetSpan(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)261 static PyObject *meth_wxGBSizerItem_SetSpan(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
262 {
263 PyObject *sipParseErr = SIP_NULLPTR;
264
265 {
266 const ::wxGBSpan* span;
267 int spanState = 0;
268 ::wxGBSizerItem *sipCpp;
269
270 static const char *sipKwdList[] = {
271 sipName_span,
272 };
273
274 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxGBSizerItem, &sipCpp, sipType_wxGBSpan, &span, &spanState))
275 {
276 bool sipRes;
277
278 PyErr_Clear();
279
280 Py_BEGIN_ALLOW_THREADS
281 sipRes = sipCpp->SetSpan(*span);
282 Py_END_ALLOW_THREADS
283 sipReleaseType(const_cast< ::wxGBSpan *>(span),sipType_wxGBSpan,spanState);
284
285 if (PyErr_Occurred())
286 return 0;
287
288 return PyBool_FromLong(sipRes);
289 }
290 }
291
292 /* Raise an exception if the arguments couldn't be parsed. */
293 sipNoMethod(sipParseErr, sipName_GBSizerItem, sipName_SetSpan, SIP_NULLPTR);
294
295 return SIP_NULLPTR;
296 }
297
298
299 PyDoc_STRVAR(doc_wxGBSizerItem_GetGBSizer, "GetGBSizer() -> GridBagSizer");
300
301 extern "C" {static PyObject *meth_wxGBSizerItem_GetGBSizer(PyObject *, PyObject *);}
meth_wxGBSizerItem_GetGBSizer(PyObject * sipSelf,PyObject * sipArgs)302 static PyObject *meth_wxGBSizerItem_GetGBSizer(PyObject *sipSelf, PyObject *sipArgs)
303 {
304 PyObject *sipParseErr = SIP_NULLPTR;
305
306 {
307 const ::wxGBSizerItem *sipCpp;
308
309 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGBSizerItem, &sipCpp))
310 {
311 ::wxGridBagSizer*sipRes;
312
313 PyErr_Clear();
314
315 Py_BEGIN_ALLOW_THREADS
316 sipRes = sipCpp->GetGBSizer();
317 Py_END_ALLOW_THREADS
318
319 if (PyErr_Occurred())
320 return 0;
321
322 return sipConvertFromType(sipRes,sipType_wxGridBagSizer,SIP_NULLPTR);
323 }
324 }
325
326 /* Raise an exception if the arguments couldn't be parsed. */
327 sipNoMethod(sipParseErr, sipName_GBSizerItem, sipName_GetGBSizer, SIP_NULLPTR);
328
329 return SIP_NULLPTR;
330 }
331
332
333 PyDoc_STRVAR(doc_wxGBSizerItem_SetGBSizer, "SetGBSizer(sizer)");
334
335 extern "C" {static PyObject *meth_wxGBSizerItem_SetGBSizer(PyObject *, PyObject *, PyObject *);}
meth_wxGBSizerItem_SetGBSizer(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)336 static PyObject *meth_wxGBSizerItem_SetGBSizer(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
337 {
338 PyObject *sipParseErr = SIP_NULLPTR;
339
340 {
341 ::wxGridBagSizer* sizer;
342 ::wxGBSizerItem *sipCpp;
343
344 static const char *sipKwdList[] = {
345 sipName_sizer,
346 };
347
348 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxGBSizerItem, &sipCpp, sipType_wxGridBagSizer, &sizer))
349 {
350 PyErr_Clear();
351
352 Py_BEGIN_ALLOW_THREADS
353 sipCpp->SetGBSizer(sizer);
354 Py_END_ALLOW_THREADS
355
356 if (PyErr_Occurred())
357 return 0;
358
359 Py_INCREF(Py_None);
360 return Py_None;
361 }
362 }
363
364 /* Raise an exception if the arguments couldn't be parsed. */
365 sipNoMethod(sipParseErr, sipName_GBSizerItem, sipName_SetGBSizer, SIP_NULLPTR);
366
367 return SIP_NULLPTR;
368 }
369
370
371 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
372 extern "C" {static void *cast_wxGBSizerItem(void *, const sipTypeDef *);}
cast_wxGBSizerItem(void * sipCppV,const sipTypeDef * targetType)373 static void *cast_wxGBSizerItem(void *sipCppV, const sipTypeDef *targetType)
374 {
375 ::wxGBSizerItem *sipCpp = reinterpret_cast< ::wxGBSizerItem *>(sipCppV);
376
377 if (targetType == sipType_wxSizerItem)
378 return static_cast< ::wxSizerItem *>(sipCpp);
379
380 if (targetType == sipType_wxObject)
381 return static_cast< ::wxObject *>(sipCpp);
382
383 return sipCppV;
384 }
385
386
387 /* Call the instance's destructor. */
388 extern "C" {static void release_wxGBSizerItem(void *, int);}
release_wxGBSizerItem(void * sipCppV,int)389 static void release_wxGBSizerItem(void *sipCppV, int)
390 {
391 Py_BEGIN_ALLOW_THREADS
392
393 delete reinterpret_cast< ::wxGBSizerItem *>(sipCppV);
394
395 Py_END_ALLOW_THREADS
396 }
397
398
399 extern "C" {static void dealloc_wxGBSizerItem(sipSimpleWrapper *);}
dealloc_wxGBSizerItem(sipSimpleWrapper * sipSelf)400 static void dealloc_wxGBSizerItem(sipSimpleWrapper *sipSelf)
401 {
402 if (sipIsOwnedByPython(sipSelf))
403 {
404 release_wxGBSizerItem(sipGetAddress(sipSelf), 0);
405 }
406 }
407
408
409 extern "C" {static void *init_type_wxGBSizerItem(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxGBSizerItem(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)410 static void *init_type_wxGBSizerItem(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
411 {
412 ::wxGBSizerItem *sipCpp = SIP_NULLPTR;
413
414 {
415 int width;
416 int height;
417 const ::wxGBPosition* pos;
418 int posState = 0;
419 const ::wxGBSpan& spandef = wxDefaultSpan;
420 const ::wxGBSpan* span = &spandef;
421 int spanState = 0;
422 int flag = 0;
423 int border = 0;
424 ::wxPyUserData* userData = 0;
425 PyObject *userDataWrapper = 0;
426 int userDataState = 0;
427
428 static const char *sipKwdList[] = {
429 sipName_width,
430 sipName_height,
431 sipName_pos,
432 sipName_span,
433 sipName_flag,
434 sipName_border,
435 sipName_userData,
436 };
437
438 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "iiJ1|J1ii@J0", &width, &height, sipType_wxGBPosition, &pos, &posState, sipType_wxGBSpan, &span, &spanState, &flag, &border, &userDataWrapper, sipType_wxPyUserData,&userData, &userDataState))
439 {
440 PyErr_Clear();
441
442 Py_BEGIN_ALLOW_THREADS
443 sipCpp = new ::wxGBSizerItem(width,height,*pos,*span,flag,border,userData);
444 Py_END_ALLOW_THREADS
445
446 sipTransferTo(userDataWrapper, (PyObject *)sipSelf);
447 sipReleaseType(const_cast< ::wxGBPosition *>(pos),sipType_wxGBPosition,posState);
448 sipReleaseType(const_cast< ::wxGBSpan *>(span),sipType_wxGBSpan,spanState);
449 sipReleaseType(userData,sipType_wxPyUserData,userDataState);
450
451 if (PyErr_Occurred())
452 {
453 delete sipCpp;
454 return SIP_NULLPTR;
455 }
456
457 return sipCpp;
458 }
459 }
460
461 {
462 ::wxWindow* window;
463 const ::wxGBPosition* pos;
464 int posState = 0;
465 const ::wxGBSpan& spandef = wxDefaultSpan;
466 const ::wxGBSpan* span = &spandef;
467 int spanState = 0;
468 int flag = 0;
469 int border = 0;
470 ::wxPyUserData* userData = 0;
471 PyObject *userDataWrapper = 0;
472 int userDataState = 0;
473
474 static const char *sipKwdList[] = {
475 sipName_window,
476 sipName_pos,
477 sipName_span,
478 sipName_flag,
479 sipName_border,
480 sipName_userData,
481 };
482
483 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8J1|J1ii@J0", sipType_wxWindow, &window, sipType_wxGBPosition, &pos, &posState, sipType_wxGBSpan, &span, &spanState, &flag, &border, &userDataWrapper, sipType_wxPyUserData,&userData, &userDataState))
484 {
485 PyErr_Clear();
486
487 Py_BEGIN_ALLOW_THREADS
488 sipCpp = new ::wxGBSizerItem(window,*pos,*span,flag,border,userData);
489 Py_END_ALLOW_THREADS
490
491 sipTransferTo(userDataWrapper, (PyObject *)sipSelf);
492 sipReleaseType(const_cast< ::wxGBPosition *>(pos),sipType_wxGBPosition,posState);
493 sipReleaseType(const_cast< ::wxGBSpan *>(span),sipType_wxGBSpan,spanState);
494 sipReleaseType(userData,sipType_wxPyUserData,userDataState);
495
496 if (PyErr_Occurred())
497 {
498 delete sipCpp;
499 return SIP_NULLPTR;
500 }
501
502 return sipCpp;
503 }
504 }
505
506 {
507 ::wxSizer* sizer;
508 PyObject *sizerWrapper;
509 const ::wxGBPosition* pos;
510 int posState = 0;
511 const ::wxGBSpan& spandef = wxDefaultSpan;
512 const ::wxGBSpan* span = &spandef;
513 int spanState = 0;
514 int flag = 0;
515 int border = 0;
516 ::wxPyUserData* userData = 0;
517 PyObject *userDataWrapper = 0;
518 int userDataState = 0;
519
520 static const char *sipKwdList[] = {
521 sipName_sizer,
522 sipName_pos,
523 sipName_span,
524 sipName_flag,
525 sipName_border,
526 sipName_userData,
527 };
528
529 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "@J8J1|J1ii@J0", &sizerWrapper, sipType_wxSizer, &sizer, sipType_wxGBPosition, &pos, &posState, sipType_wxGBSpan, &span, &spanState, &flag, &border, &userDataWrapper, sipType_wxPyUserData,&userData, &userDataState))
530 {
531 PyErr_Clear();
532
533 Py_BEGIN_ALLOW_THREADS
534 sipCpp = new ::wxGBSizerItem(sizer,*pos,*span,flag,border,userData);
535 Py_END_ALLOW_THREADS
536
537 sipTransferTo(sizerWrapper, (PyObject *)sipSelf);
538
539 sipTransferTo(userDataWrapper, (PyObject *)sipSelf);
540 sipReleaseType(const_cast< ::wxGBPosition *>(pos),sipType_wxGBPosition,posState);
541 sipReleaseType(const_cast< ::wxGBSpan *>(span),sipType_wxGBSpan,spanState);
542 sipReleaseType(userData,sipType_wxPyUserData,userDataState);
543
544 if (PyErr_Occurred())
545 {
546 delete sipCpp;
547 return SIP_NULLPTR;
548 }
549
550 return sipCpp;
551 }
552 }
553
554 return SIP_NULLPTR;
555 }
556
557
558 /* Define this type's super-types. */
559 static sipEncodedTypeDef supers_wxGBSizerItem[] = {{467, 255, 1}};
560
561
562 static PyMethodDef methods_wxGBSizerItem[] = {
563 {SIP_MLNAME_CAST(sipName_GetEndPos), SIP_MLMETH_CAST(meth_wxGBSizerItem_GetEndPos), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGBSizerItem_GetEndPos)},
564 {SIP_MLNAME_CAST(sipName_GetGBSizer), meth_wxGBSizerItem_GetGBSizer, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGBSizerItem_GetGBSizer)},
565 {SIP_MLNAME_CAST(sipName_GetPos), meth_wxGBSizerItem_GetPos, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGBSizerItem_GetPos)},
566 {SIP_MLNAME_CAST(sipName_GetSpan), meth_wxGBSizerItem_GetSpan, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGBSizerItem_GetSpan)},
567 {SIP_MLNAME_CAST(sipName_Intersects), SIP_MLMETH_CAST(meth_wxGBSizerItem_Intersects), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGBSizerItem_Intersects)},
568 {SIP_MLNAME_CAST(sipName_SetGBSizer), SIP_MLMETH_CAST(meth_wxGBSizerItem_SetGBSizer), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGBSizerItem_SetGBSizer)},
569 {SIP_MLNAME_CAST(sipName_SetPos), SIP_MLMETH_CAST(meth_wxGBSizerItem_SetPos), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGBSizerItem_SetPos)},
570 {SIP_MLNAME_CAST(sipName_SetSpan), SIP_MLMETH_CAST(meth_wxGBSizerItem_SetSpan), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGBSizerItem_SetSpan)}
571 };
572
573 sipVariableDef variables_wxGBSizerItem[] = {
574 {PropertyVariable, sipName_Span, &methods_wxGBSizerItem[3], &methods_wxGBSizerItem[7], SIP_NULLPTR, SIP_NULLPTR},
575 {PropertyVariable, sipName_Pos, &methods_wxGBSizerItem[2], &methods_wxGBSizerItem[6], SIP_NULLPTR, SIP_NULLPTR},
576 {PropertyVariable, sipName_GBSizer, &methods_wxGBSizerItem[1], &methods_wxGBSizerItem[5], SIP_NULLPTR, SIP_NULLPTR},
577 };
578
579 PyDoc_STRVAR(doc_wxGBSizerItem, "GBSizerItem(width, height, pos, span=DefaultSpan, flag=0, border=0, userData=None)\n"
580 "GBSizerItem(window, pos, span=DefaultSpan, flag=0, border=0, userData=None)\n"
581 "GBSizerItem(sizer, pos, span=DefaultSpan, flag=0, border=0, userData=None)\n"
582 "\n"
583 "The wxGBSizerItem class is used by the wxGridBagSizer for tracking the\n"
584 "items in the sizer.");
585
586
587 sipClassTypeDef sipTypeDef__core_wxGBSizerItem = {
588 {
589 -1,
590 SIP_NULLPTR,
591 SIP_NULLPTR,
592 SIP_TYPE_SCC|SIP_TYPE_CLASS,
593 sipNameNr_wxGBSizerItem,
594 {SIP_NULLPTR},
595 SIP_NULLPTR
596 },
597 {
598 sipNameNr_GBSizerItem,
599 {0, 0, 1},
600 8, methods_wxGBSizerItem,
601 0, SIP_NULLPTR,
602 3, variables_wxGBSizerItem,
603 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
604 },
605 doc_wxGBSizerItem,
606 -1,
607 -1,
608 supers_wxGBSizerItem,
609 SIP_NULLPTR,
610 init_type_wxGBSizerItem,
611 SIP_NULLPTR,
612 SIP_NULLPTR,
613 #if PY_MAJOR_VERSION >= 3
614 SIP_NULLPTR,
615 SIP_NULLPTR,
616 #else
617 SIP_NULLPTR,
618 SIP_NULLPTR,
619 SIP_NULLPTR,
620 SIP_NULLPTR,
621 #endif
622 dealloc_wxGBSizerItem,
623 SIP_NULLPTR,
624 SIP_NULLPTR,
625 SIP_NULLPTR,
626 release_wxGBSizerItem,
627 cast_wxGBSizerItem,
628 SIP_NULLPTR,
629 SIP_NULLPTR,
630 SIP_NULLPTR,
631 SIP_NULLPTR,
632 SIP_NULLPTR,
633 SIP_NULLPTR
634 };
635