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/geometry.h>
13
14 #include <wx/geometry.h>
15 #include <wx/gdicmn.h>
_wxRect2DDouble_Get(wxRect2DDouble * self)16 PyObject* _wxRect2DDouble_Get(wxRect2DDouble* self)
17 {
18 wxPyThreadBlocker blocker;
19 return sipBuildResult(0, "(dddd)",
20 self->m_x, self->m_y, self->m_width, self->m_height);
21 }
22
23
24 PyDoc_STRVAR(doc_wxRect2DDouble_GetPosition, "GetPosition() -> Point2DDouble");
25
26 extern "C" {static PyObject *meth_wxRect2DDouble_GetPosition(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetPosition(PyObject * sipSelf,PyObject * sipArgs)27 static PyObject *meth_wxRect2DDouble_GetPosition(PyObject *sipSelf, PyObject *sipArgs)
28 {
29 PyObject *sipParseErr = SIP_NULLPTR;
30
31 {
32 const ::wxRect2DDouble *sipCpp;
33
34 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
35 {
36 ::wxPoint2DDouble*sipRes;
37
38 PyErr_Clear();
39
40 Py_BEGIN_ALLOW_THREADS
41 sipRes = new ::wxPoint2DDouble(sipCpp->GetPosition());
42 Py_END_ALLOW_THREADS
43
44 if (PyErr_Occurred())
45 return 0;
46
47 return sipConvertFromNewType(sipRes,sipType_wxPoint2DDouble,SIP_NULLPTR);
48 }
49 }
50
51 /* Raise an exception if the arguments couldn't be parsed. */
52 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetPosition, SIP_NULLPTR);
53
54 return SIP_NULLPTR;
55 }
56
57
58 PyDoc_STRVAR(doc_wxRect2DDouble_GetSize, "GetSize() -> Size");
59
60 extern "C" {static PyObject *meth_wxRect2DDouble_GetSize(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetSize(PyObject * sipSelf,PyObject * sipArgs)61 static PyObject *meth_wxRect2DDouble_GetSize(PyObject *sipSelf, PyObject *sipArgs)
62 {
63 PyObject *sipParseErr = SIP_NULLPTR;
64
65 {
66 const ::wxRect2DDouble *sipCpp;
67
68 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
69 {
70 ::wxSize*sipRes;
71
72 PyErr_Clear();
73
74 Py_BEGIN_ALLOW_THREADS
75 sipRes = new ::wxSize(sipCpp->GetSize());
76 Py_END_ALLOW_THREADS
77
78 if (PyErr_Occurred())
79 return 0;
80
81 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
82 }
83 }
84
85 /* Raise an exception if the arguments couldn't be parsed. */
86 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetSize, SIP_NULLPTR);
87
88 return SIP_NULLPTR;
89 }
90
91
92 PyDoc_STRVAR(doc_wxRect2DDouble_GetLeft, "GetLeft() -> Double");
93
94 extern "C" {static PyObject *meth_wxRect2DDouble_GetLeft(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetLeft(PyObject * sipSelf,PyObject * sipArgs)95 static PyObject *meth_wxRect2DDouble_GetLeft(PyObject *sipSelf, PyObject *sipArgs)
96 {
97 PyObject *sipParseErr = SIP_NULLPTR;
98
99 {
100 const ::wxRect2DDouble *sipCpp;
101
102 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
103 {
104 ::wxDouble sipRes;
105
106 PyErr_Clear();
107
108 Py_BEGIN_ALLOW_THREADS
109 sipRes = sipCpp->GetLeft();
110 Py_END_ALLOW_THREADS
111
112 if (PyErr_Occurred())
113 return 0;
114
115 return PyFloat_FromDouble(sipRes);
116 }
117 }
118
119 /* Raise an exception if the arguments couldn't be parsed. */
120 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetLeft, SIP_NULLPTR);
121
122 return SIP_NULLPTR;
123 }
124
125
126 PyDoc_STRVAR(doc_wxRect2DDouble_SetLeft, "SetLeft(n)");
127
128 extern "C" {static PyObject *meth_wxRect2DDouble_SetLeft(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_SetLeft(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)129 static PyObject *meth_wxRect2DDouble_SetLeft(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
130 {
131 PyObject *sipParseErr = SIP_NULLPTR;
132
133 {
134 ::wxDouble n;
135 ::wxRect2DDouble *sipCpp;
136
137 static const char *sipKwdList[] = {
138 sipName_n,
139 };
140
141 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &n))
142 {
143 PyErr_Clear();
144
145 Py_BEGIN_ALLOW_THREADS
146 sipCpp->SetLeft(n);
147 Py_END_ALLOW_THREADS
148
149 if (PyErr_Occurred())
150 return 0;
151
152 Py_INCREF(Py_None);
153 return Py_None;
154 }
155 }
156
157 /* Raise an exception if the arguments couldn't be parsed. */
158 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_SetLeft, SIP_NULLPTR);
159
160 return SIP_NULLPTR;
161 }
162
163
164 PyDoc_STRVAR(doc_wxRect2DDouble_MoveLeftTo, "MoveLeftTo(n)");
165
166 extern "C" {static PyObject *meth_wxRect2DDouble_MoveLeftTo(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_MoveLeftTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)167 static PyObject *meth_wxRect2DDouble_MoveLeftTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
168 {
169 PyObject *sipParseErr = SIP_NULLPTR;
170
171 {
172 ::wxDouble n;
173 ::wxRect2DDouble *sipCpp;
174
175 static const char *sipKwdList[] = {
176 sipName_n,
177 };
178
179 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &n))
180 {
181 PyErr_Clear();
182
183 Py_BEGIN_ALLOW_THREADS
184 sipCpp->MoveLeftTo(n);
185 Py_END_ALLOW_THREADS
186
187 if (PyErr_Occurred())
188 return 0;
189
190 Py_INCREF(Py_None);
191 return Py_None;
192 }
193 }
194
195 /* Raise an exception if the arguments couldn't be parsed. */
196 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_MoveLeftTo, SIP_NULLPTR);
197
198 return SIP_NULLPTR;
199 }
200
201
202 PyDoc_STRVAR(doc_wxRect2DDouble_GetTop, "GetTop() -> Double");
203
204 extern "C" {static PyObject *meth_wxRect2DDouble_GetTop(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetTop(PyObject * sipSelf,PyObject * sipArgs)205 static PyObject *meth_wxRect2DDouble_GetTop(PyObject *sipSelf, PyObject *sipArgs)
206 {
207 PyObject *sipParseErr = SIP_NULLPTR;
208
209 {
210 const ::wxRect2DDouble *sipCpp;
211
212 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
213 {
214 ::wxDouble sipRes;
215
216 PyErr_Clear();
217
218 Py_BEGIN_ALLOW_THREADS
219 sipRes = sipCpp->GetTop();
220 Py_END_ALLOW_THREADS
221
222 if (PyErr_Occurred())
223 return 0;
224
225 return PyFloat_FromDouble(sipRes);
226 }
227 }
228
229 /* Raise an exception if the arguments couldn't be parsed. */
230 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetTop, SIP_NULLPTR);
231
232 return SIP_NULLPTR;
233 }
234
235
236 PyDoc_STRVAR(doc_wxRect2DDouble_SetTop, "SetTop(n)");
237
238 extern "C" {static PyObject *meth_wxRect2DDouble_SetTop(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_SetTop(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)239 static PyObject *meth_wxRect2DDouble_SetTop(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
240 {
241 PyObject *sipParseErr = SIP_NULLPTR;
242
243 {
244 ::wxDouble n;
245 ::wxRect2DDouble *sipCpp;
246
247 static const char *sipKwdList[] = {
248 sipName_n,
249 };
250
251 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &n))
252 {
253 PyErr_Clear();
254
255 Py_BEGIN_ALLOW_THREADS
256 sipCpp->SetTop(n);
257 Py_END_ALLOW_THREADS
258
259 if (PyErr_Occurred())
260 return 0;
261
262 Py_INCREF(Py_None);
263 return Py_None;
264 }
265 }
266
267 /* Raise an exception if the arguments couldn't be parsed. */
268 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_SetTop, SIP_NULLPTR);
269
270 return SIP_NULLPTR;
271 }
272
273
274 PyDoc_STRVAR(doc_wxRect2DDouble_MoveTopTo, "MoveTopTo(n)");
275
276 extern "C" {static PyObject *meth_wxRect2DDouble_MoveTopTo(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_MoveTopTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)277 static PyObject *meth_wxRect2DDouble_MoveTopTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
278 {
279 PyObject *sipParseErr = SIP_NULLPTR;
280
281 {
282 ::wxDouble n;
283 ::wxRect2DDouble *sipCpp;
284
285 static const char *sipKwdList[] = {
286 sipName_n,
287 };
288
289 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &n))
290 {
291 PyErr_Clear();
292
293 Py_BEGIN_ALLOW_THREADS
294 sipCpp->MoveTopTo(n);
295 Py_END_ALLOW_THREADS
296
297 if (PyErr_Occurred())
298 return 0;
299
300 Py_INCREF(Py_None);
301 return Py_None;
302 }
303 }
304
305 /* Raise an exception if the arguments couldn't be parsed. */
306 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_MoveTopTo, SIP_NULLPTR);
307
308 return SIP_NULLPTR;
309 }
310
311
312 PyDoc_STRVAR(doc_wxRect2DDouble_GetBottom, "GetBottom() -> Double");
313
314 extern "C" {static PyObject *meth_wxRect2DDouble_GetBottom(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetBottom(PyObject * sipSelf,PyObject * sipArgs)315 static PyObject *meth_wxRect2DDouble_GetBottom(PyObject *sipSelf, PyObject *sipArgs)
316 {
317 PyObject *sipParseErr = SIP_NULLPTR;
318
319 {
320 const ::wxRect2DDouble *sipCpp;
321
322 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
323 {
324 ::wxDouble sipRes;
325
326 PyErr_Clear();
327
328 Py_BEGIN_ALLOW_THREADS
329 sipRes = sipCpp->GetBottom();
330 Py_END_ALLOW_THREADS
331
332 if (PyErr_Occurred())
333 return 0;
334
335 return PyFloat_FromDouble(sipRes);
336 }
337 }
338
339 /* Raise an exception if the arguments couldn't be parsed. */
340 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetBottom, SIP_NULLPTR);
341
342 return SIP_NULLPTR;
343 }
344
345
346 PyDoc_STRVAR(doc_wxRect2DDouble_SetBottom, "SetBottom(n)");
347
348 extern "C" {static PyObject *meth_wxRect2DDouble_SetBottom(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_SetBottom(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)349 static PyObject *meth_wxRect2DDouble_SetBottom(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
350 {
351 PyObject *sipParseErr = SIP_NULLPTR;
352
353 {
354 ::wxDouble n;
355 ::wxRect2DDouble *sipCpp;
356
357 static const char *sipKwdList[] = {
358 sipName_n,
359 };
360
361 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &n))
362 {
363 PyErr_Clear();
364
365 Py_BEGIN_ALLOW_THREADS
366 sipCpp->SetBottom(n);
367 Py_END_ALLOW_THREADS
368
369 if (PyErr_Occurred())
370 return 0;
371
372 Py_INCREF(Py_None);
373 return Py_None;
374 }
375 }
376
377 /* Raise an exception if the arguments couldn't be parsed. */
378 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_SetBottom, SIP_NULLPTR);
379
380 return SIP_NULLPTR;
381 }
382
383
384 PyDoc_STRVAR(doc_wxRect2DDouble_MoveBottomTo, "MoveBottomTo(n)");
385
386 extern "C" {static PyObject *meth_wxRect2DDouble_MoveBottomTo(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_MoveBottomTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)387 static PyObject *meth_wxRect2DDouble_MoveBottomTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
388 {
389 PyObject *sipParseErr = SIP_NULLPTR;
390
391 {
392 ::wxDouble n;
393 ::wxRect2DDouble *sipCpp;
394
395 static const char *sipKwdList[] = {
396 sipName_n,
397 };
398
399 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &n))
400 {
401 PyErr_Clear();
402
403 Py_BEGIN_ALLOW_THREADS
404 sipCpp->MoveBottomTo(n);
405 Py_END_ALLOW_THREADS
406
407 if (PyErr_Occurred())
408 return 0;
409
410 Py_INCREF(Py_None);
411 return Py_None;
412 }
413 }
414
415 /* Raise an exception if the arguments couldn't be parsed. */
416 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_MoveBottomTo, SIP_NULLPTR);
417
418 return SIP_NULLPTR;
419 }
420
421
422 PyDoc_STRVAR(doc_wxRect2DDouble_GetRight, "GetRight() -> Double");
423
424 extern "C" {static PyObject *meth_wxRect2DDouble_GetRight(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetRight(PyObject * sipSelf,PyObject * sipArgs)425 static PyObject *meth_wxRect2DDouble_GetRight(PyObject *sipSelf, PyObject *sipArgs)
426 {
427 PyObject *sipParseErr = SIP_NULLPTR;
428
429 {
430 const ::wxRect2DDouble *sipCpp;
431
432 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
433 {
434 ::wxDouble sipRes;
435
436 PyErr_Clear();
437
438 Py_BEGIN_ALLOW_THREADS
439 sipRes = sipCpp->GetRight();
440 Py_END_ALLOW_THREADS
441
442 if (PyErr_Occurred())
443 return 0;
444
445 return PyFloat_FromDouble(sipRes);
446 }
447 }
448
449 /* Raise an exception if the arguments couldn't be parsed. */
450 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetRight, SIP_NULLPTR);
451
452 return SIP_NULLPTR;
453 }
454
455
456 PyDoc_STRVAR(doc_wxRect2DDouble_SetRight, "SetRight(n)");
457
458 extern "C" {static PyObject *meth_wxRect2DDouble_SetRight(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_SetRight(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)459 static PyObject *meth_wxRect2DDouble_SetRight(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
460 {
461 PyObject *sipParseErr = SIP_NULLPTR;
462
463 {
464 ::wxDouble n;
465 ::wxRect2DDouble *sipCpp;
466
467 static const char *sipKwdList[] = {
468 sipName_n,
469 };
470
471 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &n))
472 {
473 PyErr_Clear();
474
475 Py_BEGIN_ALLOW_THREADS
476 sipCpp->SetRight(n);
477 Py_END_ALLOW_THREADS
478
479 if (PyErr_Occurred())
480 return 0;
481
482 Py_INCREF(Py_None);
483 return Py_None;
484 }
485 }
486
487 /* Raise an exception if the arguments couldn't be parsed. */
488 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_SetRight, SIP_NULLPTR);
489
490 return SIP_NULLPTR;
491 }
492
493
494 PyDoc_STRVAR(doc_wxRect2DDouble_MoveRightTo, "MoveRightTo(n)");
495
496 extern "C" {static PyObject *meth_wxRect2DDouble_MoveRightTo(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_MoveRightTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)497 static PyObject *meth_wxRect2DDouble_MoveRightTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
498 {
499 PyObject *sipParseErr = SIP_NULLPTR;
500
501 {
502 ::wxDouble n;
503 ::wxRect2DDouble *sipCpp;
504
505 static const char *sipKwdList[] = {
506 sipName_n,
507 };
508
509 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &n))
510 {
511 PyErr_Clear();
512
513 Py_BEGIN_ALLOW_THREADS
514 sipCpp->MoveRightTo(n);
515 Py_END_ALLOW_THREADS
516
517 if (PyErr_Occurred())
518 return 0;
519
520 Py_INCREF(Py_None);
521 return Py_None;
522 }
523 }
524
525 /* Raise an exception if the arguments couldn't be parsed. */
526 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_MoveRightTo, SIP_NULLPTR);
527
528 return SIP_NULLPTR;
529 }
530
531
532 PyDoc_STRVAR(doc_wxRect2DDouble_GetLeftTop, "GetLeftTop() -> Point2DDouble");
533
534 extern "C" {static PyObject *meth_wxRect2DDouble_GetLeftTop(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetLeftTop(PyObject * sipSelf,PyObject * sipArgs)535 static PyObject *meth_wxRect2DDouble_GetLeftTop(PyObject *sipSelf, PyObject *sipArgs)
536 {
537 PyObject *sipParseErr = SIP_NULLPTR;
538
539 {
540 const ::wxRect2DDouble *sipCpp;
541
542 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
543 {
544 ::wxPoint2DDouble*sipRes;
545
546 PyErr_Clear();
547
548 Py_BEGIN_ALLOW_THREADS
549 sipRes = new ::wxPoint2DDouble(sipCpp->GetLeftTop());
550 Py_END_ALLOW_THREADS
551
552 if (PyErr_Occurred())
553 return 0;
554
555 return sipConvertFromNewType(sipRes,sipType_wxPoint2DDouble,SIP_NULLPTR);
556 }
557 }
558
559 /* Raise an exception if the arguments couldn't be parsed. */
560 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetLeftTop, SIP_NULLPTR);
561
562 return SIP_NULLPTR;
563 }
564
565
566 PyDoc_STRVAR(doc_wxRect2DDouble_SetLeftTop, "SetLeftTop(pt)");
567
568 extern "C" {static PyObject *meth_wxRect2DDouble_SetLeftTop(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_SetLeftTop(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)569 static PyObject *meth_wxRect2DDouble_SetLeftTop(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
570 {
571 PyObject *sipParseErr = SIP_NULLPTR;
572
573 {
574 const ::wxPoint2DDouble* pt;
575 int ptState = 0;
576 ::wxRect2DDouble *sipCpp;
577
578 static const char *sipKwdList[] = {
579 sipName_pt,
580 };
581
582 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
583 {
584 PyErr_Clear();
585
586 Py_BEGIN_ALLOW_THREADS
587 sipCpp->SetLeftTop(*pt);
588 Py_END_ALLOW_THREADS
589 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
590
591 if (PyErr_Occurred())
592 return 0;
593
594 Py_INCREF(Py_None);
595 return Py_None;
596 }
597 }
598
599 /* Raise an exception if the arguments couldn't be parsed. */
600 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_SetLeftTop, SIP_NULLPTR);
601
602 return SIP_NULLPTR;
603 }
604
605
606 PyDoc_STRVAR(doc_wxRect2DDouble_MoveLeftTopTo, "MoveLeftTopTo(pt)");
607
608 extern "C" {static PyObject *meth_wxRect2DDouble_MoveLeftTopTo(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_MoveLeftTopTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)609 static PyObject *meth_wxRect2DDouble_MoveLeftTopTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
610 {
611 PyObject *sipParseErr = SIP_NULLPTR;
612
613 {
614 const ::wxPoint2DDouble* pt;
615 int ptState = 0;
616 ::wxRect2DDouble *sipCpp;
617
618 static const char *sipKwdList[] = {
619 sipName_pt,
620 };
621
622 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
623 {
624 PyErr_Clear();
625
626 Py_BEGIN_ALLOW_THREADS
627 sipCpp->MoveLeftTopTo(*pt);
628 Py_END_ALLOW_THREADS
629 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
630
631 if (PyErr_Occurred())
632 return 0;
633
634 Py_INCREF(Py_None);
635 return Py_None;
636 }
637 }
638
639 /* Raise an exception if the arguments couldn't be parsed. */
640 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_MoveLeftTopTo, SIP_NULLPTR);
641
642 return SIP_NULLPTR;
643 }
644
645
646 PyDoc_STRVAR(doc_wxRect2DDouble_GetLeftBottom, "GetLeftBottom() -> Point2DDouble");
647
648 extern "C" {static PyObject *meth_wxRect2DDouble_GetLeftBottom(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetLeftBottom(PyObject * sipSelf,PyObject * sipArgs)649 static PyObject *meth_wxRect2DDouble_GetLeftBottom(PyObject *sipSelf, PyObject *sipArgs)
650 {
651 PyObject *sipParseErr = SIP_NULLPTR;
652
653 {
654 const ::wxRect2DDouble *sipCpp;
655
656 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
657 {
658 ::wxPoint2DDouble*sipRes;
659
660 PyErr_Clear();
661
662 Py_BEGIN_ALLOW_THREADS
663 sipRes = new ::wxPoint2DDouble(sipCpp->GetLeftBottom());
664 Py_END_ALLOW_THREADS
665
666 if (PyErr_Occurred())
667 return 0;
668
669 return sipConvertFromNewType(sipRes,sipType_wxPoint2DDouble,SIP_NULLPTR);
670 }
671 }
672
673 /* Raise an exception if the arguments couldn't be parsed. */
674 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetLeftBottom, SIP_NULLPTR);
675
676 return SIP_NULLPTR;
677 }
678
679
680 PyDoc_STRVAR(doc_wxRect2DDouble_SetLeftBottom, "SetLeftBottom(pt)");
681
682 extern "C" {static PyObject *meth_wxRect2DDouble_SetLeftBottom(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_SetLeftBottom(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)683 static PyObject *meth_wxRect2DDouble_SetLeftBottom(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
684 {
685 PyObject *sipParseErr = SIP_NULLPTR;
686
687 {
688 const ::wxPoint2DDouble* pt;
689 int ptState = 0;
690 ::wxRect2DDouble *sipCpp;
691
692 static const char *sipKwdList[] = {
693 sipName_pt,
694 };
695
696 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
697 {
698 PyErr_Clear();
699
700 Py_BEGIN_ALLOW_THREADS
701 sipCpp->SetLeftBottom(*pt);
702 Py_END_ALLOW_THREADS
703 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
704
705 if (PyErr_Occurred())
706 return 0;
707
708 Py_INCREF(Py_None);
709 return Py_None;
710 }
711 }
712
713 /* Raise an exception if the arguments couldn't be parsed. */
714 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_SetLeftBottom, SIP_NULLPTR);
715
716 return SIP_NULLPTR;
717 }
718
719
720 PyDoc_STRVAR(doc_wxRect2DDouble_MoveLeftBottomTo, "MoveLeftBottomTo(pt)");
721
722 extern "C" {static PyObject *meth_wxRect2DDouble_MoveLeftBottomTo(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_MoveLeftBottomTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)723 static PyObject *meth_wxRect2DDouble_MoveLeftBottomTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
724 {
725 PyObject *sipParseErr = SIP_NULLPTR;
726
727 {
728 const ::wxPoint2DDouble* pt;
729 int ptState = 0;
730 ::wxRect2DDouble *sipCpp;
731
732 static const char *sipKwdList[] = {
733 sipName_pt,
734 };
735
736 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
737 {
738 PyErr_Clear();
739
740 Py_BEGIN_ALLOW_THREADS
741 sipCpp->MoveLeftBottomTo(*pt);
742 Py_END_ALLOW_THREADS
743 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
744
745 if (PyErr_Occurred())
746 return 0;
747
748 Py_INCREF(Py_None);
749 return Py_None;
750 }
751 }
752
753 /* Raise an exception if the arguments couldn't be parsed. */
754 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_MoveLeftBottomTo, SIP_NULLPTR);
755
756 return SIP_NULLPTR;
757 }
758
759
760 PyDoc_STRVAR(doc_wxRect2DDouble_GetRightTop, "GetRightTop() -> Point2DDouble");
761
762 extern "C" {static PyObject *meth_wxRect2DDouble_GetRightTop(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetRightTop(PyObject * sipSelf,PyObject * sipArgs)763 static PyObject *meth_wxRect2DDouble_GetRightTop(PyObject *sipSelf, PyObject *sipArgs)
764 {
765 PyObject *sipParseErr = SIP_NULLPTR;
766
767 {
768 const ::wxRect2DDouble *sipCpp;
769
770 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
771 {
772 ::wxPoint2DDouble*sipRes;
773
774 PyErr_Clear();
775
776 Py_BEGIN_ALLOW_THREADS
777 sipRes = new ::wxPoint2DDouble(sipCpp->GetRightTop());
778 Py_END_ALLOW_THREADS
779
780 if (PyErr_Occurred())
781 return 0;
782
783 return sipConvertFromNewType(sipRes,sipType_wxPoint2DDouble,SIP_NULLPTR);
784 }
785 }
786
787 /* Raise an exception if the arguments couldn't be parsed. */
788 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetRightTop, SIP_NULLPTR);
789
790 return SIP_NULLPTR;
791 }
792
793
794 PyDoc_STRVAR(doc_wxRect2DDouble_SetRightTop, "SetRightTop(pt)");
795
796 extern "C" {static PyObject *meth_wxRect2DDouble_SetRightTop(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_SetRightTop(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)797 static PyObject *meth_wxRect2DDouble_SetRightTop(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
798 {
799 PyObject *sipParseErr = SIP_NULLPTR;
800
801 {
802 const ::wxPoint2DDouble* pt;
803 int ptState = 0;
804 ::wxRect2DDouble *sipCpp;
805
806 static const char *sipKwdList[] = {
807 sipName_pt,
808 };
809
810 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
811 {
812 PyErr_Clear();
813
814 Py_BEGIN_ALLOW_THREADS
815 sipCpp->SetRightTop(*pt);
816 Py_END_ALLOW_THREADS
817 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
818
819 if (PyErr_Occurred())
820 return 0;
821
822 Py_INCREF(Py_None);
823 return Py_None;
824 }
825 }
826
827 /* Raise an exception if the arguments couldn't be parsed. */
828 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_SetRightTop, SIP_NULLPTR);
829
830 return SIP_NULLPTR;
831 }
832
833
834 PyDoc_STRVAR(doc_wxRect2DDouble_MoveRightTopTo, "MoveRightTopTo(pt)");
835
836 extern "C" {static PyObject *meth_wxRect2DDouble_MoveRightTopTo(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_MoveRightTopTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)837 static PyObject *meth_wxRect2DDouble_MoveRightTopTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
838 {
839 PyObject *sipParseErr = SIP_NULLPTR;
840
841 {
842 const ::wxPoint2DDouble* pt;
843 int ptState = 0;
844 ::wxRect2DDouble *sipCpp;
845
846 static const char *sipKwdList[] = {
847 sipName_pt,
848 };
849
850 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
851 {
852 PyErr_Clear();
853
854 Py_BEGIN_ALLOW_THREADS
855 sipCpp->MoveRightTopTo(*pt);
856 Py_END_ALLOW_THREADS
857 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
858
859 if (PyErr_Occurred())
860 return 0;
861
862 Py_INCREF(Py_None);
863 return Py_None;
864 }
865 }
866
867 /* Raise an exception if the arguments couldn't be parsed. */
868 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_MoveRightTopTo, SIP_NULLPTR);
869
870 return SIP_NULLPTR;
871 }
872
873
874 PyDoc_STRVAR(doc_wxRect2DDouble_GetRightBottom, "GetRightBottom() -> Point2DDouble");
875
876 extern "C" {static PyObject *meth_wxRect2DDouble_GetRightBottom(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetRightBottom(PyObject * sipSelf,PyObject * sipArgs)877 static PyObject *meth_wxRect2DDouble_GetRightBottom(PyObject *sipSelf, PyObject *sipArgs)
878 {
879 PyObject *sipParseErr = SIP_NULLPTR;
880
881 {
882 const ::wxRect2DDouble *sipCpp;
883
884 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
885 {
886 ::wxPoint2DDouble*sipRes;
887
888 PyErr_Clear();
889
890 Py_BEGIN_ALLOW_THREADS
891 sipRes = new ::wxPoint2DDouble(sipCpp->GetRightBottom());
892 Py_END_ALLOW_THREADS
893
894 if (PyErr_Occurred())
895 return 0;
896
897 return sipConvertFromNewType(sipRes,sipType_wxPoint2DDouble,SIP_NULLPTR);
898 }
899 }
900
901 /* Raise an exception if the arguments couldn't be parsed. */
902 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetRightBottom, SIP_NULLPTR);
903
904 return SIP_NULLPTR;
905 }
906
907
908 PyDoc_STRVAR(doc_wxRect2DDouble_SetRightBottom, "SetRightBottom(pt)");
909
910 extern "C" {static PyObject *meth_wxRect2DDouble_SetRightBottom(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_SetRightBottom(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)911 static PyObject *meth_wxRect2DDouble_SetRightBottom(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
912 {
913 PyObject *sipParseErr = SIP_NULLPTR;
914
915 {
916 const ::wxPoint2DDouble* pt;
917 int ptState = 0;
918 ::wxRect2DDouble *sipCpp;
919
920 static const char *sipKwdList[] = {
921 sipName_pt,
922 };
923
924 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
925 {
926 PyErr_Clear();
927
928 Py_BEGIN_ALLOW_THREADS
929 sipCpp->SetRightBottom(*pt);
930 Py_END_ALLOW_THREADS
931 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
932
933 if (PyErr_Occurred())
934 return 0;
935
936 Py_INCREF(Py_None);
937 return Py_None;
938 }
939 }
940
941 /* Raise an exception if the arguments couldn't be parsed. */
942 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_SetRightBottom, SIP_NULLPTR);
943
944 return SIP_NULLPTR;
945 }
946
947
948 PyDoc_STRVAR(doc_wxRect2DDouble_MoveRightBottomTo, "MoveRightBottomTo(pt)");
949
950 extern "C" {static PyObject *meth_wxRect2DDouble_MoveRightBottomTo(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_MoveRightBottomTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)951 static PyObject *meth_wxRect2DDouble_MoveRightBottomTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
952 {
953 PyObject *sipParseErr = SIP_NULLPTR;
954
955 {
956 const ::wxPoint2DDouble* pt;
957 int ptState = 0;
958 ::wxRect2DDouble *sipCpp;
959
960 static const char *sipKwdList[] = {
961 sipName_pt,
962 };
963
964 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
965 {
966 PyErr_Clear();
967
968 Py_BEGIN_ALLOW_THREADS
969 sipCpp->MoveRightBottomTo(*pt);
970 Py_END_ALLOW_THREADS
971 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
972
973 if (PyErr_Occurred())
974 return 0;
975
976 Py_INCREF(Py_None);
977 return Py_None;
978 }
979 }
980
981 /* Raise an exception if the arguments couldn't be parsed. */
982 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_MoveRightBottomTo, SIP_NULLPTR);
983
984 return SIP_NULLPTR;
985 }
986
987
988 PyDoc_STRVAR(doc_wxRect2DDouble_GetCentre, "GetCentre() -> Point2DDouble");
989
990 extern "C" {static PyObject *meth_wxRect2DDouble_GetCentre(PyObject *, PyObject *);}
meth_wxRect2DDouble_GetCentre(PyObject * sipSelf,PyObject * sipArgs)991 static PyObject *meth_wxRect2DDouble_GetCentre(PyObject *sipSelf, PyObject *sipArgs)
992 {
993 PyObject *sipParseErr = SIP_NULLPTR;
994
995 {
996 const ::wxRect2DDouble *sipCpp;
997
998 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
999 {
1000 ::wxPoint2DDouble*sipRes;
1001
1002 PyErr_Clear();
1003
1004 Py_BEGIN_ALLOW_THREADS
1005 sipRes = new ::wxPoint2DDouble(sipCpp->GetCentre());
1006 Py_END_ALLOW_THREADS
1007
1008 if (PyErr_Occurred())
1009 return 0;
1010
1011 return sipConvertFromNewType(sipRes,sipType_wxPoint2DDouble,SIP_NULLPTR);
1012 }
1013 }
1014
1015 /* Raise an exception if the arguments couldn't be parsed. */
1016 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetCentre, SIP_NULLPTR);
1017
1018 return SIP_NULLPTR;
1019 }
1020
1021
1022 PyDoc_STRVAR(doc_wxRect2DDouble_SetCentre, "SetCentre(pt)");
1023
1024 extern "C" {static PyObject *meth_wxRect2DDouble_SetCentre(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_SetCentre(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1025 static PyObject *meth_wxRect2DDouble_SetCentre(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1026 {
1027 PyObject *sipParseErr = SIP_NULLPTR;
1028
1029 {
1030 const ::wxPoint2DDouble* pt;
1031 int ptState = 0;
1032 ::wxRect2DDouble *sipCpp;
1033
1034 static const char *sipKwdList[] = {
1035 sipName_pt,
1036 };
1037
1038 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
1039 {
1040 PyErr_Clear();
1041
1042 Py_BEGIN_ALLOW_THREADS
1043 sipCpp->SetCentre(*pt);
1044 Py_END_ALLOW_THREADS
1045 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
1046
1047 if (PyErr_Occurred())
1048 return 0;
1049
1050 Py_INCREF(Py_None);
1051 return Py_None;
1052 }
1053 }
1054
1055 /* Raise an exception if the arguments couldn't be parsed. */
1056 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_SetCentre, SIP_NULLPTR);
1057
1058 return SIP_NULLPTR;
1059 }
1060
1061
1062 PyDoc_STRVAR(doc_wxRect2DDouble_MoveCentreTo, "MoveCentreTo(pt)");
1063
1064 extern "C" {static PyObject *meth_wxRect2DDouble_MoveCentreTo(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_MoveCentreTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1065 static PyObject *meth_wxRect2DDouble_MoveCentreTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1066 {
1067 PyObject *sipParseErr = SIP_NULLPTR;
1068
1069 {
1070 const ::wxPoint2DDouble* pt;
1071 int ptState = 0;
1072 ::wxRect2DDouble *sipCpp;
1073
1074 static const char *sipKwdList[] = {
1075 sipName_pt,
1076 };
1077
1078 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
1079 {
1080 PyErr_Clear();
1081
1082 Py_BEGIN_ALLOW_THREADS
1083 sipCpp->MoveCentreTo(*pt);
1084 Py_END_ALLOW_THREADS
1085 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
1086
1087 if (PyErr_Occurred())
1088 return 0;
1089
1090 Py_INCREF(Py_None);
1091 return Py_None;
1092 }
1093 }
1094
1095 /* Raise an exception if the arguments couldn't be parsed. */
1096 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_MoveCentreTo, SIP_NULLPTR);
1097
1098 return SIP_NULLPTR;
1099 }
1100
1101
1102 PyDoc_STRVAR(doc_wxRect2DDouble_GetOutCode, "GetOutCode(pt) -> OutCode");
1103
1104 extern "C" {static PyObject *meth_wxRect2DDouble_GetOutCode(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_GetOutCode(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1105 static PyObject *meth_wxRect2DDouble_GetOutCode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1106 {
1107 PyObject *sipParseErr = SIP_NULLPTR;
1108
1109 {
1110 const ::wxPoint2DDouble* pt;
1111 int ptState = 0;
1112 const ::wxRect2DDouble *sipCpp;
1113
1114 static const char *sipKwdList[] = {
1115 sipName_pt,
1116 };
1117
1118 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
1119 {
1120 ::wxOutCode sipRes;
1121
1122 PyErr_Clear();
1123
1124 Py_BEGIN_ALLOW_THREADS
1125 sipRes = sipCpp->GetOutCode(*pt);
1126 Py_END_ALLOW_THREADS
1127 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
1128
1129 if (PyErr_Occurred())
1130 return 0;
1131
1132 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxOutCode);
1133 }
1134 }
1135
1136 /* Raise an exception if the arguments couldn't be parsed. */
1137 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetOutCode, SIP_NULLPTR);
1138
1139 return SIP_NULLPTR;
1140 }
1141
1142
1143 PyDoc_STRVAR(doc_wxRect2DDouble_GetOutcode, "GetOutcode(pt) -> OutCode");
1144
1145 extern "C" {static PyObject *meth_wxRect2DDouble_GetOutcode(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_GetOutcode(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1146 static PyObject *meth_wxRect2DDouble_GetOutcode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1147 {
1148 PyObject *sipParseErr = SIP_NULLPTR;
1149
1150 {
1151 const ::wxPoint2DDouble* pt;
1152 int ptState = 0;
1153 const ::wxRect2DDouble *sipCpp;
1154
1155 static const char *sipKwdList[] = {
1156 sipName_pt,
1157 };
1158
1159 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
1160 {
1161 ::wxOutCode sipRes;
1162
1163 PyErr_Clear();
1164
1165 Py_BEGIN_ALLOW_THREADS
1166 sipRes = sipCpp->GetOutcode(*pt);
1167 Py_END_ALLOW_THREADS
1168 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
1169
1170 if (PyErr_Occurred())
1171 return 0;
1172
1173 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxOutCode);
1174 }
1175 }
1176
1177 /* Raise an exception if the arguments couldn't be parsed. */
1178 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_GetOutcode, SIP_NULLPTR);
1179
1180 return SIP_NULLPTR;
1181 }
1182
1183
1184 PyDoc_STRVAR(doc_wxRect2DDouble_Contains, "Contains(pt) -> bool\n"
1185 "Contains(rect) -> bool\n"
1186 "");
1187
1188 extern "C" {static PyObject *meth_wxRect2DDouble_Contains(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_Contains(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1189 static PyObject *meth_wxRect2DDouble_Contains(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1190 {
1191 PyObject *sipParseErr = SIP_NULLPTR;
1192
1193 {
1194 const ::wxPoint2DDouble* pt;
1195 int ptState = 0;
1196 const ::wxRect2DDouble *sipCpp;
1197
1198 static const char *sipKwdList[] = {
1199 sipName_pt,
1200 };
1201
1202 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
1203 {
1204 bool sipRes;
1205
1206 PyErr_Clear();
1207
1208 Py_BEGIN_ALLOW_THREADS
1209 sipRes = sipCpp->Contains(*pt);
1210 Py_END_ALLOW_THREADS
1211 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
1212
1213 if (PyErr_Occurred())
1214 return 0;
1215
1216 return PyBool_FromLong(sipRes);
1217 }
1218 }
1219
1220 {
1221 const ::wxRect2DDouble* rect;
1222 int rectState = 0;
1223 const ::wxRect2DDouble *sipCpp;
1224
1225 static const char *sipKwdList[] = {
1226 sipName_rect,
1227 };
1228
1229 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxRect2DDouble, &rect, &rectState))
1230 {
1231 bool sipRes;
1232
1233 PyErr_Clear();
1234
1235 Py_BEGIN_ALLOW_THREADS
1236 sipRes = sipCpp->Contains(*rect);
1237 Py_END_ALLOW_THREADS
1238 sipReleaseType(const_cast< ::wxRect2DDouble *>(rect),sipType_wxRect2DDouble,rectState);
1239
1240 if (PyErr_Occurred())
1241 return 0;
1242
1243 return PyBool_FromLong(sipRes);
1244 }
1245 }
1246
1247 /* Raise an exception if the arguments couldn't be parsed. */
1248 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_Contains, SIP_NULLPTR);
1249
1250 return SIP_NULLPTR;
1251 }
1252
1253
1254 PyDoc_STRVAR(doc_wxRect2DDouble_IsEmpty, "IsEmpty() -> bool");
1255
1256 extern "C" {static PyObject *meth_wxRect2DDouble_IsEmpty(PyObject *, PyObject *);}
meth_wxRect2DDouble_IsEmpty(PyObject * sipSelf,PyObject * sipArgs)1257 static PyObject *meth_wxRect2DDouble_IsEmpty(PyObject *sipSelf, PyObject *sipArgs)
1258 {
1259 PyObject *sipParseErr = SIP_NULLPTR;
1260
1261 {
1262 const ::wxRect2DDouble *sipCpp;
1263
1264 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
1265 {
1266 bool sipRes;
1267
1268 PyErr_Clear();
1269
1270 Py_BEGIN_ALLOW_THREADS
1271 sipRes = sipCpp->IsEmpty();
1272 Py_END_ALLOW_THREADS
1273
1274 if (PyErr_Occurred())
1275 return 0;
1276
1277 return PyBool_FromLong(sipRes);
1278 }
1279 }
1280
1281 /* Raise an exception if the arguments couldn't be parsed. */
1282 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_IsEmpty, SIP_NULLPTR);
1283
1284 return SIP_NULLPTR;
1285 }
1286
1287
1288 PyDoc_STRVAR(doc_wxRect2DDouble_HaveEqualSize, "HaveEqualSize(rect) -> bool");
1289
1290 extern "C" {static PyObject *meth_wxRect2DDouble_HaveEqualSize(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_HaveEqualSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1291 static PyObject *meth_wxRect2DDouble_HaveEqualSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1292 {
1293 PyObject *sipParseErr = SIP_NULLPTR;
1294
1295 {
1296 const ::wxRect2DDouble* rect;
1297 int rectState = 0;
1298 const ::wxRect2DDouble *sipCpp;
1299
1300 static const char *sipKwdList[] = {
1301 sipName_rect,
1302 };
1303
1304 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxRect2DDouble, &rect, &rectState))
1305 {
1306 bool sipRes;
1307
1308 PyErr_Clear();
1309
1310 Py_BEGIN_ALLOW_THREADS
1311 sipRes = sipCpp->HaveEqualSize(*rect);
1312 Py_END_ALLOW_THREADS
1313 sipReleaseType(const_cast< ::wxRect2DDouble *>(rect),sipType_wxRect2DDouble,rectState);
1314
1315 if (PyErr_Occurred())
1316 return 0;
1317
1318 return PyBool_FromLong(sipRes);
1319 }
1320 }
1321
1322 /* Raise an exception if the arguments couldn't be parsed. */
1323 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_HaveEqualSize, SIP_NULLPTR);
1324
1325 return SIP_NULLPTR;
1326 }
1327
1328
1329 PyDoc_STRVAR(doc_wxRect2DDouble_Inset, "Inset(x, y)\n"
1330 "Inset(left, top, right, bottom)\n"
1331 "");
1332
1333 extern "C" {static PyObject *meth_wxRect2DDouble_Inset(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_Inset(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1334 static PyObject *meth_wxRect2DDouble_Inset(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1335 {
1336 PyObject *sipParseErr = SIP_NULLPTR;
1337
1338 {
1339 ::wxDouble x;
1340 ::wxDouble y;
1341 ::wxRect2DDouble *sipCpp;
1342
1343 static const char *sipKwdList[] = {
1344 sipName_x,
1345 sipName_y,
1346 };
1347
1348 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bdd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &x, &y))
1349 {
1350 PyErr_Clear();
1351
1352 Py_BEGIN_ALLOW_THREADS
1353 sipCpp->Inset(x,y);
1354 Py_END_ALLOW_THREADS
1355
1356 if (PyErr_Occurred())
1357 return 0;
1358
1359 Py_INCREF(Py_None);
1360 return Py_None;
1361 }
1362 }
1363
1364 {
1365 ::wxDouble left;
1366 ::wxDouble top;
1367 ::wxDouble right;
1368 ::wxDouble bottom;
1369 ::wxRect2DDouble *sipCpp;
1370
1371 static const char *sipKwdList[] = {
1372 sipName_left,
1373 sipName_top,
1374 sipName_right,
1375 sipName_bottom,
1376 };
1377
1378 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bdddd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &left, &top, &right, &bottom))
1379 {
1380 PyErr_Clear();
1381
1382 Py_BEGIN_ALLOW_THREADS
1383 sipCpp->Inset(left,top,right,bottom);
1384 Py_END_ALLOW_THREADS
1385
1386 if (PyErr_Occurred())
1387 return 0;
1388
1389 Py_INCREF(Py_None);
1390 return Py_None;
1391 }
1392 }
1393
1394 /* Raise an exception if the arguments couldn't be parsed. */
1395 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_Inset, SIP_NULLPTR);
1396
1397 return SIP_NULLPTR;
1398 }
1399
1400
1401 PyDoc_STRVAR(doc_wxRect2DDouble_Offset, "Offset(pt)");
1402
1403 extern "C" {static PyObject *meth_wxRect2DDouble_Offset(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_Offset(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1404 static PyObject *meth_wxRect2DDouble_Offset(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1405 {
1406 PyObject *sipParseErr = SIP_NULLPTR;
1407
1408 {
1409 const ::wxPoint2DDouble* pt;
1410 int ptState = 0;
1411 ::wxRect2DDouble *sipCpp;
1412
1413 static const char *sipKwdList[] = {
1414 sipName_pt,
1415 };
1416
1417 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
1418 {
1419 PyErr_Clear();
1420
1421 Py_BEGIN_ALLOW_THREADS
1422 sipCpp->Offset(*pt);
1423 Py_END_ALLOW_THREADS
1424 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
1425
1426 if (PyErr_Occurred())
1427 return 0;
1428
1429 Py_INCREF(Py_None);
1430 return Py_None;
1431 }
1432 }
1433
1434 /* Raise an exception if the arguments couldn't be parsed. */
1435 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_Offset, SIP_NULLPTR);
1436
1437 return SIP_NULLPTR;
1438 }
1439
1440
1441 PyDoc_STRVAR(doc_wxRect2DDouble_ConstrainTo, "ConstrainTo(rect)");
1442
1443 extern "C" {static PyObject *meth_wxRect2DDouble_ConstrainTo(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_ConstrainTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1444 static PyObject *meth_wxRect2DDouble_ConstrainTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1445 {
1446 PyObject *sipParseErr = SIP_NULLPTR;
1447
1448 {
1449 const ::wxRect2DDouble* rect;
1450 int rectState = 0;
1451 ::wxRect2DDouble *sipCpp;
1452
1453 static const char *sipKwdList[] = {
1454 sipName_rect,
1455 };
1456
1457 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxRect2DDouble, &rect, &rectState))
1458 {
1459 PyErr_Clear();
1460
1461 Py_BEGIN_ALLOW_THREADS
1462 sipCpp->ConstrainTo(*rect);
1463 Py_END_ALLOW_THREADS
1464 sipReleaseType(const_cast< ::wxRect2DDouble *>(rect),sipType_wxRect2DDouble,rectState);
1465
1466 if (PyErr_Occurred())
1467 return 0;
1468
1469 Py_INCREF(Py_None);
1470 return Py_None;
1471 }
1472 }
1473
1474 /* Raise an exception if the arguments couldn't be parsed. */
1475 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_ConstrainTo, SIP_NULLPTR);
1476
1477 return SIP_NULLPTR;
1478 }
1479
1480
1481 PyDoc_STRVAR(doc_wxRect2DDouble_Interpolate, "Interpolate(widthfactor, heightfactor) -> Point2DDouble");
1482
1483 extern "C" {static PyObject *meth_wxRect2DDouble_Interpolate(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_Interpolate(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1484 static PyObject *meth_wxRect2DDouble_Interpolate(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1485 {
1486 PyObject *sipParseErr = SIP_NULLPTR;
1487
1488 {
1489 ::wxInt32 widthfactor;
1490 ::wxInt32 heightfactor;
1491 ::wxRect2DDouble *sipCpp;
1492
1493 static const char *sipKwdList[] = {
1494 sipName_widthfactor,
1495 sipName_heightfactor,
1496 };
1497
1498 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &widthfactor, &heightfactor))
1499 {
1500 ::wxPoint2DDouble*sipRes;
1501
1502 PyErr_Clear();
1503
1504 Py_BEGIN_ALLOW_THREADS
1505 sipRes = new ::wxPoint2DDouble(sipCpp->Interpolate(widthfactor,heightfactor));
1506 Py_END_ALLOW_THREADS
1507
1508 if (PyErr_Occurred())
1509 return 0;
1510
1511 return sipConvertFromNewType(sipRes,sipType_wxPoint2DDouble,SIP_NULLPTR);
1512 }
1513 }
1514
1515 /* Raise an exception if the arguments couldn't be parsed. */
1516 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_Interpolate, SIP_NULLPTR);
1517
1518 return SIP_NULLPTR;
1519 }
1520
1521
1522 PyDoc_STRVAR(doc_wxRect2DDouble_Intersect, "Intersect(otherRect)\n"
1523 "Intersect(src1, src2, dest)\n"
1524 "");
1525
1526 extern "C" {static PyObject *meth_wxRect2DDouble_Intersect(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_Intersect(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1527 static PyObject *meth_wxRect2DDouble_Intersect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1528 {
1529 PyObject *sipParseErr = SIP_NULLPTR;
1530
1531 {
1532 const ::wxRect2DDouble* otherRect;
1533 int otherRectState = 0;
1534 ::wxRect2DDouble *sipCpp;
1535
1536 static const char *sipKwdList[] = {
1537 sipName_otherRect,
1538 };
1539
1540 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxRect2DDouble, &otherRect, &otherRectState))
1541 {
1542 PyErr_Clear();
1543
1544 Py_BEGIN_ALLOW_THREADS
1545 sipCpp->Intersect(*otherRect);
1546 Py_END_ALLOW_THREADS
1547 sipReleaseType(const_cast< ::wxRect2DDouble *>(otherRect),sipType_wxRect2DDouble,otherRectState);
1548
1549 if (PyErr_Occurred())
1550 return 0;
1551
1552 Py_INCREF(Py_None);
1553 return Py_None;
1554 }
1555 }
1556
1557 {
1558 const ::wxRect2DDouble* src1;
1559 int src1State = 0;
1560 const ::wxRect2DDouble* src2;
1561 int src2State = 0;
1562 ::wxRect2DDouble* dest;
1563 int destState = 0;
1564
1565 static const char *sipKwdList[] = {
1566 sipName_src1,
1567 sipName_src2,
1568 sipName_dest,
1569 };
1570
1571 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1J1J0", sipType_wxRect2DDouble, &src1, &src1State, sipType_wxRect2DDouble, &src2, &src2State, sipType_wxRect2DDouble, &dest, &destState))
1572 {
1573 PyErr_Clear();
1574
1575 Py_BEGIN_ALLOW_THREADS
1576 ::wxRect2DDouble::Intersect(*src1,*src2,dest);
1577 Py_END_ALLOW_THREADS
1578 sipReleaseType(const_cast< ::wxRect2DDouble *>(src1),sipType_wxRect2DDouble,src1State);
1579 sipReleaseType(const_cast< ::wxRect2DDouble *>(src2),sipType_wxRect2DDouble,src2State);
1580 sipReleaseType(dest,sipType_wxRect2DDouble,destState);
1581
1582 if (PyErr_Occurred())
1583 return 0;
1584
1585 Py_INCREF(Py_None);
1586 return Py_None;
1587 }
1588 }
1589
1590 /* Raise an exception if the arguments couldn't be parsed. */
1591 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_Intersect, SIP_NULLPTR);
1592
1593 return SIP_NULLPTR;
1594 }
1595
1596
1597 PyDoc_STRVAR(doc_wxRect2DDouble_CreateIntersection, "CreateIntersection(otherRect) -> Rect2DDouble");
1598
1599 extern "C" {static PyObject *meth_wxRect2DDouble_CreateIntersection(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_CreateIntersection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1600 static PyObject *meth_wxRect2DDouble_CreateIntersection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1601 {
1602 PyObject *sipParseErr = SIP_NULLPTR;
1603
1604 {
1605 const ::wxRect2DDouble* otherRect;
1606 int otherRectState = 0;
1607 const ::wxRect2DDouble *sipCpp;
1608
1609 static const char *sipKwdList[] = {
1610 sipName_otherRect,
1611 };
1612
1613 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxRect2DDouble, &otherRect, &otherRectState))
1614 {
1615 ::wxRect2DDouble*sipRes;
1616
1617 PyErr_Clear();
1618
1619 Py_BEGIN_ALLOW_THREADS
1620 sipRes = new ::wxRect2DDouble(sipCpp->CreateIntersection(*otherRect));
1621 Py_END_ALLOW_THREADS
1622 sipReleaseType(const_cast< ::wxRect2DDouble *>(otherRect),sipType_wxRect2DDouble,otherRectState);
1623
1624 if (PyErr_Occurred())
1625 return 0;
1626
1627 return sipConvertFromNewType(sipRes,sipType_wxRect2DDouble,SIP_NULLPTR);
1628 }
1629 }
1630
1631 /* Raise an exception if the arguments couldn't be parsed. */
1632 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_CreateIntersection, SIP_NULLPTR);
1633
1634 return SIP_NULLPTR;
1635 }
1636
1637
1638 PyDoc_STRVAR(doc_wxRect2DDouble_Intersects, "Intersects(rect) -> bool");
1639
1640 extern "C" {static PyObject *meth_wxRect2DDouble_Intersects(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_Intersects(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1641 static PyObject *meth_wxRect2DDouble_Intersects(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1642 {
1643 PyObject *sipParseErr = SIP_NULLPTR;
1644
1645 {
1646 const ::wxRect2DDouble* rect;
1647 int rectState = 0;
1648 const ::wxRect2DDouble *sipCpp;
1649
1650 static const char *sipKwdList[] = {
1651 sipName_rect,
1652 };
1653
1654 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxRect2DDouble, &rect, &rectState))
1655 {
1656 bool sipRes;
1657
1658 PyErr_Clear();
1659
1660 Py_BEGIN_ALLOW_THREADS
1661 sipRes = sipCpp->Intersects(*rect);
1662 Py_END_ALLOW_THREADS
1663 sipReleaseType(const_cast< ::wxRect2DDouble *>(rect),sipType_wxRect2DDouble,rectState);
1664
1665 if (PyErr_Occurred())
1666 return 0;
1667
1668 return PyBool_FromLong(sipRes);
1669 }
1670 }
1671
1672 /* Raise an exception if the arguments couldn't be parsed. */
1673 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_Intersects, SIP_NULLPTR);
1674
1675 return SIP_NULLPTR;
1676 }
1677
1678
1679 PyDoc_STRVAR(doc_wxRect2DDouble_Union, "Union(otherRect)\n"
1680 "Union(pt)\n"
1681 "Union(src1, src2, dest)\n"
1682 "\n"
1683 "");
1684
1685 extern "C" {static PyObject *meth_wxRect2DDouble_Union(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_Union(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1686 static PyObject *meth_wxRect2DDouble_Union(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1687 {
1688 PyObject *sipParseErr = SIP_NULLPTR;
1689
1690 {
1691 const ::wxRect2DDouble* otherRect;
1692 int otherRectState = 0;
1693 ::wxRect2DDouble *sipCpp;
1694
1695 static const char *sipKwdList[] = {
1696 sipName_otherRect,
1697 };
1698
1699 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxRect2DDouble, &otherRect, &otherRectState))
1700 {
1701 PyErr_Clear();
1702
1703 Py_BEGIN_ALLOW_THREADS
1704 sipCpp->Union(*otherRect);
1705 Py_END_ALLOW_THREADS
1706 sipReleaseType(const_cast< ::wxRect2DDouble *>(otherRect),sipType_wxRect2DDouble,otherRectState);
1707
1708 if (PyErr_Occurred())
1709 return 0;
1710
1711 Py_INCREF(Py_None);
1712 return Py_None;
1713 }
1714 }
1715
1716 {
1717 const ::wxPoint2DDouble* pt;
1718 int ptState = 0;
1719 ::wxRect2DDouble *sipCpp;
1720
1721 static const char *sipKwdList[] = {
1722 sipName_pt,
1723 };
1724
1725 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxPoint2DDouble, &pt, &ptState))
1726 {
1727 PyErr_Clear();
1728
1729 Py_BEGIN_ALLOW_THREADS
1730 sipCpp->Union(*pt);
1731 Py_END_ALLOW_THREADS
1732 sipReleaseType(const_cast< ::wxPoint2DDouble *>(pt),sipType_wxPoint2DDouble,ptState);
1733
1734 if (PyErr_Occurred())
1735 return 0;
1736
1737 Py_INCREF(Py_None);
1738 return Py_None;
1739 }
1740 }
1741
1742 {
1743 const ::wxRect2DDouble* src1;
1744 int src1State = 0;
1745 const ::wxRect2DDouble* src2;
1746 int src2State = 0;
1747 ::wxRect2DDouble* dest;
1748 int destState = 0;
1749
1750 static const char *sipKwdList[] = {
1751 sipName_src1,
1752 sipName_src2,
1753 sipName_dest,
1754 };
1755
1756 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1J1J0", sipType_wxRect2DDouble, &src1, &src1State, sipType_wxRect2DDouble, &src2, &src2State, sipType_wxRect2DDouble, &dest, &destState))
1757 {
1758 PyErr_Clear();
1759
1760 Py_BEGIN_ALLOW_THREADS
1761 ::wxRect2DDouble::Union(*src1,*src2,dest);
1762 Py_END_ALLOW_THREADS
1763 sipReleaseType(const_cast< ::wxRect2DDouble *>(src1),sipType_wxRect2DDouble,src1State);
1764 sipReleaseType(const_cast< ::wxRect2DDouble *>(src2),sipType_wxRect2DDouble,src2State);
1765 sipReleaseType(dest,sipType_wxRect2DDouble,destState);
1766
1767 if (PyErr_Occurred())
1768 return 0;
1769
1770 Py_INCREF(Py_None);
1771 return Py_None;
1772 }
1773 }
1774
1775 /* Raise an exception if the arguments couldn't be parsed. */
1776 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_Union, SIP_NULLPTR);
1777
1778 return SIP_NULLPTR;
1779 }
1780
1781
1782 PyDoc_STRVAR(doc_wxRect2DDouble_CreateUnion, "CreateUnion(otherRect) -> Rect2DDouble");
1783
1784 extern "C" {static PyObject *meth_wxRect2DDouble_CreateUnion(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_CreateUnion(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1785 static PyObject *meth_wxRect2DDouble_CreateUnion(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1786 {
1787 PyObject *sipParseErr = SIP_NULLPTR;
1788
1789 {
1790 const ::wxRect2DDouble* otherRect;
1791 int otherRectState = 0;
1792 const ::wxRect2DDouble *sipCpp;
1793
1794 static const char *sipKwdList[] = {
1795 sipName_otherRect,
1796 };
1797
1798 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRect2DDouble, &sipCpp, sipType_wxRect2DDouble, &otherRect, &otherRectState))
1799 {
1800 ::wxRect2DDouble*sipRes;
1801
1802 PyErr_Clear();
1803
1804 Py_BEGIN_ALLOW_THREADS
1805 sipRes = new ::wxRect2DDouble(sipCpp->CreateUnion(*otherRect));
1806 Py_END_ALLOW_THREADS
1807 sipReleaseType(const_cast< ::wxRect2DDouble *>(otherRect),sipType_wxRect2DDouble,otherRectState);
1808
1809 if (PyErr_Occurred())
1810 return 0;
1811
1812 return sipConvertFromNewType(sipRes,sipType_wxRect2DDouble,SIP_NULLPTR);
1813 }
1814 }
1815
1816 /* Raise an exception if the arguments couldn't be parsed. */
1817 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_CreateUnion, SIP_NULLPTR);
1818
1819 return SIP_NULLPTR;
1820 }
1821
1822
1823 PyDoc_STRVAR(doc_wxRect2DDouble_Scale, "Scale(f)\n"
1824 "Scale(num, denum)\n"
1825 "");
1826
1827 extern "C" {static PyObject *meth_wxRect2DDouble_Scale(PyObject *, PyObject *, PyObject *);}
meth_wxRect2DDouble_Scale(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1828 static PyObject *meth_wxRect2DDouble_Scale(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1829 {
1830 PyObject *sipParseErr = SIP_NULLPTR;
1831
1832 {
1833 ::wxDouble f;
1834 ::wxRect2DDouble *sipCpp;
1835
1836 static const char *sipKwdList[] = {
1837 sipName_f,
1838 };
1839
1840 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bd", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &f))
1841 {
1842 PyErr_Clear();
1843
1844 Py_BEGIN_ALLOW_THREADS
1845 sipCpp->Scale(f);
1846 Py_END_ALLOW_THREADS
1847
1848 if (PyErr_Occurred())
1849 return 0;
1850
1851 Py_INCREF(Py_None);
1852 return Py_None;
1853 }
1854 }
1855
1856 {
1857 ::wxInt32 num;
1858 ::wxInt32 denum;
1859 ::wxRect2DDouble *sipCpp;
1860
1861 static const char *sipKwdList[] = {
1862 sipName_num,
1863 sipName_denum,
1864 };
1865
1866 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxRect2DDouble, &sipCpp, &num, &denum))
1867 {
1868 PyErr_Clear();
1869
1870 Py_BEGIN_ALLOW_THREADS
1871 sipCpp->Scale(num,denum);
1872 Py_END_ALLOW_THREADS
1873
1874 if (PyErr_Occurred())
1875 return 0;
1876
1877 Py_INCREF(Py_None);
1878 return Py_None;
1879 }
1880 }
1881
1882 /* Raise an exception if the arguments couldn't be parsed. */
1883 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_Scale, SIP_NULLPTR);
1884
1885 return SIP_NULLPTR;
1886 }
1887
1888
1889 PyDoc_STRVAR(doc_wxRect2DDouble_Get, "Get() -> PyObject\n"
1890 "\n"
1891 "Get() -> (x, y, width, height)\n"
1892 "\n"
1893 "Return the rectangle's properties as a tuple.");
1894
1895 extern "C" {static PyObject *meth_wxRect2DDouble_Get(PyObject *, PyObject *);}
meth_wxRect2DDouble_Get(PyObject * sipSelf,PyObject * sipArgs)1896 static PyObject *meth_wxRect2DDouble_Get(PyObject *sipSelf, PyObject *sipArgs)
1897 {
1898 PyObject *sipParseErr = SIP_NULLPTR;
1899
1900 {
1901 ::wxRect2DDouble *sipCpp;
1902
1903 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRect2DDouble, &sipCpp))
1904 {
1905 PyObject * sipRes = SIP_NULLPTR;
1906 int sipIsErr = 0;
1907
1908 PyErr_Clear();
1909 Py_BEGIN_ALLOW_THREADS
1910 sipRes = _wxRect2DDouble_Get(sipCpp);
1911 Py_END_ALLOW_THREADS
1912 if (PyErr_Occurred()) sipIsErr = 1;
1913
1914 if (sipIsErr)
1915 return 0;
1916
1917 return sipRes;
1918 }
1919 }
1920
1921 /* Raise an exception if the arguments couldn't be parsed. */
1922 sipNoMethod(sipParseErr, sipName_Rect2D, sipName_Get, SIP_NULLPTR);
1923
1924 return SIP_NULLPTR;
1925 }
1926
1927
1928 extern "C" {static PyObject *slot_wxRect2DDouble___ne__(PyObject *,PyObject *);}
slot_wxRect2DDouble___ne__(PyObject * sipSelf,PyObject * sipArg)1929 static PyObject *slot_wxRect2DDouble___ne__(PyObject *sipSelf,PyObject *sipArg)
1930 {
1931 ::wxRect2DDouble *sipCpp = reinterpret_cast< ::wxRect2DDouble *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxRect2DDouble));
1932
1933 if (!sipCpp)
1934 return SIP_NULLPTR;
1935
1936 PyObject *sipParseErr = SIP_NULLPTR;
1937
1938 {
1939 const ::wxRect2DDouble* rect;
1940 int rectState = 0;
1941
1942 if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_wxRect2DDouble, &rect, &rectState))
1943 {
1944 bool sipRes;
1945
1946 PyErr_Clear();
1947
1948 Py_BEGIN_ALLOW_THREADS
1949 sipRes = sipCpp-> ::wxRect2DDouble::operator!=(*rect);
1950 Py_END_ALLOW_THREADS
1951 sipReleaseType(const_cast< ::wxRect2DDouble *>(rect),sipType_wxRect2DDouble,rectState);
1952
1953 if (PyErr_Occurred())
1954 return 0;
1955
1956 return PyBool_FromLong(sipRes);
1957 }
1958 }
1959
1960 Py_XDECREF(sipParseErr);
1961
1962 if (sipParseErr == Py_None)
1963 return SIP_NULLPTR;
1964
1965 return sipPySlotExtend(&sipModuleAPI__core, ne_slot, sipType_wxRect2DDouble, sipSelf, sipArg);
1966 }
1967
1968
1969 extern "C" {static PyObject *slot_wxRect2DDouble___eq__(PyObject *,PyObject *);}
slot_wxRect2DDouble___eq__(PyObject * sipSelf,PyObject * sipArg)1970 static PyObject *slot_wxRect2DDouble___eq__(PyObject *sipSelf,PyObject *sipArg)
1971 {
1972 ::wxRect2DDouble *sipCpp = reinterpret_cast< ::wxRect2DDouble *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxRect2DDouble));
1973
1974 if (!sipCpp)
1975 return SIP_NULLPTR;
1976
1977 PyObject *sipParseErr = SIP_NULLPTR;
1978
1979 {
1980 const ::wxRect2DDouble* rect;
1981 int rectState = 0;
1982
1983 if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_wxRect2DDouble, &rect, &rectState))
1984 {
1985 bool sipRes;
1986
1987 PyErr_Clear();
1988
1989 Py_BEGIN_ALLOW_THREADS
1990 sipRes = sipCpp-> ::wxRect2DDouble::operator==(*rect);
1991 Py_END_ALLOW_THREADS
1992 sipReleaseType(const_cast< ::wxRect2DDouble *>(rect),sipType_wxRect2DDouble,rectState);
1993
1994 if (PyErr_Occurred())
1995 return 0;
1996
1997 return PyBool_FromLong(sipRes);
1998 }
1999 }
2000
2001 Py_XDECREF(sipParseErr);
2002
2003 if (sipParseErr == Py_None)
2004 return SIP_NULLPTR;
2005
2006 return sipPySlotExtend(&sipModuleAPI__core, eq_slot, sipType_wxRect2DDouble, sipSelf, sipArg);
2007 }
2008
2009
2010 /* Call the instance's destructor. */
2011 extern "C" {static void release_wxRect2DDouble(void *, int);}
release_wxRect2DDouble(void * sipCppV,int)2012 static void release_wxRect2DDouble(void *sipCppV, int)
2013 {
2014 Py_BEGIN_ALLOW_THREADS
2015
2016 delete reinterpret_cast< ::wxRect2DDouble *>(sipCppV);
2017
2018 Py_END_ALLOW_THREADS
2019 }
2020
2021
2022 extern "C" {static void assign_wxRect2DDouble(void *, SIP_SSIZE_T, void *);}
assign_wxRect2DDouble(void * sipDst,SIP_SSIZE_T sipDstIdx,void * sipSrc)2023 static void assign_wxRect2DDouble(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
2024 {
2025 reinterpret_cast< ::wxRect2DDouble *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::wxRect2DDouble *>(sipSrc);
2026 }
2027
2028
2029 extern "C" {static void *array_wxRect2DDouble(SIP_SSIZE_T);}
array_wxRect2DDouble(SIP_SSIZE_T sipNrElem)2030 static void *array_wxRect2DDouble(SIP_SSIZE_T sipNrElem)
2031 {
2032 return new ::wxRect2DDouble[sipNrElem];
2033 }
2034
2035
2036 extern "C" {static void *copy_wxRect2DDouble(const void *, SIP_SSIZE_T);}
copy_wxRect2DDouble(const void * sipSrc,SIP_SSIZE_T sipSrcIdx)2037 static void *copy_wxRect2DDouble(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
2038 {
2039 return new ::wxRect2DDouble(reinterpret_cast<const ::wxRect2DDouble *>(sipSrc)[sipSrcIdx]);
2040 }
2041
2042
2043 extern "C" {static void dealloc_wxRect2DDouble(sipSimpleWrapper *);}
dealloc_wxRect2DDouble(sipSimpleWrapper * sipSelf)2044 static void dealloc_wxRect2DDouble(sipSimpleWrapper *sipSelf)
2045 {
2046 if (sipIsOwnedByPython(sipSelf))
2047 {
2048 release_wxRect2DDouble(sipGetAddress(sipSelf), 0);
2049 }
2050 }
2051
2052
2053 extern "C" {static void *init_type_wxRect2DDouble(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxRect2DDouble(sipSimpleWrapper *,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)2054 static void *init_type_wxRect2DDouble(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
2055 {
2056 ::wxRect2DDouble *sipCpp = SIP_NULLPTR;
2057
2058 {
2059 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
2060 {
2061 PyErr_Clear();
2062
2063 Py_BEGIN_ALLOW_THREADS
2064 sipCpp = new ::wxRect2DDouble();
2065 Py_END_ALLOW_THREADS
2066
2067 if (PyErr_Occurred())
2068 {
2069 delete sipCpp;
2070 return SIP_NULLPTR;
2071 }
2072
2073 return sipCpp;
2074 }
2075 }
2076
2077 {
2078 ::wxDouble x;
2079 ::wxDouble y;
2080 ::wxDouble w;
2081 ::wxDouble h;
2082
2083 static const char *sipKwdList[] = {
2084 sipName_x,
2085 sipName_y,
2086 sipName_w,
2087 sipName_h,
2088 };
2089
2090 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "dddd", &x, &y, &w, &h))
2091 {
2092 PyErr_Clear();
2093
2094 Py_BEGIN_ALLOW_THREADS
2095 sipCpp = new ::wxRect2DDouble(x,y,w,h);
2096 Py_END_ALLOW_THREADS
2097
2098 if (PyErr_Occurred())
2099 {
2100 delete sipCpp;
2101 return SIP_NULLPTR;
2102 }
2103
2104 return sipCpp;
2105 }
2106 }
2107
2108 {
2109 const ::wxRect2DDouble* a0;
2110 int a0State = 0;
2111
2112 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J1", sipType_wxRect2DDouble, &a0, &a0State))
2113 {
2114 Py_BEGIN_ALLOW_THREADS
2115 sipCpp = new ::wxRect2DDouble(*a0);
2116 Py_END_ALLOW_THREADS
2117 sipReleaseType(const_cast< ::wxRect2DDouble *>(a0),sipType_wxRect2DDouble,a0State);
2118
2119 return sipCpp;
2120 }
2121 }
2122
2123 return SIP_NULLPTR;
2124 }
2125
2126
2127 extern "C" {static int convertTo_wxRect2DDouble(PyObject *, void **, int *, PyObject *);}
convertTo_wxRect2DDouble(PyObject * sipPy,void ** sipCppPtrV,int * sipIsErr,PyObject * sipTransferObj)2128 static int convertTo_wxRect2DDouble(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
2129 {
2130 ::wxRect2DDouble **sipCppPtr = reinterpret_cast< ::wxRect2DDouble **>(sipCppPtrV);
2131
2132 // is it just a typecheck?
2133 if (!sipIsErr) {
2134 // is it already an instance of wxRect2DDouble?
2135 if (sipCanConvertToType(sipPy, sipType_wxRect2DDouble, SIP_NO_CONVERTORS))
2136 return 1;
2137
2138 if (wxPyNumberSequenceCheck(sipPy, 4)) {
2139 return 1;
2140 }
2141 return 0;
2142 }
2143
2144 // otherwise do the conversion
2145 if (sipCanConvertToType(sipPy, sipType_wxRect2DDouble, SIP_NO_CONVERTORS)) {
2146 // Just fetch the existing instance
2147 *sipCppPtr = reinterpret_cast<wxRect2DDouble*>(sipConvertToType(
2148 sipPy, sipType_wxRect2DDouble, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));
2149 return 0; // not a new instance
2150 }
2151
2152 // or create a new instance
2153 PyObject* o1 = PySequence_ITEM(sipPy, 0);
2154 PyObject* o2 = PySequence_ITEM(sipPy, 1);
2155 PyObject* o3 = PySequence_ITEM(sipPy, 2);
2156 PyObject* o4 = PySequence_ITEM(sipPy, 3);
2157 *sipCppPtr = new wxRect2DDouble(PyFloat_AsDouble(o1), PyFloat_AsDouble(o2),
2158 PyFloat_AsDouble(o3), PyFloat_AsDouble(o4));
2159 Py_DECREF(o1);
2160 Py_DECREF(o2);
2161 Py_DECREF(o3);
2162 Py_DECREF(o4);
2163 return SIP_TEMPORARY;
2164 }
2165
2166
2167 /* Define this type's Python slots. */
2168 static sipPySlotDef slots_wxRect2DDouble[] = {
2169 {(void *)slot_wxRect2DDouble___ne__, ne_slot},
2170 {(void *)slot_wxRect2DDouble___eq__, eq_slot},
2171 {0, (sipPySlotType)0}
2172 };
2173
2174
2175 static PyMethodDef methods_wxRect2DDouble[] = {
2176 {SIP_MLNAME_CAST(sipName_ConstrainTo), SIP_MLMETH_CAST(meth_wxRect2DDouble_ConstrainTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_ConstrainTo)},
2177 {SIP_MLNAME_CAST(sipName_Contains), SIP_MLMETH_CAST(meth_wxRect2DDouble_Contains), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_Contains)},
2178 {SIP_MLNAME_CAST(sipName_CreateIntersection), SIP_MLMETH_CAST(meth_wxRect2DDouble_CreateIntersection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_CreateIntersection)},
2179 {SIP_MLNAME_CAST(sipName_CreateUnion), SIP_MLMETH_CAST(meth_wxRect2DDouble_CreateUnion), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_CreateUnion)},
2180 {SIP_MLNAME_CAST(sipName_Get), meth_wxRect2DDouble_Get, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_Get)},
2181 {SIP_MLNAME_CAST(sipName_GetBottom), meth_wxRect2DDouble_GetBottom, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetBottom)},
2182 {SIP_MLNAME_CAST(sipName_GetCentre), meth_wxRect2DDouble_GetCentre, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetCentre)},
2183 {SIP_MLNAME_CAST(sipName_GetLeft), meth_wxRect2DDouble_GetLeft, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetLeft)},
2184 {SIP_MLNAME_CAST(sipName_GetLeftBottom), meth_wxRect2DDouble_GetLeftBottom, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetLeftBottom)},
2185 {SIP_MLNAME_CAST(sipName_GetLeftTop), meth_wxRect2DDouble_GetLeftTop, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetLeftTop)},
2186 {SIP_MLNAME_CAST(sipName_GetOutCode), SIP_MLMETH_CAST(meth_wxRect2DDouble_GetOutCode), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetOutCode)},
2187 {SIP_MLNAME_CAST(sipName_GetOutcode), SIP_MLMETH_CAST(meth_wxRect2DDouble_GetOutcode), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetOutcode)},
2188 {SIP_MLNAME_CAST(sipName_GetPosition), meth_wxRect2DDouble_GetPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetPosition)},
2189 {SIP_MLNAME_CAST(sipName_GetRight), meth_wxRect2DDouble_GetRight, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetRight)},
2190 {SIP_MLNAME_CAST(sipName_GetRightBottom), meth_wxRect2DDouble_GetRightBottom, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetRightBottom)},
2191 {SIP_MLNAME_CAST(sipName_GetRightTop), meth_wxRect2DDouble_GetRightTop, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetRightTop)},
2192 {SIP_MLNAME_CAST(sipName_GetSize), meth_wxRect2DDouble_GetSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetSize)},
2193 {SIP_MLNAME_CAST(sipName_GetTop), meth_wxRect2DDouble_GetTop, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_GetTop)},
2194 {SIP_MLNAME_CAST(sipName_HaveEqualSize), SIP_MLMETH_CAST(meth_wxRect2DDouble_HaveEqualSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_HaveEqualSize)},
2195 {SIP_MLNAME_CAST(sipName_Inset), SIP_MLMETH_CAST(meth_wxRect2DDouble_Inset), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_Inset)},
2196 {SIP_MLNAME_CAST(sipName_Interpolate), SIP_MLMETH_CAST(meth_wxRect2DDouble_Interpolate), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_Interpolate)},
2197 {SIP_MLNAME_CAST(sipName_Intersect), SIP_MLMETH_CAST(meth_wxRect2DDouble_Intersect), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_Intersect)},
2198 {SIP_MLNAME_CAST(sipName_Intersects), SIP_MLMETH_CAST(meth_wxRect2DDouble_Intersects), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_Intersects)},
2199 {SIP_MLNAME_CAST(sipName_IsEmpty), meth_wxRect2DDouble_IsEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRect2DDouble_IsEmpty)},
2200 {SIP_MLNAME_CAST(sipName_MoveBottomTo), SIP_MLMETH_CAST(meth_wxRect2DDouble_MoveBottomTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_MoveBottomTo)},
2201 {SIP_MLNAME_CAST(sipName_MoveCentreTo), SIP_MLMETH_CAST(meth_wxRect2DDouble_MoveCentreTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_MoveCentreTo)},
2202 {SIP_MLNAME_CAST(sipName_MoveLeftBottomTo), SIP_MLMETH_CAST(meth_wxRect2DDouble_MoveLeftBottomTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_MoveLeftBottomTo)},
2203 {SIP_MLNAME_CAST(sipName_MoveLeftTo), SIP_MLMETH_CAST(meth_wxRect2DDouble_MoveLeftTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_MoveLeftTo)},
2204 {SIP_MLNAME_CAST(sipName_MoveLeftTopTo), SIP_MLMETH_CAST(meth_wxRect2DDouble_MoveLeftTopTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_MoveLeftTopTo)},
2205 {SIP_MLNAME_CAST(sipName_MoveRightBottomTo), SIP_MLMETH_CAST(meth_wxRect2DDouble_MoveRightBottomTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_MoveRightBottomTo)},
2206 {SIP_MLNAME_CAST(sipName_MoveRightTo), SIP_MLMETH_CAST(meth_wxRect2DDouble_MoveRightTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_MoveRightTo)},
2207 {SIP_MLNAME_CAST(sipName_MoveRightTopTo), SIP_MLMETH_CAST(meth_wxRect2DDouble_MoveRightTopTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_MoveRightTopTo)},
2208 {SIP_MLNAME_CAST(sipName_MoveTopTo), SIP_MLMETH_CAST(meth_wxRect2DDouble_MoveTopTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_MoveTopTo)},
2209 {SIP_MLNAME_CAST(sipName_Offset), SIP_MLMETH_CAST(meth_wxRect2DDouble_Offset), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_Offset)},
2210 {SIP_MLNAME_CAST(sipName_Scale), SIP_MLMETH_CAST(meth_wxRect2DDouble_Scale), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_Scale)},
2211 {SIP_MLNAME_CAST(sipName_SetBottom), SIP_MLMETH_CAST(meth_wxRect2DDouble_SetBottom), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_SetBottom)},
2212 {SIP_MLNAME_CAST(sipName_SetCentre), SIP_MLMETH_CAST(meth_wxRect2DDouble_SetCentre), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_SetCentre)},
2213 {SIP_MLNAME_CAST(sipName_SetLeft), SIP_MLMETH_CAST(meth_wxRect2DDouble_SetLeft), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_SetLeft)},
2214 {SIP_MLNAME_CAST(sipName_SetLeftBottom), SIP_MLMETH_CAST(meth_wxRect2DDouble_SetLeftBottom), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_SetLeftBottom)},
2215 {SIP_MLNAME_CAST(sipName_SetLeftTop), SIP_MLMETH_CAST(meth_wxRect2DDouble_SetLeftTop), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_SetLeftTop)},
2216 {SIP_MLNAME_CAST(sipName_SetRight), SIP_MLMETH_CAST(meth_wxRect2DDouble_SetRight), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_SetRight)},
2217 {SIP_MLNAME_CAST(sipName_SetRightBottom), SIP_MLMETH_CAST(meth_wxRect2DDouble_SetRightBottom), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_SetRightBottom)},
2218 {SIP_MLNAME_CAST(sipName_SetRightTop), SIP_MLMETH_CAST(meth_wxRect2DDouble_SetRightTop), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_SetRightTop)},
2219 {SIP_MLNAME_CAST(sipName_SetTop), SIP_MLMETH_CAST(meth_wxRect2DDouble_SetTop), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_SetTop)},
2220 {SIP_MLNAME_CAST(sipName_Union), SIP_MLMETH_CAST(meth_wxRect2DDouble_Union), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRect2DDouble_Union)}
2221 };
2222
2223
2224 extern "C" {static PyObject *varget_wxRect2DDouble_m_height(void *, PyObject *, PyObject *);}
varget_wxRect2DDouble_m_height(void * sipSelf,PyObject *,PyObject *)2225 static PyObject *varget_wxRect2DDouble_m_height(void *sipSelf, PyObject *, PyObject *)
2226 {
2227 ::wxDouble sipVal;
2228 ::wxRect2DDouble *sipCpp = reinterpret_cast< ::wxRect2DDouble *>(sipSelf);
2229
2230 sipVal = sipCpp->m_height;
2231
2232 return PyFloat_FromDouble(sipVal);
2233 }
2234
2235
2236 extern "C" {static int varset_wxRect2DDouble_m_height(void *, PyObject *, PyObject *);}
varset_wxRect2DDouble_m_height(void * sipSelf,PyObject * sipPy,PyObject *)2237 static int varset_wxRect2DDouble_m_height(void *sipSelf, PyObject *sipPy, PyObject *)
2238 {
2239 ::wxDouble sipVal;
2240 ::wxRect2DDouble *sipCpp = reinterpret_cast< ::wxRect2DDouble *>(sipSelf);
2241
2242 sipVal = PyFloat_AsDouble(sipPy);
2243
2244 if (PyErr_Occurred() != SIP_NULLPTR)
2245 return -1;
2246
2247 sipCpp->m_height = sipVal;
2248
2249 return 0;
2250 }
2251
2252
2253 extern "C" {static PyObject *varget_wxRect2DDouble_m_width(void *, PyObject *, PyObject *);}
varget_wxRect2DDouble_m_width(void * sipSelf,PyObject *,PyObject *)2254 static PyObject *varget_wxRect2DDouble_m_width(void *sipSelf, PyObject *, PyObject *)
2255 {
2256 ::wxDouble sipVal;
2257 ::wxRect2DDouble *sipCpp = reinterpret_cast< ::wxRect2DDouble *>(sipSelf);
2258
2259 sipVal = sipCpp->m_width;
2260
2261 return PyFloat_FromDouble(sipVal);
2262 }
2263
2264
2265 extern "C" {static int varset_wxRect2DDouble_m_width(void *, PyObject *, PyObject *);}
varset_wxRect2DDouble_m_width(void * sipSelf,PyObject * sipPy,PyObject *)2266 static int varset_wxRect2DDouble_m_width(void *sipSelf, PyObject *sipPy, PyObject *)
2267 {
2268 ::wxDouble sipVal;
2269 ::wxRect2DDouble *sipCpp = reinterpret_cast< ::wxRect2DDouble *>(sipSelf);
2270
2271 sipVal = PyFloat_AsDouble(sipPy);
2272
2273 if (PyErr_Occurred() != SIP_NULLPTR)
2274 return -1;
2275
2276 sipCpp->m_width = sipVal;
2277
2278 return 0;
2279 }
2280
2281
2282 extern "C" {static PyObject *varget_wxRect2DDouble_m_x(void *, PyObject *, PyObject *);}
varget_wxRect2DDouble_m_x(void * sipSelf,PyObject *,PyObject *)2283 static PyObject *varget_wxRect2DDouble_m_x(void *sipSelf, PyObject *, PyObject *)
2284 {
2285 ::wxDouble sipVal;
2286 ::wxRect2DDouble *sipCpp = reinterpret_cast< ::wxRect2DDouble *>(sipSelf);
2287
2288 sipVal = sipCpp->m_x;
2289
2290 return PyFloat_FromDouble(sipVal);
2291 }
2292
2293
2294 extern "C" {static int varset_wxRect2DDouble_m_x(void *, PyObject *, PyObject *);}
varset_wxRect2DDouble_m_x(void * sipSelf,PyObject * sipPy,PyObject *)2295 static int varset_wxRect2DDouble_m_x(void *sipSelf, PyObject *sipPy, PyObject *)
2296 {
2297 ::wxDouble sipVal;
2298 ::wxRect2DDouble *sipCpp = reinterpret_cast< ::wxRect2DDouble *>(sipSelf);
2299
2300 sipVal = PyFloat_AsDouble(sipPy);
2301
2302 if (PyErr_Occurred() != SIP_NULLPTR)
2303 return -1;
2304
2305 sipCpp->m_x = sipVal;
2306
2307 return 0;
2308 }
2309
2310
2311 extern "C" {static PyObject *varget_wxRect2DDouble_m_y(void *, PyObject *, PyObject *);}
varget_wxRect2DDouble_m_y(void * sipSelf,PyObject *,PyObject *)2312 static PyObject *varget_wxRect2DDouble_m_y(void *sipSelf, PyObject *, PyObject *)
2313 {
2314 ::wxDouble sipVal;
2315 ::wxRect2DDouble *sipCpp = reinterpret_cast< ::wxRect2DDouble *>(sipSelf);
2316
2317 sipVal = sipCpp->m_y;
2318
2319 return PyFloat_FromDouble(sipVal);
2320 }
2321
2322
2323 extern "C" {static int varset_wxRect2DDouble_m_y(void *, PyObject *, PyObject *);}
varset_wxRect2DDouble_m_y(void * sipSelf,PyObject * sipPy,PyObject *)2324 static int varset_wxRect2DDouble_m_y(void *sipSelf, PyObject *sipPy, PyObject *)
2325 {
2326 ::wxDouble sipVal;
2327 ::wxRect2DDouble *sipCpp = reinterpret_cast< ::wxRect2DDouble *>(sipSelf);
2328
2329 sipVal = PyFloat_AsDouble(sipPy);
2330
2331 if (PyErr_Occurred() != SIP_NULLPTR)
2332 return -1;
2333
2334 sipCpp->m_y = sipVal;
2335
2336 return 0;
2337 }
2338
2339 sipVariableDef variables_wxRect2DDouble[] = {
2340 {PropertyVariable, sipName_Top, &methods_wxRect2DDouble[17], &methods_wxRect2DDouble[43], SIP_NULLPTR, SIP_NULLPTR},
2341 {PropertyVariable, sipName_Size, &methods_wxRect2DDouble[16], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2342 {PropertyVariable, sipName_RightTop, &methods_wxRect2DDouble[15], &methods_wxRect2DDouble[42], SIP_NULLPTR, SIP_NULLPTR},
2343 {PropertyVariable, sipName_RightBottom, &methods_wxRect2DDouble[14], &methods_wxRect2DDouble[41], SIP_NULLPTR, SIP_NULLPTR},
2344 {PropertyVariable, sipName_Right, &methods_wxRect2DDouble[13], &methods_wxRect2DDouble[40], SIP_NULLPTR, SIP_NULLPTR},
2345 {PropertyVariable, sipName_Position, &methods_wxRect2DDouble[12], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2346 {PropertyVariable, sipName_LeftTop, &methods_wxRect2DDouble[9], &methods_wxRect2DDouble[39], SIP_NULLPTR, SIP_NULLPTR},
2347 {PropertyVariable, sipName_LeftBottom, &methods_wxRect2DDouble[8], &methods_wxRect2DDouble[38], SIP_NULLPTR, SIP_NULLPTR},
2348 {PropertyVariable, sipName_Left, &methods_wxRect2DDouble[7], &methods_wxRect2DDouble[37], SIP_NULLPTR, SIP_NULLPTR},
2349 {PropertyVariable, sipName_Centre, &methods_wxRect2DDouble[6], &methods_wxRect2DDouble[36], SIP_NULLPTR, SIP_NULLPTR},
2350 {PropertyVariable, sipName_Bottom, &methods_wxRect2DDouble[5], &methods_wxRect2DDouble[35], SIP_NULLPTR, SIP_NULLPTR},
2351 {InstanceVariable, sipName_height, (PyMethodDef *)varget_wxRect2DDouble_m_height, (PyMethodDef *)varset_wxRect2DDouble_m_height, SIP_NULLPTR, SIP_NULLPTR},
2352 {InstanceVariable, sipName_width, (PyMethodDef *)varget_wxRect2DDouble_m_width, (PyMethodDef *)varset_wxRect2DDouble_m_width, SIP_NULLPTR, SIP_NULLPTR},
2353 {InstanceVariable, sipName_x, (PyMethodDef *)varget_wxRect2DDouble_m_x, (PyMethodDef *)varset_wxRect2DDouble_m_x, SIP_NULLPTR, SIP_NULLPTR},
2354 {InstanceVariable, sipName_y, (PyMethodDef *)varget_wxRect2DDouble_m_y, (PyMethodDef *)varset_wxRect2DDouble_m_y, SIP_NULLPTR, SIP_NULLPTR},
2355 };
2356
2357 PyDoc_STRVAR(doc_wxRect2DDouble, "Rect2DDouble()\n"
2358 "Rect2DDouble(x, y, w, h)");
2359
2360
2361 sipClassTypeDef sipTypeDef__core_wxRect2DDouble = {
2362 {
2363 -1,
2364 SIP_NULLPTR,
2365 SIP_NULLPTR,
2366 SIP_TYPE_CLASS,
2367 sipNameNr_wxRect2DDouble,
2368 {SIP_NULLPTR},
2369 SIP_NULLPTR
2370 },
2371 {
2372 sipNameNr_Rect2D,
2373 {0, 0, 1},
2374 45, methods_wxRect2DDouble,
2375 0, SIP_NULLPTR,
2376 15, variables_wxRect2DDouble,
2377 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2378 },
2379 doc_wxRect2DDouble,
2380 -1,
2381 -1,
2382 SIP_NULLPTR,
2383 slots_wxRect2DDouble,
2384 init_type_wxRect2DDouble,
2385 SIP_NULLPTR,
2386 SIP_NULLPTR,
2387 #if PY_MAJOR_VERSION >= 3
2388 SIP_NULLPTR,
2389 SIP_NULLPTR,
2390 #else
2391 SIP_NULLPTR,
2392 SIP_NULLPTR,
2393 SIP_NULLPTR,
2394 SIP_NULLPTR,
2395 #endif
2396 dealloc_wxRect2DDouble,
2397 assign_wxRect2DDouble,
2398 array_wxRect2DDouble,
2399 copy_wxRect2DDouble,
2400 release_wxRect2DDouble,
2401 SIP_NULLPTR,
2402 convertTo_wxRect2DDouble,
2403 SIP_NULLPTR,
2404 SIP_NULLPTR,
2405 SIP_NULLPTR,
2406 SIP_NULLPTR,
2407 SIP_NULLPTR
2408 };
2409