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/layout.h>
13
14 #include <wx/window.h>
15 #include <wx/layout.h>
16 #include <wx/object.h>
17 #include <wx/object.h>
18 #include <wx/object.h>
_wxIndividualLayoutConstraint_GetOtherWindow(wxIndividualLayoutConstraint * self)19 wxWindow * _wxIndividualLayoutConstraint_GetOtherWindow(wxIndividualLayoutConstraint* self)
20 {
21 return (wxWindow*)self->GetOtherWindow();
22 }
23
24
25 class sipwxIndividualLayoutConstraint : public ::wxIndividualLayoutConstraint
26 {
27 public:
28 sipwxIndividualLayoutConstraint();
29 sipwxIndividualLayoutConstraint(const ::wxIndividualLayoutConstraint&);
30 ~sipwxIndividualLayoutConstraint();
31
32 public:
33 sipSimpleWrapper *sipPySelf;
34
35 private:
36 sipwxIndividualLayoutConstraint(const sipwxIndividualLayoutConstraint &);
37 sipwxIndividualLayoutConstraint &operator = (const sipwxIndividualLayoutConstraint &);
38 };
39
sipwxIndividualLayoutConstraint()40 sipwxIndividualLayoutConstraint::sipwxIndividualLayoutConstraint(): ::wxIndividualLayoutConstraint(), sipPySelf(SIP_NULLPTR)
41 {
42 }
43
sipwxIndividualLayoutConstraint(const::wxIndividualLayoutConstraint & a0)44 sipwxIndividualLayoutConstraint::sipwxIndividualLayoutConstraint(const ::wxIndividualLayoutConstraint& a0): ::wxIndividualLayoutConstraint(a0), sipPySelf(SIP_NULLPTR)
45 {
46 }
47
~sipwxIndividualLayoutConstraint()48 sipwxIndividualLayoutConstraint::~sipwxIndividualLayoutConstraint()
49 {
50 sipInstanceDestroyedEx(&sipPySelf);
51 }
52
53
54 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_Set, "Set(rel, otherW, otherE, val=0, margin=LAYOUT_DEFAULT_MARGIN)");
55
56 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_Set(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_Set(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)57 static PyObject *meth_wxIndividualLayoutConstraint_Set(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
58 {
59 PyObject *sipParseErr = SIP_NULLPTR;
60
61 {
62 ::wxRelationship rel;
63 ::wxWindow* otherW;
64 ::wxEdge otherE;
65 int val = 0;
66 int margin = wxLAYOUT_DEFAULT_MARGIN;
67 ::wxIndividualLayoutConstraint *sipCpp;
68
69 static const char *sipKwdList[] = {
70 sipName_rel,
71 sipName_otherW,
72 sipName_otherE,
73 sipName_val,
74 sipName_margin,
75 };
76
77 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BEJ8E|ii", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxRelationship, &rel, sipType_wxWindow, &otherW, sipType_wxEdge, &otherE, &val, &margin))
78 {
79 PyErr_Clear();
80
81 Py_BEGIN_ALLOW_THREADS
82 sipCpp->Set(rel,otherW,otherE,val,margin);
83 Py_END_ALLOW_THREADS
84
85 if (PyErr_Occurred())
86 return 0;
87
88 Py_INCREF(Py_None);
89 return Py_None;
90 }
91 }
92
93 /* Raise an exception if the arguments couldn't be parsed. */
94 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_Set, SIP_NULLPTR);
95
96 return SIP_NULLPTR;
97 }
98
99
100 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_LeftOf, "LeftOf(sibling, margin=LAYOUT_DEFAULT_MARGIN)");
101
102 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_LeftOf(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_LeftOf(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)103 static PyObject *meth_wxIndividualLayoutConstraint_LeftOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
104 {
105 PyObject *sipParseErr = SIP_NULLPTR;
106
107 {
108 ::wxWindow* sibling;
109 int margin = wxLAYOUT_DEFAULT_MARGIN;
110 ::wxIndividualLayoutConstraint *sipCpp;
111
112 static const char *sipKwdList[] = {
113 sipName_sibling,
114 sipName_margin,
115 };
116
117 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8|i", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxWindow, &sibling, &margin))
118 {
119 PyErr_Clear();
120
121 Py_BEGIN_ALLOW_THREADS
122 sipCpp->LeftOf(sibling,margin);
123 Py_END_ALLOW_THREADS
124
125 if (PyErr_Occurred())
126 return 0;
127
128 Py_INCREF(Py_None);
129 return Py_None;
130 }
131 }
132
133 /* Raise an exception if the arguments couldn't be parsed. */
134 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_LeftOf, SIP_NULLPTR);
135
136 return SIP_NULLPTR;
137 }
138
139
140 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_RightOf, "RightOf(sibling, margin=LAYOUT_DEFAULT_MARGIN)");
141
142 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_RightOf(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_RightOf(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)143 static PyObject *meth_wxIndividualLayoutConstraint_RightOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
144 {
145 PyObject *sipParseErr = SIP_NULLPTR;
146
147 {
148 ::wxWindow* sibling;
149 int margin = wxLAYOUT_DEFAULT_MARGIN;
150 ::wxIndividualLayoutConstraint *sipCpp;
151
152 static const char *sipKwdList[] = {
153 sipName_sibling,
154 sipName_margin,
155 };
156
157 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8|i", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxWindow, &sibling, &margin))
158 {
159 PyErr_Clear();
160
161 Py_BEGIN_ALLOW_THREADS
162 sipCpp->RightOf(sibling,margin);
163 Py_END_ALLOW_THREADS
164
165 if (PyErr_Occurred())
166 return 0;
167
168 Py_INCREF(Py_None);
169 return Py_None;
170 }
171 }
172
173 /* Raise an exception if the arguments couldn't be parsed. */
174 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_RightOf, SIP_NULLPTR);
175
176 return SIP_NULLPTR;
177 }
178
179
180 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_Above, "Above(sibling, margin=LAYOUT_DEFAULT_MARGIN)");
181
182 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_Above(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_Above(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)183 static PyObject *meth_wxIndividualLayoutConstraint_Above(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
184 {
185 PyObject *sipParseErr = SIP_NULLPTR;
186
187 {
188 ::wxWindow* sibling;
189 int margin = wxLAYOUT_DEFAULT_MARGIN;
190 ::wxIndividualLayoutConstraint *sipCpp;
191
192 static const char *sipKwdList[] = {
193 sipName_sibling,
194 sipName_margin,
195 };
196
197 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8|i", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxWindow, &sibling, &margin))
198 {
199 PyErr_Clear();
200
201 Py_BEGIN_ALLOW_THREADS
202 sipCpp->Above(sibling,margin);
203 Py_END_ALLOW_THREADS
204
205 if (PyErr_Occurred())
206 return 0;
207
208 Py_INCREF(Py_None);
209 return Py_None;
210 }
211 }
212
213 /* Raise an exception if the arguments couldn't be parsed. */
214 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_Above, SIP_NULLPTR);
215
216 return SIP_NULLPTR;
217 }
218
219
220 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_Below, "Below(sibling, margin=LAYOUT_DEFAULT_MARGIN)");
221
222 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_Below(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_Below(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)223 static PyObject *meth_wxIndividualLayoutConstraint_Below(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
224 {
225 PyObject *sipParseErr = SIP_NULLPTR;
226
227 {
228 ::wxWindow* sibling;
229 int margin = wxLAYOUT_DEFAULT_MARGIN;
230 ::wxIndividualLayoutConstraint *sipCpp;
231
232 static const char *sipKwdList[] = {
233 sipName_sibling,
234 sipName_margin,
235 };
236
237 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8|i", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxWindow, &sibling, &margin))
238 {
239 PyErr_Clear();
240
241 Py_BEGIN_ALLOW_THREADS
242 sipCpp->Below(sibling,margin);
243 Py_END_ALLOW_THREADS
244
245 if (PyErr_Occurred())
246 return 0;
247
248 Py_INCREF(Py_None);
249 return Py_None;
250 }
251 }
252
253 /* Raise an exception if the arguments couldn't be parsed. */
254 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_Below, SIP_NULLPTR);
255
256 return SIP_NULLPTR;
257 }
258
259
260 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_SameAs, "SameAs(otherW, edge, margin=LAYOUT_DEFAULT_MARGIN)");
261
262 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_SameAs(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_SameAs(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)263 static PyObject *meth_wxIndividualLayoutConstraint_SameAs(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
264 {
265 PyObject *sipParseErr = SIP_NULLPTR;
266
267 {
268 ::wxWindow* otherW;
269 ::wxEdge edge;
270 int margin = wxLAYOUT_DEFAULT_MARGIN;
271 ::wxIndividualLayoutConstraint *sipCpp;
272
273 static const char *sipKwdList[] = {
274 sipName_otherW,
275 sipName_edge,
276 sipName_margin,
277 };
278
279 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8E|i", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxWindow, &otherW, sipType_wxEdge, &edge, &margin))
280 {
281 PyErr_Clear();
282
283 Py_BEGIN_ALLOW_THREADS
284 sipCpp->SameAs(otherW,edge,margin);
285 Py_END_ALLOW_THREADS
286
287 if (PyErr_Occurred())
288 return 0;
289
290 Py_INCREF(Py_None);
291 return Py_None;
292 }
293 }
294
295 /* Raise an exception if the arguments couldn't be parsed. */
296 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_SameAs, SIP_NULLPTR);
297
298 return SIP_NULLPTR;
299 }
300
301
302 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_PercentOf, "PercentOf(otherW, wh, per)");
303
304 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_PercentOf(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_PercentOf(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)305 static PyObject *meth_wxIndividualLayoutConstraint_PercentOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
306 {
307 PyObject *sipParseErr = SIP_NULLPTR;
308
309 {
310 ::wxWindow* otherW;
311 ::wxEdge wh;
312 int per;
313 ::wxIndividualLayoutConstraint *sipCpp;
314
315 static const char *sipKwdList[] = {
316 sipName_otherW,
317 sipName_wh,
318 sipName_per,
319 };
320
321 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8Ei", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxWindow, &otherW, sipType_wxEdge, &wh, &per))
322 {
323 PyErr_Clear();
324
325 Py_BEGIN_ALLOW_THREADS
326 sipCpp->PercentOf(otherW,wh,per);
327 Py_END_ALLOW_THREADS
328
329 if (PyErr_Occurred())
330 return 0;
331
332 Py_INCREF(Py_None);
333 return Py_None;
334 }
335 }
336
337 /* Raise an exception if the arguments couldn't be parsed. */
338 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_PercentOf, SIP_NULLPTR);
339
340 return SIP_NULLPTR;
341 }
342
343
344 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_Absolute, "Absolute(val)");
345
346 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_Absolute(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_Absolute(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)347 static PyObject *meth_wxIndividualLayoutConstraint_Absolute(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
348 {
349 PyObject *sipParseErr = SIP_NULLPTR;
350
351 {
352 int val;
353 ::wxIndividualLayoutConstraint *sipCpp;
354
355 static const char *sipKwdList[] = {
356 sipName_val,
357 };
358
359 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, &val))
360 {
361 PyErr_Clear();
362
363 Py_BEGIN_ALLOW_THREADS
364 sipCpp->Absolute(val);
365 Py_END_ALLOW_THREADS
366
367 if (PyErr_Occurred())
368 return 0;
369
370 Py_INCREF(Py_None);
371 return Py_None;
372 }
373 }
374
375 /* Raise an exception if the arguments couldn't be parsed. */
376 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_Absolute, SIP_NULLPTR);
377
378 return SIP_NULLPTR;
379 }
380
381
382 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_Unconstrained, "Unconstrained()");
383
384 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_Unconstrained(PyObject * sipSelf,PyObject * sipArgs)385 static PyObject *meth_wxIndividualLayoutConstraint_Unconstrained(PyObject *sipSelf, PyObject *sipArgs)
386 {
387 PyObject *sipParseErr = SIP_NULLPTR;
388
389 {
390 ::wxIndividualLayoutConstraint *sipCpp;
391
392 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp))
393 {
394 PyErr_Clear();
395
396 Py_BEGIN_ALLOW_THREADS
397 sipCpp->Unconstrained();
398 Py_END_ALLOW_THREADS
399
400 if (PyErr_Occurred())
401 return 0;
402
403 Py_INCREF(Py_None);
404 return Py_None;
405 }
406 }
407
408 /* Raise an exception if the arguments couldn't be parsed. */
409 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_Unconstrained, SIP_NULLPTR);
410
411 return SIP_NULLPTR;
412 }
413
414
415 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_AsIs, "AsIs()");
416
417 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_AsIs(PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_AsIs(PyObject * sipSelf,PyObject * sipArgs)418 static PyObject *meth_wxIndividualLayoutConstraint_AsIs(PyObject *sipSelf, PyObject *sipArgs)
419 {
420 PyObject *sipParseErr = SIP_NULLPTR;
421
422 {
423 ::wxIndividualLayoutConstraint *sipCpp;
424
425 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp))
426 {
427 PyErr_Clear();
428
429 Py_BEGIN_ALLOW_THREADS
430 sipCpp->AsIs();
431 Py_END_ALLOW_THREADS
432
433 if (PyErr_Occurred())
434 return 0;
435
436 Py_INCREF(Py_None);
437 return Py_None;
438 }
439 }
440
441 /* Raise an exception if the arguments couldn't be parsed. */
442 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_AsIs, SIP_NULLPTR);
443
444 return SIP_NULLPTR;
445 }
446
447
448 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_GetOtherWindow, "GetOtherWindow() -> Window");
449
450 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_GetOtherWindow(PyObject * sipSelf,PyObject * sipArgs)451 static PyObject *meth_wxIndividualLayoutConstraint_GetOtherWindow(PyObject *sipSelf, PyObject *sipArgs)
452 {
453 PyObject *sipParseErr = SIP_NULLPTR;
454
455 {
456 ::wxIndividualLayoutConstraint *sipCpp;
457
458 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp))
459 {
460 ::wxWindow*sipRes = 0;
461 int sipIsErr = 0;
462
463 PyErr_Clear();
464 Py_BEGIN_ALLOW_THREADS
465 sipRes = _wxIndividualLayoutConstraint_GetOtherWindow(sipCpp);
466 Py_END_ALLOW_THREADS
467 if (PyErr_Occurred()) sipIsErr = 1;
468
469 if (sipIsErr)
470 return 0;
471
472 return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
473 }
474 }
475
476 /* Raise an exception if the arguments couldn't be parsed. */
477 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_GetOtherWindow, SIP_NULLPTR);
478
479 return SIP_NULLPTR;
480 }
481
482
483 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_GetMyEdge, "GetMyEdge() -> Edge");
484
485 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_GetMyEdge(PyObject * sipSelf,PyObject * sipArgs)486 static PyObject *meth_wxIndividualLayoutConstraint_GetMyEdge(PyObject *sipSelf, PyObject *sipArgs)
487 {
488 PyObject *sipParseErr = SIP_NULLPTR;
489
490 {
491 const ::wxIndividualLayoutConstraint *sipCpp;
492
493 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp))
494 {
495 ::wxEdge sipRes;
496
497 PyErr_Clear();
498
499 Py_BEGIN_ALLOW_THREADS
500 sipRes = sipCpp->GetMyEdge();
501 Py_END_ALLOW_THREADS
502
503 if (PyErr_Occurred())
504 return 0;
505
506 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxEdge);
507 }
508 }
509
510 /* Raise an exception if the arguments couldn't be parsed. */
511 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_GetMyEdge, SIP_NULLPTR);
512
513 return SIP_NULLPTR;
514 }
515
516
517 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_SetEdge, "SetEdge(which)");
518
519 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_SetEdge(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_SetEdge(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)520 static PyObject *meth_wxIndividualLayoutConstraint_SetEdge(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
521 {
522 PyObject *sipParseErr = SIP_NULLPTR;
523
524 {
525 ::wxEdge which;
526 ::wxIndividualLayoutConstraint *sipCpp;
527
528 static const char *sipKwdList[] = {
529 sipName_which,
530 };
531
532 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxEdge, &which))
533 {
534 PyErr_Clear();
535
536 Py_BEGIN_ALLOW_THREADS
537 sipCpp->SetEdge(which);
538 Py_END_ALLOW_THREADS
539
540 if (PyErr_Occurred())
541 return 0;
542
543 Py_INCREF(Py_None);
544 return Py_None;
545 }
546 }
547
548 /* Raise an exception if the arguments couldn't be parsed. */
549 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_SetEdge, SIP_NULLPTR);
550
551 return SIP_NULLPTR;
552 }
553
554
555 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_SetValue, "SetValue(v)");
556
557 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_SetValue(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_SetValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)558 static PyObject *meth_wxIndividualLayoutConstraint_SetValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
559 {
560 PyObject *sipParseErr = SIP_NULLPTR;
561
562 {
563 int v;
564 ::wxIndividualLayoutConstraint *sipCpp;
565
566 static const char *sipKwdList[] = {
567 sipName_v,
568 };
569
570 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, &v))
571 {
572 PyErr_Clear();
573
574 Py_BEGIN_ALLOW_THREADS
575 sipCpp->SetValue(v);
576 Py_END_ALLOW_THREADS
577
578 if (PyErr_Occurred())
579 return 0;
580
581 Py_INCREF(Py_None);
582 return Py_None;
583 }
584 }
585
586 /* Raise an exception if the arguments couldn't be parsed. */
587 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_SetValue, SIP_NULLPTR);
588
589 return SIP_NULLPTR;
590 }
591
592
593 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_GetMargin, "GetMargin() -> int");
594
595 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_GetMargin(PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_GetMargin(PyObject * sipSelf,PyObject * sipArgs)596 static PyObject *meth_wxIndividualLayoutConstraint_GetMargin(PyObject *sipSelf, PyObject *sipArgs)
597 {
598 PyObject *sipParseErr = SIP_NULLPTR;
599
600 {
601 ::wxIndividualLayoutConstraint *sipCpp;
602
603 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp))
604 {
605 int sipRes;
606
607 PyErr_Clear();
608
609 Py_BEGIN_ALLOW_THREADS
610 sipRes = sipCpp->GetMargin();
611 Py_END_ALLOW_THREADS
612
613 if (PyErr_Occurred())
614 return 0;
615
616 return SIPLong_FromLong(sipRes);
617 }
618 }
619
620 /* Raise an exception if the arguments couldn't be parsed. */
621 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_GetMargin, SIP_NULLPTR);
622
623 return SIP_NULLPTR;
624 }
625
626
627 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_SetMargin, "SetMargin(m)");
628
629 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_SetMargin(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_SetMargin(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)630 static PyObject *meth_wxIndividualLayoutConstraint_SetMargin(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
631 {
632 PyObject *sipParseErr = SIP_NULLPTR;
633
634 {
635 int m;
636 ::wxIndividualLayoutConstraint *sipCpp;
637
638 static const char *sipKwdList[] = {
639 sipName_m,
640 };
641
642 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, &m))
643 {
644 PyErr_Clear();
645
646 Py_BEGIN_ALLOW_THREADS
647 sipCpp->SetMargin(m);
648 Py_END_ALLOW_THREADS
649
650 if (PyErr_Occurred())
651 return 0;
652
653 Py_INCREF(Py_None);
654 return Py_None;
655 }
656 }
657
658 /* Raise an exception if the arguments couldn't be parsed. */
659 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_SetMargin, SIP_NULLPTR);
660
661 return SIP_NULLPTR;
662 }
663
664
665 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_GetValue, "GetValue() -> int");
666
667 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_GetValue(PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_GetValue(PyObject * sipSelf,PyObject * sipArgs)668 static PyObject *meth_wxIndividualLayoutConstraint_GetValue(PyObject *sipSelf, PyObject *sipArgs)
669 {
670 PyObject *sipParseErr = SIP_NULLPTR;
671
672 {
673 const ::wxIndividualLayoutConstraint *sipCpp;
674
675 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp))
676 {
677 int sipRes;
678
679 PyErr_Clear();
680
681 Py_BEGIN_ALLOW_THREADS
682 sipRes = sipCpp->GetValue();
683 Py_END_ALLOW_THREADS
684
685 if (PyErr_Occurred())
686 return 0;
687
688 return SIPLong_FromLong(sipRes);
689 }
690 }
691
692 /* Raise an exception if the arguments couldn't be parsed. */
693 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_GetValue, SIP_NULLPTR);
694
695 return SIP_NULLPTR;
696 }
697
698
699 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_GetPercent, "GetPercent() -> int");
700
701 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_GetPercent(PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_GetPercent(PyObject * sipSelf,PyObject * sipArgs)702 static PyObject *meth_wxIndividualLayoutConstraint_GetPercent(PyObject *sipSelf, PyObject *sipArgs)
703 {
704 PyObject *sipParseErr = SIP_NULLPTR;
705
706 {
707 const ::wxIndividualLayoutConstraint *sipCpp;
708
709 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp))
710 {
711 int sipRes;
712
713 PyErr_Clear();
714
715 Py_BEGIN_ALLOW_THREADS
716 sipRes = sipCpp->GetPercent();
717 Py_END_ALLOW_THREADS
718
719 if (PyErr_Occurred())
720 return 0;
721
722 return SIPLong_FromLong(sipRes);
723 }
724 }
725
726 /* Raise an exception if the arguments couldn't be parsed. */
727 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_GetPercent, SIP_NULLPTR);
728
729 return SIP_NULLPTR;
730 }
731
732
733 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_GetOtherEdge, "GetOtherEdge() -> int");
734
735 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_GetOtherEdge(PyObject * sipSelf,PyObject * sipArgs)736 static PyObject *meth_wxIndividualLayoutConstraint_GetOtherEdge(PyObject *sipSelf, PyObject *sipArgs)
737 {
738 PyObject *sipParseErr = SIP_NULLPTR;
739
740 {
741 const ::wxIndividualLayoutConstraint *sipCpp;
742
743 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp))
744 {
745 int sipRes;
746
747 PyErr_Clear();
748
749 Py_BEGIN_ALLOW_THREADS
750 sipRes = sipCpp->GetOtherEdge();
751 Py_END_ALLOW_THREADS
752
753 if (PyErr_Occurred())
754 return 0;
755
756 return SIPLong_FromLong(sipRes);
757 }
758 }
759
760 /* Raise an exception if the arguments couldn't be parsed. */
761 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_GetOtherEdge, SIP_NULLPTR);
762
763 return SIP_NULLPTR;
764 }
765
766
767 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_GetDone, "GetDone() -> bool");
768
769 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_GetDone(PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_GetDone(PyObject * sipSelf,PyObject * sipArgs)770 static PyObject *meth_wxIndividualLayoutConstraint_GetDone(PyObject *sipSelf, PyObject *sipArgs)
771 {
772 PyObject *sipParseErr = SIP_NULLPTR;
773
774 {
775 const ::wxIndividualLayoutConstraint *sipCpp;
776
777 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp))
778 {
779 bool sipRes;
780
781 PyErr_Clear();
782
783 Py_BEGIN_ALLOW_THREADS
784 sipRes = sipCpp->GetDone();
785 Py_END_ALLOW_THREADS
786
787 if (PyErr_Occurred())
788 return 0;
789
790 return PyBool_FromLong(sipRes);
791 }
792 }
793
794 /* Raise an exception if the arguments couldn't be parsed. */
795 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_GetDone, SIP_NULLPTR);
796
797 return SIP_NULLPTR;
798 }
799
800
801 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_SetDone, "SetDone(d)");
802
803 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_SetDone(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_SetDone(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)804 static PyObject *meth_wxIndividualLayoutConstraint_SetDone(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
805 {
806 PyObject *sipParseErr = SIP_NULLPTR;
807
808 {
809 bool d;
810 ::wxIndividualLayoutConstraint *sipCpp;
811
812 static const char *sipKwdList[] = {
813 sipName_d,
814 };
815
816 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, &d))
817 {
818 PyErr_Clear();
819
820 Py_BEGIN_ALLOW_THREADS
821 sipCpp->SetDone(d);
822 Py_END_ALLOW_THREADS
823
824 if (PyErr_Occurred())
825 return 0;
826
827 Py_INCREF(Py_None);
828 return Py_None;
829 }
830 }
831
832 /* Raise an exception if the arguments couldn't be parsed. */
833 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_SetDone, SIP_NULLPTR);
834
835 return SIP_NULLPTR;
836 }
837
838
839 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_GetRelationship, "GetRelationship() -> Relationship");
840
841 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_GetRelationship(PyObject * sipSelf,PyObject * sipArgs)842 static PyObject *meth_wxIndividualLayoutConstraint_GetRelationship(PyObject *sipSelf, PyObject *sipArgs)
843 {
844 PyObject *sipParseErr = SIP_NULLPTR;
845
846 {
847 ::wxIndividualLayoutConstraint *sipCpp;
848
849 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp))
850 {
851 ::wxRelationship sipRes;
852
853 PyErr_Clear();
854
855 Py_BEGIN_ALLOW_THREADS
856 sipRes = sipCpp->GetRelationship();
857 Py_END_ALLOW_THREADS
858
859 if (PyErr_Occurred())
860 return 0;
861
862 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxRelationship);
863 }
864 }
865
866 /* Raise an exception if the arguments couldn't be parsed. */
867 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_GetRelationship, SIP_NULLPTR);
868
869 return SIP_NULLPTR;
870 }
871
872
873 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_SetRelationship, "SetRelationship(r)");
874
875 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_SetRelationship(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)876 static PyObject *meth_wxIndividualLayoutConstraint_SetRelationship(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
877 {
878 PyObject *sipParseErr = SIP_NULLPTR;
879
880 {
881 ::wxRelationship r;
882 ::wxIndividualLayoutConstraint *sipCpp;
883
884 static const char *sipKwdList[] = {
885 sipName_r,
886 };
887
888 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxRelationship, &r))
889 {
890 PyErr_Clear();
891
892 Py_BEGIN_ALLOW_THREADS
893 sipCpp->SetRelationship(r);
894 Py_END_ALLOW_THREADS
895
896 if (PyErr_Occurred())
897 return 0;
898
899 Py_INCREF(Py_None);
900 return Py_None;
901 }
902 }
903
904 /* Raise an exception if the arguments couldn't be parsed. */
905 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_SetRelationship, SIP_NULLPTR);
906
907 return SIP_NULLPTR;
908 }
909
910
911 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_ResetIfWin, "ResetIfWin(otherW) -> bool");
912
913 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_ResetIfWin(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)914 static PyObject *meth_wxIndividualLayoutConstraint_ResetIfWin(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
915 {
916 PyObject *sipParseErr = SIP_NULLPTR;
917
918 {
919 ::wxWindow* otherW;
920 ::wxIndividualLayoutConstraint *sipCpp;
921
922 static const char *sipKwdList[] = {
923 sipName_otherW,
924 };
925
926 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxWindow, &otherW))
927 {
928 bool sipRes;
929
930 PyErr_Clear();
931
932 Py_BEGIN_ALLOW_THREADS
933 sipRes = sipCpp->ResetIfWin(otherW);
934 Py_END_ALLOW_THREADS
935
936 if (PyErr_Occurred())
937 return 0;
938
939 return PyBool_FromLong(sipRes);
940 }
941 }
942
943 /* Raise an exception if the arguments couldn't be parsed. */
944 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_ResetIfWin, SIP_NULLPTR);
945
946 return SIP_NULLPTR;
947 }
948
949
950 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_SatisfyConstraint, "SatisfyConstraint(constraints, win) -> bool");
951
952 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_SatisfyConstraint(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)953 static PyObject *meth_wxIndividualLayoutConstraint_SatisfyConstraint(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
954 {
955 PyObject *sipParseErr = SIP_NULLPTR;
956
957 {
958 ::wxLayoutConstraints* constraints;
959 ::wxWindow* win;
960 ::wxIndividualLayoutConstraint *sipCpp;
961
962 static const char *sipKwdList[] = {
963 sipName_constraints,
964 sipName_win,
965 };
966
967 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8J8", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxLayoutConstraints, &constraints, sipType_wxWindow, &win))
968 {
969 bool sipRes;
970
971 PyErr_Clear();
972
973 Py_BEGIN_ALLOW_THREADS
974 sipRes = sipCpp->SatisfyConstraint(constraints,win);
975 Py_END_ALLOW_THREADS
976
977 if (PyErr_Occurred())
978 return 0;
979
980 return PyBool_FromLong(sipRes);
981 }
982 }
983
984 /* Raise an exception if the arguments couldn't be parsed. */
985 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_SatisfyConstraint, SIP_NULLPTR);
986
987 return SIP_NULLPTR;
988 }
989
990
991 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint_GetEdge, "GetEdge(which, thisWin, other) -> int");
992
993 extern "C" {static PyObject *meth_wxIndividualLayoutConstraint_GetEdge(PyObject *, PyObject *, PyObject *);}
meth_wxIndividualLayoutConstraint_GetEdge(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)994 static PyObject *meth_wxIndividualLayoutConstraint_GetEdge(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
995 {
996 PyObject *sipParseErr = SIP_NULLPTR;
997
998 {
999 ::wxEdge which;
1000 ::wxWindow* thisWin;
1001 ::wxWindow* other;
1002 const ::wxIndividualLayoutConstraint *sipCpp;
1003
1004 static const char *sipKwdList[] = {
1005 sipName_which,
1006 sipName_thisWin,
1007 sipName_other,
1008 };
1009
1010 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BEJ8J8", &sipSelf, sipType_wxIndividualLayoutConstraint, &sipCpp, sipType_wxEdge, &which, sipType_wxWindow, &thisWin, sipType_wxWindow, &other))
1011 {
1012 int sipRes;
1013
1014 PyErr_Clear();
1015
1016 Py_BEGIN_ALLOW_THREADS
1017 sipRes = sipCpp->GetEdge(which,thisWin,other);
1018 Py_END_ALLOW_THREADS
1019
1020 if (PyErr_Occurred())
1021 return 0;
1022
1023 return SIPLong_FromLong(sipRes);
1024 }
1025 }
1026
1027 /* Raise an exception if the arguments couldn't be parsed. */
1028 sipNoMethod(sipParseErr, sipName_IndividualLayoutConstraint, sipName_GetEdge, SIP_NULLPTR);
1029
1030 return SIP_NULLPTR;
1031 }
1032
1033
1034 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
1035 extern "C" {static void *cast_wxIndividualLayoutConstraint(void *, const sipTypeDef *);}
cast_wxIndividualLayoutConstraint(void * sipCppV,const sipTypeDef * targetType)1036 static void *cast_wxIndividualLayoutConstraint(void *sipCppV, const sipTypeDef *targetType)
1037 {
1038 ::wxIndividualLayoutConstraint *sipCpp = reinterpret_cast< ::wxIndividualLayoutConstraint *>(sipCppV);
1039
1040 if (targetType == sipType_wxObject)
1041 return static_cast< ::wxObject *>(sipCpp);
1042
1043 return sipCppV;
1044 }
1045
1046
1047 /* Call the instance's destructor. */
1048 extern "C" {static void release_wxIndividualLayoutConstraint(void *, int);}
release_wxIndividualLayoutConstraint(void * sipCppV,int sipState)1049 static void release_wxIndividualLayoutConstraint(void *sipCppV, int sipState)
1050 {
1051 Py_BEGIN_ALLOW_THREADS
1052
1053 if (sipState & SIP_DERIVED_CLASS)
1054 delete reinterpret_cast<sipwxIndividualLayoutConstraint *>(sipCppV);
1055 else
1056 delete reinterpret_cast< ::wxIndividualLayoutConstraint *>(sipCppV);
1057
1058 Py_END_ALLOW_THREADS
1059 }
1060
1061
1062 extern "C" {static void assign_wxIndividualLayoutConstraint(void *, SIP_SSIZE_T, void *);}
assign_wxIndividualLayoutConstraint(void * sipDst,SIP_SSIZE_T sipDstIdx,void * sipSrc)1063 static void assign_wxIndividualLayoutConstraint(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
1064 {
1065 reinterpret_cast< ::wxIndividualLayoutConstraint *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::wxIndividualLayoutConstraint *>(sipSrc);
1066 }
1067
1068
1069 extern "C" {static void *array_wxIndividualLayoutConstraint(SIP_SSIZE_T);}
array_wxIndividualLayoutConstraint(SIP_SSIZE_T sipNrElem)1070 static void *array_wxIndividualLayoutConstraint(SIP_SSIZE_T sipNrElem)
1071 {
1072 return new ::wxIndividualLayoutConstraint[sipNrElem];
1073 }
1074
1075
1076 extern "C" {static void *copy_wxIndividualLayoutConstraint(const void *, SIP_SSIZE_T);}
copy_wxIndividualLayoutConstraint(const void * sipSrc,SIP_SSIZE_T sipSrcIdx)1077 static void *copy_wxIndividualLayoutConstraint(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
1078 {
1079 return new ::wxIndividualLayoutConstraint(reinterpret_cast<const ::wxIndividualLayoutConstraint *>(sipSrc)[sipSrcIdx]);
1080 }
1081
1082
1083 extern "C" {static void dealloc_wxIndividualLayoutConstraint(sipSimpleWrapper *);}
dealloc_wxIndividualLayoutConstraint(sipSimpleWrapper * sipSelf)1084 static void dealloc_wxIndividualLayoutConstraint(sipSimpleWrapper *sipSelf)
1085 {
1086 if (sipIsDerivedClass(sipSelf))
1087 reinterpret_cast<sipwxIndividualLayoutConstraint *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
1088
1089 if (sipIsOwnedByPython(sipSelf))
1090 {
1091 release_wxIndividualLayoutConstraint(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
1092 }
1093 }
1094
1095
1096 extern "C" {static void *init_type_wxIndividualLayoutConstraint(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxIndividualLayoutConstraint(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)1097 static void *init_type_wxIndividualLayoutConstraint(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
1098 {
1099 sipwxIndividualLayoutConstraint *sipCpp = SIP_NULLPTR;
1100
1101 {
1102 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
1103 {
1104 PyErr_Clear();
1105
1106 Py_BEGIN_ALLOW_THREADS
1107 sipCpp = new sipwxIndividualLayoutConstraint();
1108 Py_END_ALLOW_THREADS
1109
1110 if (PyErr_Occurred())
1111 {
1112 delete sipCpp;
1113 return SIP_NULLPTR;
1114 }
1115
1116 sipCpp->sipPySelf = sipSelf;
1117
1118 return sipCpp;
1119 }
1120 }
1121
1122 {
1123 const ::wxIndividualLayoutConstraint* a0;
1124
1125 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_wxIndividualLayoutConstraint, &a0))
1126 {
1127 Py_BEGIN_ALLOW_THREADS
1128 sipCpp = new sipwxIndividualLayoutConstraint(*a0);
1129 Py_END_ALLOW_THREADS
1130
1131 sipCpp->sipPySelf = sipSelf;
1132
1133 return sipCpp;
1134 }
1135 }
1136
1137 return SIP_NULLPTR;
1138 }
1139
1140
1141 /* Define this type's super-types. */
1142 static sipEncodedTypeDef supers_wxIndividualLayoutConstraint[] = {{358, 255, 1}};
1143
1144
1145 static PyMethodDef methods_wxIndividualLayoutConstraint[] = {
1146 {SIP_MLNAME_CAST(sipName_Above), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_Above), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_Above)},
1147 {SIP_MLNAME_CAST(sipName_Absolute), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_Absolute), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_Absolute)},
1148 {SIP_MLNAME_CAST(sipName_AsIs), meth_wxIndividualLayoutConstraint_AsIs, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_AsIs)},
1149 {SIP_MLNAME_CAST(sipName_Below), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_Below), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_Below)},
1150 {SIP_MLNAME_CAST(sipName_GetDone), meth_wxIndividualLayoutConstraint_GetDone, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_GetDone)},
1151 {SIP_MLNAME_CAST(sipName_GetEdge), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_GetEdge), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_GetEdge)},
1152 {SIP_MLNAME_CAST(sipName_GetMargin), meth_wxIndividualLayoutConstraint_GetMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_GetMargin)},
1153 {SIP_MLNAME_CAST(sipName_GetMyEdge), meth_wxIndividualLayoutConstraint_GetMyEdge, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_GetMyEdge)},
1154 {SIP_MLNAME_CAST(sipName_GetOtherEdge), meth_wxIndividualLayoutConstraint_GetOtherEdge, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_GetOtherEdge)},
1155 {SIP_MLNAME_CAST(sipName_GetOtherWindow), meth_wxIndividualLayoutConstraint_GetOtherWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_GetOtherWindow)},
1156 {SIP_MLNAME_CAST(sipName_GetPercent), meth_wxIndividualLayoutConstraint_GetPercent, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_GetPercent)},
1157 {SIP_MLNAME_CAST(sipName_GetRelationship), meth_wxIndividualLayoutConstraint_GetRelationship, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_GetRelationship)},
1158 {SIP_MLNAME_CAST(sipName_GetValue), meth_wxIndividualLayoutConstraint_GetValue, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_GetValue)},
1159 {SIP_MLNAME_CAST(sipName_LeftOf), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_LeftOf), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_LeftOf)},
1160 {SIP_MLNAME_CAST(sipName_PercentOf), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_PercentOf), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_PercentOf)},
1161 {SIP_MLNAME_CAST(sipName_ResetIfWin), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_ResetIfWin), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_ResetIfWin)},
1162 {SIP_MLNAME_CAST(sipName_RightOf), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_RightOf), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_RightOf)},
1163 {SIP_MLNAME_CAST(sipName_SameAs), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_SameAs), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_SameAs)},
1164 {SIP_MLNAME_CAST(sipName_SatisfyConstraint), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_SatisfyConstraint), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_SatisfyConstraint)},
1165 {SIP_MLNAME_CAST(sipName_Set), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_Set), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_Set)},
1166 {SIP_MLNAME_CAST(sipName_SetDone), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_SetDone), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_SetDone)},
1167 {SIP_MLNAME_CAST(sipName_SetEdge), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_SetEdge), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_SetEdge)},
1168 {SIP_MLNAME_CAST(sipName_SetMargin), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_SetMargin), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_SetMargin)},
1169 {SIP_MLNAME_CAST(sipName_SetRelationship), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_SetRelationship), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_SetRelationship)},
1170 {SIP_MLNAME_CAST(sipName_SetValue), SIP_MLMETH_CAST(meth_wxIndividualLayoutConstraint_SetValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_SetValue)},
1171 {SIP_MLNAME_CAST(sipName_Unconstrained), meth_wxIndividualLayoutConstraint_Unconstrained, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIndividualLayoutConstraint_Unconstrained)}
1172 };
1173
1174 sipVariableDef variables_wxIndividualLayoutConstraint[] = {
1175 {PropertyVariable, sipName_Value, &methods_wxIndividualLayoutConstraint[12], &methods_wxIndividualLayoutConstraint[24], SIP_NULLPTR, SIP_NULLPTR},
1176 {PropertyVariable, sipName_Relationship, &methods_wxIndividualLayoutConstraint[11], &methods_wxIndividualLayoutConstraint[23], SIP_NULLPTR, SIP_NULLPTR},
1177 {PropertyVariable, sipName_Percent, &methods_wxIndividualLayoutConstraint[10], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1178 {PropertyVariable, sipName_OtherWindow, &methods_wxIndividualLayoutConstraint[9], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1179 {PropertyVariable, sipName_OtherEdge, &methods_wxIndividualLayoutConstraint[8], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1180 {PropertyVariable, sipName_MyEdge, &methods_wxIndividualLayoutConstraint[7], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1181 {PropertyVariable, sipName_Margin, &methods_wxIndividualLayoutConstraint[6], &methods_wxIndividualLayoutConstraint[22], SIP_NULLPTR, SIP_NULLPTR},
1182 {PropertyVariable, sipName_Done, &methods_wxIndividualLayoutConstraint[4], &methods_wxIndividualLayoutConstraint[20], SIP_NULLPTR, SIP_NULLPTR},
1183 };
1184
1185 PyDoc_STRVAR(doc_wxIndividualLayoutConstraint, "IndividualLayoutConstraint()");
1186
1187
1188 sipClassTypeDef sipTypeDef__core_wxIndividualLayoutConstraint = {
1189 {
1190 -1,
1191 SIP_NULLPTR,
1192 SIP_NULLPTR,
1193 SIP_TYPE_SCC|SIP_TYPE_CLASS,
1194 sipNameNr_wxIndividualLayoutConstraint,
1195 {SIP_NULLPTR},
1196 SIP_NULLPTR
1197 },
1198 {
1199 sipNameNr_IndividualLayoutConstraint,
1200 {0, 0, 1},
1201 26, methods_wxIndividualLayoutConstraint,
1202 0, SIP_NULLPTR,
1203 8, variables_wxIndividualLayoutConstraint,
1204 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1205 },
1206 doc_wxIndividualLayoutConstraint,
1207 -1,
1208 -1,
1209 supers_wxIndividualLayoutConstraint,
1210 SIP_NULLPTR,
1211 init_type_wxIndividualLayoutConstraint,
1212 SIP_NULLPTR,
1213 SIP_NULLPTR,
1214 #if PY_MAJOR_VERSION >= 3
1215 SIP_NULLPTR,
1216 SIP_NULLPTR,
1217 #else
1218 SIP_NULLPTR,
1219 SIP_NULLPTR,
1220 SIP_NULLPTR,
1221 SIP_NULLPTR,
1222 #endif
1223 dealloc_wxIndividualLayoutConstraint,
1224 assign_wxIndividualLayoutConstraint,
1225 array_wxIndividualLayoutConstraint,
1226 copy_wxIndividualLayoutConstraint,
1227 release_wxIndividualLayoutConstraint,
1228 cast_wxIndividualLayoutConstraint,
1229 SIP_NULLPTR,
1230 SIP_NULLPTR,
1231 SIP_NULLPTR,
1232 SIP_NULLPTR,
1233 SIP_NULLPTR,
1234 SIP_NULLPTR
1235 };
1236