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_adv.h"
11 
12 
13 
14         #include <wx/colour.h>
15         #include <wx/brush.h>
16         #include <wx/pen.h>
17         #include "arrayholder.h"
18         #include <wx/font.h>
19         #include <wx/gdicmn.h>
20         #include <wx/bitmap.h>
21         #include <wx/gdicmn.h>
22         #include <wx/icon.h>
23         #include <wx/gdicmn.h>
24         #include <wx/dc.h>
25         #include <wx/region.h>
26         #include <wx/object.h>
27         #include <wx/object.h>
28         #include <wx/object.h>
29 
30 
31 PyDoc_STRVAR(doc_wxPseudoDC_RemoveAll, "RemoveAll()\n"
32 "\n"
33 "Removes all objects and operations from the recorded list.");
34 
35 extern "C" {static PyObject *meth_wxPseudoDC_RemoveAll(PyObject *, PyObject *);}
meth_wxPseudoDC_RemoveAll(PyObject * sipSelf,PyObject * sipArgs)36 static PyObject *meth_wxPseudoDC_RemoveAll(PyObject *sipSelf, PyObject *sipArgs)
37 {
38     PyObject *sipParseErr = SIP_NULLPTR;
39 
40     {
41          ::wxPseudoDC *sipCpp;
42 
43         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPseudoDC, &sipCpp))
44         {
45             PyErr_Clear();
46 
47             Py_BEGIN_ALLOW_THREADS
48             sipCpp->RemoveAll();
49             Py_END_ALLOW_THREADS
50 
51             if (PyErr_Occurred())
52                 return 0;
53 
54             Py_INCREF(Py_None);
55             return Py_None;
56         }
57     }
58 
59     /* Raise an exception if the arguments couldn't be parsed. */
60     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_RemoveAll, SIP_NULLPTR);
61 
62     return SIP_NULLPTR;
63 }
64 
65 
66 PyDoc_STRVAR(doc_wxPseudoDC_GetLen, "GetLen() -> int\n"
67 "\n"
68 "Returns the number of operations in the recorded list.");
69 
70 extern "C" {static PyObject *meth_wxPseudoDC_GetLen(PyObject *, PyObject *);}
meth_wxPseudoDC_GetLen(PyObject * sipSelf,PyObject * sipArgs)71 static PyObject *meth_wxPseudoDC_GetLen(PyObject *sipSelf, PyObject *sipArgs)
72 {
73     PyObject *sipParseErr = SIP_NULLPTR;
74 
75     {
76          ::wxPseudoDC *sipCpp;
77 
78         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPseudoDC, &sipCpp))
79         {
80             int sipRes;
81 
82             PyErr_Clear();
83 
84             Py_BEGIN_ALLOW_THREADS
85             sipRes = sipCpp->GetLen();
86             Py_END_ALLOW_THREADS
87 
88             if (PyErr_Occurred())
89                 return 0;
90 
91             return SIPLong_FromLong(sipRes);
92         }
93     }
94 
95     /* Raise an exception if the arguments couldn't be parsed. */
96     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_GetLen, SIP_NULLPTR);
97 
98     return SIP_NULLPTR;
99 }
100 
101 
102 PyDoc_STRVAR(doc_wxPseudoDC_SetId, "SetId(id)\n"
103 "\n"
104 "Sets the id to be associated with subsequent operations.");
105 
106 extern "C" {static PyObject *meth_wxPseudoDC_SetId(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetId(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)107 static PyObject *meth_wxPseudoDC_SetId(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
108 {
109     PyObject *sipParseErr = SIP_NULLPTR;
110 
111     {
112         int id;
113          ::wxPseudoDC *sipCpp;
114 
115         static const char *sipKwdList[] = {
116             sipName_id,
117         };
118 
119         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxPseudoDC, &sipCpp, &id))
120         {
121             PyErr_Clear();
122 
123             Py_BEGIN_ALLOW_THREADS
124             sipCpp->SetId(id);
125             Py_END_ALLOW_THREADS
126 
127             if (PyErr_Occurred())
128                 return 0;
129 
130             Py_INCREF(Py_None);
131             return Py_None;
132         }
133     }
134 
135     /* Raise an exception if the arguments couldn't be parsed. */
136     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetId, SIP_NULLPTR);
137 
138     return SIP_NULLPTR;
139 }
140 
141 
142 PyDoc_STRVAR(doc_wxPseudoDC_ClearId, "ClearId(id)\n"
143 "\n"
144 "Removes all operations associated with id so the object can be\n"
145 "redrawn.");
146 
147 extern "C" {static PyObject *meth_wxPseudoDC_ClearId(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_ClearId(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)148 static PyObject *meth_wxPseudoDC_ClearId(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
149 {
150     PyObject *sipParseErr = SIP_NULLPTR;
151 
152     {
153         int id;
154          ::wxPseudoDC *sipCpp;
155 
156         static const char *sipKwdList[] = {
157             sipName_id,
158         };
159 
160         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxPseudoDC, &sipCpp, &id))
161         {
162             PyErr_Clear();
163 
164             Py_BEGIN_ALLOW_THREADS
165             sipCpp->ClearId(id);
166             Py_END_ALLOW_THREADS
167 
168             if (PyErr_Occurred())
169                 return 0;
170 
171             Py_INCREF(Py_None);
172             return Py_None;
173         }
174     }
175 
176     /* Raise an exception if the arguments couldn't be parsed. */
177     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_ClearId, SIP_NULLPTR);
178 
179     return SIP_NULLPTR;
180 }
181 
182 
183 PyDoc_STRVAR(doc_wxPseudoDC_RemoveId, "RemoveId(id)\n"
184 "\n"
185 "Remove the object node (and all operations) associated with an id.");
186 
187 extern "C" {static PyObject *meth_wxPseudoDC_RemoveId(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_RemoveId(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)188 static PyObject *meth_wxPseudoDC_RemoveId(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
189 {
190     PyObject *sipParseErr = SIP_NULLPTR;
191 
192     {
193         int id;
194          ::wxPseudoDC *sipCpp;
195 
196         static const char *sipKwdList[] = {
197             sipName_id,
198         };
199 
200         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxPseudoDC, &sipCpp, &id))
201         {
202             PyErr_Clear();
203 
204             Py_BEGIN_ALLOW_THREADS
205             sipCpp->RemoveId(id);
206             Py_END_ALLOW_THREADS
207 
208             if (PyErr_Occurred())
209                 return 0;
210 
211             Py_INCREF(Py_None);
212             return Py_None;
213         }
214     }
215 
216     /* Raise an exception if the arguments couldn't be parsed. */
217     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_RemoveId, SIP_NULLPTR);
218 
219     return SIP_NULLPTR;
220 }
221 
222 
223 PyDoc_STRVAR(doc_wxPseudoDC_TranslateId, "TranslateId(id, dx, dy)\n"
224 "\n"
225 "Translate the position of the operations of tag `id` by (`dx`, `dy`).");
226 
227 extern "C" {static PyObject *meth_wxPseudoDC_TranslateId(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_TranslateId(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)228 static PyObject *meth_wxPseudoDC_TranslateId(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
229 {
230     PyObject *sipParseErr = SIP_NULLPTR;
231 
232     {
233         int id;
234          ::wxCoord dx;
235          ::wxCoord dy;
236          ::wxPseudoDC *sipCpp;
237 
238         static const char *sipKwdList[] = {
239             sipName_id,
240             sipName_dx,
241             sipName_dy,
242         };
243 
244         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxPseudoDC, &sipCpp, &id, &dx, &dy))
245         {
246             PyErr_Clear();
247 
248             Py_BEGIN_ALLOW_THREADS
249             sipCpp->TranslateId(id,dx,dy);
250             Py_END_ALLOW_THREADS
251 
252             if (PyErr_Occurred())
253                 return 0;
254 
255             Py_INCREF(Py_None);
256             return Py_None;
257         }
258     }
259 
260     /* Raise an exception if the arguments couldn't be parsed. */
261     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_TranslateId, SIP_NULLPTR);
262 
263     return SIP_NULLPTR;
264 }
265 
266 
267 PyDoc_STRVAR(doc_wxPseudoDC_SetIdGreyedOut, "SetIdGreyedOut(id, greyout)\n"
268 "\n"
269 "Set whether the set of objects with tag `id` are drawn greyed out or\n"
270 "not.");
271 
272 extern "C" {static PyObject *meth_wxPseudoDC_SetIdGreyedOut(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetIdGreyedOut(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)273 static PyObject *meth_wxPseudoDC_SetIdGreyedOut(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
274 {
275     PyObject *sipParseErr = SIP_NULLPTR;
276 
277     {
278         int id;
279         bool greyout;
280          ::wxPseudoDC *sipCpp;
281 
282         static const char *sipKwdList[] = {
283             sipName_id,
284             sipName_greyout,
285         };
286 
287         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bib", &sipSelf, sipType_wxPseudoDC, &sipCpp, &id, &greyout))
288         {
289             PyErr_Clear();
290 
291             Py_BEGIN_ALLOW_THREADS
292             sipCpp->SetIdGreyedOut(id,greyout);
293             Py_END_ALLOW_THREADS
294 
295             if (PyErr_Occurred())
296                 return 0;
297 
298             Py_INCREF(Py_None);
299             return Py_None;
300         }
301     }
302 
303     /* Raise an exception if the arguments couldn't be parsed. */
304     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetIdGreyedOut, SIP_NULLPTR);
305 
306     return SIP_NULLPTR;
307 }
308 
309 
310 PyDoc_STRVAR(doc_wxPseudoDC_GetIdGreyedOut, "GetIdGreyedOut(id) -> bool\n"
311 "\n"
312 "Get whether the set of objects with tag `id` are drawn greyed out or\n"
313 "not.");
314 
315 extern "C" {static PyObject *meth_wxPseudoDC_GetIdGreyedOut(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_GetIdGreyedOut(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)316 static PyObject *meth_wxPseudoDC_GetIdGreyedOut(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
317 {
318     PyObject *sipParseErr = SIP_NULLPTR;
319 
320     {
321         int id;
322          ::wxPseudoDC *sipCpp;
323 
324         static const char *sipKwdList[] = {
325             sipName_id,
326         };
327 
328         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxPseudoDC, &sipCpp, &id))
329         {
330             bool sipRes;
331 
332             PyErr_Clear();
333 
334             Py_BEGIN_ALLOW_THREADS
335             sipRes = sipCpp->GetIdGreyedOut(id);
336             Py_END_ALLOW_THREADS
337 
338             if (PyErr_Occurred())
339                 return 0;
340 
341             return PyBool_FromLong(sipRes);
342         }
343     }
344 
345     /* Raise an exception if the arguments couldn't be parsed. */
346     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_GetIdGreyedOut, SIP_NULLPTR);
347 
348     return SIP_NULLPTR;
349 }
350 
351 
352 PyDoc_STRVAR(doc_wxPseudoDC_FindObjects, "FindObjects(x, y, radius=1, bg=wx.WHITE) -> PyObject\n"
353 "\n"
354 "Returns a list of all the id's that draw a pixel with\n"
355 "color not equal to bg within radius of (x,y). Returns an\n"
356 "empty list if nothing is found.  The list is in reverse\n"
357 "drawing order so list[0] is the top id.");
358 
359 extern "C" {static PyObject *meth_wxPseudoDC_FindObjects(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_FindObjects(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)360 static PyObject *meth_wxPseudoDC_FindObjects(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
361 {
362     PyObject *sipParseErr = SIP_NULLPTR;
363 
364     {
365          ::wxCoord x;
366          ::wxCoord y;
367          ::wxCoord radius = 1;
368         const  ::wxColour& bgdef = *wxWHITE;
369         const  ::wxColour* bg = &bgdef;
370         int bgState = 0;
371          ::wxPseudoDC *sipCpp;
372 
373         static const char *sipKwdList[] = {
374             sipName_x,
375             sipName_y,
376             sipName_radius,
377             sipName_bg,
378         };
379 
380         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii|iJ1", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y, &radius, sipType_wxColour, &bg, &bgState))
381         {
382             PyObject * sipRes;
383 
384             PyErr_Clear();
385 
386             Py_BEGIN_ALLOW_THREADS
387             sipRes = sipCpp->FindObjects(x,y,radius,*bg);
388             Py_END_ALLOW_THREADS
389             sipReleaseType(const_cast< ::wxColour *>(bg),sipType_wxColour,bgState);
390 
391             if (PyErr_Occurred())
392                 return 0;
393 
394             return sipRes;
395         }
396     }
397 
398     /* Raise an exception if the arguments couldn't be parsed. */
399     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_FindObjects, SIP_NULLPTR);
400 
401     return SIP_NULLPTR;
402 }
403 
404 
405 PyDoc_STRVAR(doc_wxPseudoDC_FindObjectsByBBox, "FindObjectsByBBox(x, y) -> PyObject\n"
406 "\n"
407 "Returns a list of all the id's whose bounding boxes include (x,y).\n"
408 "Returns an empty list if nothing is found.  The list is in\n"
409 "reverse drawing order so list[0] is the top id.");
410 
411 extern "C" {static PyObject *meth_wxPseudoDC_FindObjectsByBBox(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_FindObjectsByBBox(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)412 static PyObject *meth_wxPseudoDC_FindObjectsByBBox(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
413 {
414     PyObject *sipParseErr = SIP_NULLPTR;
415 
416     {
417          ::wxCoord x;
418          ::wxCoord y;
419          ::wxPseudoDC *sipCpp;
420 
421         static const char *sipKwdList[] = {
422             sipName_x,
423             sipName_y,
424         };
425 
426         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y))
427         {
428             PyObject * sipRes;
429 
430             PyErr_Clear();
431 
432             Py_BEGIN_ALLOW_THREADS
433             sipRes = sipCpp->FindObjectsByBBox(x,y);
434             Py_END_ALLOW_THREADS
435 
436             if (PyErr_Occurred())
437                 return 0;
438 
439             return sipRes;
440         }
441     }
442 
443     /* Raise an exception if the arguments couldn't be parsed. */
444     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_FindObjectsByBBox, SIP_NULLPTR);
445 
446     return SIP_NULLPTR;
447 }
448 
449 
450 PyDoc_STRVAR(doc_wxPseudoDC_DrawIdToDC, "DrawIdToDC(id, dc)\n"
451 "\n"
452 "Draw recorded operations tagged with id to dc.");
453 
454 extern "C" {static PyObject *meth_wxPseudoDC_DrawIdToDC(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawIdToDC(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)455 static PyObject *meth_wxPseudoDC_DrawIdToDC(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
456 {
457     PyObject *sipParseErr = SIP_NULLPTR;
458 
459     {
460         int id;
461          ::wxDC* dc;
462          ::wxPseudoDC *sipCpp;
463 
464         static const char *sipKwdList[] = {
465             sipName_id,
466             sipName_dc,
467         };
468 
469         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ8", &sipSelf, sipType_wxPseudoDC, &sipCpp, &id, sipType_wxDC, &dc))
470         {
471             PyErr_Clear();
472 
473             Py_BEGIN_ALLOW_THREADS
474             sipCpp->DrawIdToDC(id,dc);
475             Py_END_ALLOW_THREADS
476 
477             if (PyErr_Occurred())
478                 return 0;
479 
480             Py_INCREF(Py_None);
481             return Py_None;
482         }
483     }
484 
485     /* Raise an exception if the arguments couldn't be parsed. */
486     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawIdToDC, SIP_NULLPTR);
487 
488     return SIP_NULLPTR;
489 }
490 
491 
492 PyDoc_STRVAR(doc_wxPseudoDC_SetIdBounds, "SetIdBounds(id, rect)\n"
493 "\n"
494 "Set the bounding rect of a given object.\n"
495 "This will create an object node if one doesn't exist.");
496 
497 extern "C" {static PyObject *meth_wxPseudoDC_SetIdBounds(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetIdBounds(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)498 static PyObject *meth_wxPseudoDC_SetIdBounds(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
499 {
500     PyObject *sipParseErr = SIP_NULLPTR;
501 
502     {
503         int id;
504          ::wxRect* rect;
505         int rectState = 0;
506          ::wxPseudoDC *sipCpp;
507 
508         static const char *sipKwdList[] = {
509             sipName_id,
510             sipName_rect,
511         };
512 
513         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1", &sipSelf, sipType_wxPseudoDC, &sipCpp, &id, sipType_wxRect, &rect, &rectState))
514         {
515             PyErr_Clear();
516 
517             Py_BEGIN_ALLOW_THREADS
518             sipCpp->SetIdBounds(id,*rect);
519             Py_END_ALLOW_THREADS
520             sipReleaseType(rect,sipType_wxRect,rectState);
521 
522             if (PyErr_Occurred())
523                 return 0;
524 
525             Py_INCREF(Py_None);
526             return Py_None;
527         }
528     }
529 
530     /* Raise an exception if the arguments couldn't be parsed. */
531     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetIdBounds, SIP_NULLPTR);
532 
533     return SIP_NULLPTR;
534 }
535 
536 
537 PyDoc_STRVAR(doc_wxPseudoDC_GetIdBounds, "GetIdBounds(id) -> wx.Rect\n"
538 "\n"
539 "Returns the bounding rectangle previously set with `SetIdBounds`.\n"
540 "If no bounds have been set, it returns wx.Rect(0,0,0,0).");
541 
542 extern "C" {static PyObject *meth_wxPseudoDC_GetIdBounds(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_GetIdBounds(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)543 static PyObject *meth_wxPseudoDC_GetIdBounds(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
544 {
545     PyObject *sipParseErr = SIP_NULLPTR;
546 
547     {
548         int id;
549          ::wxPseudoDC *sipCpp;
550 
551         static const char *sipKwdList[] = {
552             sipName_id,
553         };
554 
555         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxPseudoDC, &sipCpp, &id))
556         {
557              ::wxRect*sipRes;
558 
559             PyErr_Clear();
560 
561             Py_BEGIN_ALLOW_THREADS
562             sipRes = new  ::wxRect(sipCpp->GetIdBounds(id));
563             Py_END_ALLOW_THREADS
564 
565             if (PyErr_Occurred())
566                 return 0;
567 
568             return sipConvertFromNewType(sipRes,sipType_wxRect,SIP_NULLPTR);
569         }
570     }
571 
572     /* Raise an exception if the arguments couldn't be parsed. */
573     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_GetIdBounds, SIP_NULLPTR);
574 
575     return SIP_NULLPTR;
576 }
577 
578 
579 PyDoc_STRVAR(doc_wxPseudoDC_DrawToDCClipped, "DrawToDCClipped(dc, rect)\n"
580 "\n"
581 "Draws the recorded operations to dc,\n"
582 "unless the operation is known to be outside of rect.");
583 
584 extern "C" {static PyObject *meth_wxPseudoDC_DrawToDCClipped(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawToDCClipped(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)585 static PyObject *meth_wxPseudoDC_DrawToDCClipped(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
586 {
587     PyObject *sipParseErr = SIP_NULLPTR;
588 
589     {
590          ::wxDC* dc;
591         const  ::wxRect* rect;
592         int rectState = 0;
593          ::wxPseudoDC *sipCpp;
594 
595         static const char *sipKwdList[] = {
596             sipName_dc,
597             sipName_rect,
598         };
599 
600         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8J1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxDC, &dc, sipType_wxRect, &rect, &rectState))
601         {
602             PyErr_Clear();
603 
604             Py_BEGIN_ALLOW_THREADS
605             sipCpp->DrawToDCClipped(dc,*rect);
606             Py_END_ALLOW_THREADS
607             sipReleaseType(const_cast< ::wxRect *>(rect),sipType_wxRect,rectState);
608 
609             if (PyErr_Occurred())
610                 return 0;
611 
612             Py_INCREF(Py_None);
613             return Py_None;
614         }
615     }
616 
617     /* Raise an exception if the arguments couldn't be parsed. */
618     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawToDCClipped, SIP_NULLPTR);
619 
620     return SIP_NULLPTR;
621 }
622 
623 
624 PyDoc_STRVAR(doc_wxPseudoDC_DrawToDCClippedRgn, "DrawToDCClippedRgn(dc, region)\n"
625 "\n"
626 "Draws the recorded operations to dc,\n"
627 "unless the operation is known to be outside the given region.");
628 
629 extern "C" {static PyObject *meth_wxPseudoDC_DrawToDCClippedRgn(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawToDCClippedRgn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)630 static PyObject *meth_wxPseudoDC_DrawToDCClippedRgn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
631 {
632     PyObject *sipParseErr = SIP_NULLPTR;
633 
634     {
635          ::wxDC* dc;
636         const  ::wxRegion* region;
637          ::wxPseudoDC *sipCpp;
638 
639         static const char *sipKwdList[] = {
640             sipName_dc,
641             sipName_region,
642         };
643 
644         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8J9", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxDC, &dc, sipType_wxRegion, &region))
645         {
646             PyErr_Clear();
647 
648             Py_BEGIN_ALLOW_THREADS
649             sipCpp->DrawToDCClippedRgn(dc,*region);
650             Py_END_ALLOW_THREADS
651 
652             if (PyErr_Occurred())
653                 return 0;
654 
655             Py_INCREF(Py_None);
656             return Py_None;
657         }
658     }
659 
660     /* Raise an exception if the arguments couldn't be parsed. */
661     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawToDCClippedRgn, SIP_NULLPTR);
662 
663     return SIP_NULLPTR;
664 }
665 
666 
667 PyDoc_STRVAR(doc_wxPseudoDC_DrawToDC, "DrawToDC(dc)\n"
668 "\n"
669 "Draws the recorded operations to dc.");
670 
671 extern "C" {static PyObject *meth_wxPseudoDC_DrawToDC(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawToDC(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)672 static PyObject *meth_wxPseudoDC_DrawToDC(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
673 {
674     PyObject *sipParseErr = SIP_NULLPTR;
675 
676     {
677          ::wxDC* dc;
678          ::wxPseudoDC *sipCpp;
679 
680         static const char *sipKwdList[] = {
681             sipName_dc,
682         };
683 
684         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxDC, &dc))
685         {
686             PyErr_Clear();
687 
688             Py_BEGIN_ALLOW_THREADS
689             sipCpp->DrawToDC(dc);
690             Py_END_ALLOW_THREADS
691 
692             if (PyErr_Occurred())
693                 return 0;
694 
695             Py_INCREF(Py_None);
696             return Py_None;
697         }
698     }
699 
700     /* Raise an exception if the arguments couldn't be parsed. */
701     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawToDC, SIP_NULLPTR);
702 
703     return SIP_NULLPTR;
704 }
705 
706 
707 PyDoc_STRVAR(doc_wxPseudoDC_FloodFill, "FloodFill(x, y, col, style=wx.FLOOD_SURFACE)\n"
708 "FloodFill(pt, col, style=wx.FLOOD_SURFACE)\n"
709 "\n"
710 "Flood fills the device context starting from the given point,\n"
711 "using the current brush colour, and using a style:\n"
712 "\n"
713 "    - ``wx.FLOOD_SURFACE``: the flooding occurs until a colour other\n"
714 "than the given colour is encountered.\n"
715 "\n"
716 "    - ``wx.FLOOD_BORDER``: the area to be flooded is bounded by the\n"
717 "given colour.\n"
718 "");
719 
720 extern "C" {static PyObject *meth_wxPseudoDC_FloodFill(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_FloodFill(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)721 static PyObject *meth_wxPseudoDC_FloodFill(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
722 {
723     PyObject *sipParseErr = SIP_NULLPTR;
724 
725     {
726          ::wxCoord x;
727          ::wxCoord y;
728         const  ::wxColour* col;
729         int colState = 0;
730          ::wxFloodFillStyle style = wxFLOOD_SURFACE;
731          ::wxPseudoDC *sipCpp;
732 
733         static const char *sipKwdList[] = {
734             sipName_x,
735             sipName_y,
736             sipName_col,
737             sipName_style,
738         };
739 
740         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiiJ1|E", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y, sipType_wxColour, &col, &colState, sipType_wxFloodFillStyle, &style))
741         {
742             PyErr_Clear();
743 
744             Py_BEGIN_ALLOW_THREADS
745             sipCpp->FloodFill(x,y,*col,style);
746             Py_END_ALLOW_THREADS
747             sipReleaseType(const_cast< ::wxColour *>(col),sipType_wxColour,colState);
748 
749             if (PyErr_Occurred())
750                 return 0;
751 
752             Py_INCREF(Py_None);
753             return Py_None;
754         }
755     }
756 
757     {
758         const  ::wxPoint* pt;
759         int ptState = 0;
760         const  ::wxColour* col;
761         int colState = 0;
762          ::wxFloodFillStyle style = wxFLOOD_SURFACE;
763          ::wxPseudoDC *sipCpp;
764 
765         static const char *sipKwdList[] = {
766             sipName_pt,
767             sipName_col,
768             sipName_style,
769         };
770 
771         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1|E", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPoint, &pt, &ptState, sipType_wxColour, &col, &colState, sipType_wxFloodFillStyle, &style))
772         {
773             PyErr_Clear();
774 
775             Py_BEGIN_ALLOW_THREADS
776             sipCpp->FloodFill(*pt,*col,style);
777             Py_END_ALLOW_THREADS
778             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
779             sipReleaseType(const_cast< ::wxColour *>(col),sipType_wxColour,colState);
780 
781             if (PyErr_Occurred())
782                 return 0;
783 
784             Py_INCREF(Py_None);
785             return Py_None;
786         }
787     }
788 
789     /* Raise an exception if the arguments couldn't be parsed. */
790     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_FloodFill, SIP_NULLPTR);
791 
792     return SIP_NULLPTR;
793 }
794 
795 
796 PyDoc_STRVAR(doc_wxPseudoDC_DrawLine, "DrawLine(x1, y1, x2, y2)\n"
797 "DrawLine(pt1, pt2)\n"
798 "\n"
799 "Draws a line from the first point to the second.\n"
800 "The current pen is used for drawing the line. Note that\n"
801 "the second point is *not* part of the line and is not\n"
802 "drawn by this function (this is consistent with the\n"
803 "behaviour of many other toolkits).\n"
804 "");
805 
806 extern "C" {static PyObject *meth_wxPseudoDC_DrawLine(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawLine(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)807 static PyObject *meth_wxPseudoDC_DrawLine(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
808 {
809     PyObject *sipParseErr = SIP_NULLPTR;
810 
811     {
812          ::wxCoord x1;
813          ::wxCoord y1;
814          ::wxCoord x2;
815          ::wxCoord y2;
816          ::wxPseudoDC *sipCpp;
817 
818         static const char *sipKwdList[] = {
819             sipName_x1,
820             sipName_y1,
821             sipName_x2,
822             sipName_y2,
823         };
824 
825         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x1, &y1, &x2, &y2))
826         {
827             PyErr_Clear();
828 
829             Py_BEGIN_ALLOW_THREADS
830             sipCpp->DrawLine(x1,y1,x2,y2);
831             Py_END_ALLOW_THREADS
832 
833             if (PyErr_Occurred())
834                 return 0;
835 
836             Py_INCREF(Py_None);
837             return Py_None;
838         }
839     }
840 
841     {
842         const  ::wxPoint* pt1;
843         int pt1State = 0;
844         const  ::wxPoint* pt2;
845         int pt2State = 0;
846          ::wxPseudoDC *sipCpp;
847 
848         static const char *sipKwdList[] = {
849             sipName_pt1,
850             sipName_pt2,
851         };
852 
853         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPoint, &pt1, &pt1State, sipType_wxPoint, &pt2, &pt2State))
854         {
855             PyErr_Clear();
856 
857             Py_BEGIN_ALLOW_THREADS
858             sipCpp->DrawLine(*pt1,*pt2);
859             Py_END_ALLOW_THREADS
860             sipReleaseType(const_cast< ::wxPoint *>(pt1),sipType_wxPoint,pt1State);
861             sipReleaseType(const_cast< ::wxPoint *>(pt2),sipType_wxPoint,pt2State);
862 
863             if (PyErr_Occurred())
864                 return 0;
865 
866             Py_INCREF(Py_None);
867             return Py_None;
868         }
869     }
870 
871     /* Raise an exception if the arguments couldn't be parsed. */
872     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawLine, SIP_NULLPTR);
873 
874     return SIP_NULLPTR;
875 }
876 
877 
878 PyDoc_STRVAR(doc_wxPseudoDC_CrossHair, "CrossHair(x, y)\n"
879 "CrossHair(pt)\n"
880 "\n"
881 "Displays a cross hair using the current pen. This is a\n"
882 "vertical and horizontal line the height and width of the\n"
883 "window, centred on the given point.\n"
884 "");
885 
886 extern "C" {static PyObject *meth_wxPseudoDC_CrossHair(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_CrossHair(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)887 static PyObject *meth_wxPseudoDC_CrossHair(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
888 {
889     PyObject *sipParseErr = SIP_NULLPTR;
890 
891     {
892          ::wxCoord x;
893          ::wxCoord y;
894          ::wxPseudoDC *sipCpp;
895 
896         static const char *sipKwdList[] = {
897             sipName_x,
898             sipName_y,
899         };
900 
901         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y))
902         {
903             PyErr_Clear();
904 
905             Py_BEGIN_ALLOW_THREADS
906             sipCpp->CrossHair(x,y);
907             Py_END_ALLOW_THREADS
908 
909             if (PyErr_Occurred())
910                 return 0;
911 
912             Py_INCREF(Py_None);
913             return Py_None;
914         }
915     }
916 
917     {
918         const  ::wxPoint* pt;
919         int ptState = 0;
920          ::wxPseudoDC *sipCpp;
921 
922         static const char *sipKwdList[] = {
923             sipName_pt,
924         };
925 
926         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPoint, &pt, &ptState))
927         {
928             PyErr_Clear();
929 
930             Py_BEGIN_ALLOW_THREADS
931             sipCpp->CrossHair(*pt);
932             Py_END_ALLOW_THREADS
933             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
934 
935             if (PyErr_Occurred())
936                 return 0;
937 
938             Py_INCREF(Py_None);
939             return Py_None;
940         }
941     }
942 
943     /* Raise an exception if the arguments couldn't be parsed. */
944     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_CrossHair, SIP_NULLPTR);
945 
946     return SIP_NULLPTR;
947 }
948 
949 
950 PyDoc_STRVAR(doc_wxPseudoDC_DrawArc, "DrawArc(x1, y1, x2, y2, xc, yc)\n"
951 "\n"
952 "Draws an arc of a circle, centred on the *center* point\n"
953 "(xc, yc), from the first point to the second. The current\n"
954 "pen is used for the outline and the current brush for\n"
955 "filling the shape.\n"
956 "\n"
957 "The arc is drawn in an anticlockwise direction from the\n"
958 "start point to the end point.");
959 
960 extern "C" {static PyObject *meth_wxPseudoDC_DrawArc(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawArc(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)961 static PyObject *meth_wxPseudoDC_DrawArc(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
962 {
963     PyObject *sipParseErr = SIP_NULLPTR;
964 
965     {
966          ::wxCoord x1;
967          ::wxCoord y1;
968          ::wxCoord x2;
969          ::wxCoord y2;
970          ::wxCoord xc;
971          ::wxCoord yc;
972          ::wxPseudoDC *sipCpp;
973 
974         static const char *sipKwdList[] = {
975             sipName_x1,
976             sipName_y1,
977             sipName_x2,
978             sipName_y2,
979             sipName_xc,
980             sipName_yc,
981         };
982 
983         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x1, &y1, &x2, &y2, &xc, &yc))
984         {
985             PyErr_Clear();
986 
987             Py_BEGIN_ALLOW_THREADS
988             sipCpp->DrawArc(x1,y1,x2,y2,xc,yc);
989             Py_END_ALLOW_THREADS
990 
991             if (PyErr_Occurred())
992                 return 0;
993 
994             Py_INCREF(Py_None);
995             return Py_None;
996         }
997     }
998 
999     /* Raise an exception if the arguments couldn't be parsed. */
1000     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawArc, SIP_NULLPTR);
1001 
1002     return SIP_NULLPTR;
1003 }
1004 
1005 
1006 PyDoc_STRVAR(doc_wxPseudoDC_DrawCheckMark, "DrawCheckMark(x, y, width, height)\n"
1007 "DrawCheckMark(rect)\n"
1008 "\n"
1009 "Draws a check mark inside the given rectangle\n"
1010 "");
1011 
1012 extern "C" {static PyObject *meth_wxPseudoDC_DrawCheckMark(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawCheckMark(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1013 static PyObject *meth_wxPseudoDC_DrawCheckMark(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1014 {
1015     PyObject *sipParseErr = SIP_NULLPTR;
1016 
1017     {
1018          ::wxCoord x;
1019          ::wxCoord y;
1020          ::wxCoord width;
1021          ::wxCoord height;
1022          ::wxPseudoDC *sipCpp;
1023 
1024         static const char *sipKwdList[] = {
1025             sipName_x,
1026             sipName_y,
1027             sipName_width,
1028             sipName_height,
1029         };
1030 
1031         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y, &width, &height))
1032         {
1033             PyErr_Clear();
1034 
1035             Py_BEGIN_ALLOW_THREADS
1036             sipCpp->DrawCheckMark(x,y,width,height);
1037             Py_END_ALLOW_THREADS
1038 
1039             if (PyErr_Occurred())
1040                 return 0;
1041 
1042             Py_INCREF(Py_None);
1043             return Py_None;
1044         }
1045     }
1046 
1047     {
1048         const  ::wxRect* rect;
1049         int rectState = 0;
1050          ::wxPseudoDC *sipCpp;
1051 
1052         static const char *sipKwdList[] = {
1053             sipName_rect,
1054         };
1055 
1056         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxRect, &rect, &rectState))
1057         {
1058             PyErr_Clear();
1059 
1060             Py_BEGIN_ALLOW_THREADS
1061             sipCpp->DrawCheckMark(*rect);
1062             Py_END_ALLOW_THREADS
1063             sipReleaseType(const_cast< ::wxRect *>(rect),sipType_wxRect,rectState);
1064 
1065             if (PyErr_Occurred())
1066                 return 0;
1067 
1068             Py_INCREF(Py_None);
1069             return Py_None;
1070         }
1071     }
1072 
1073     /* Raise an exception if the arguments couldn't be parsed. */
1074     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawCheckMark, SIP_NULLPTR);
1075 
1076     return SIP_NULLPTR;
1077 }
1078 
1079 
1080 PyDoc_STRVAR(doc_wxPseudoDC_DrawEllipticArc, "DrawEllipticArc(x, y, w, h, start, end)\n"
1081 "DrawEllipticArc(pt, sz, start, end)\n"
1082 "\n"
1083 "Draws an arc of an ellipse, with the given rectangle\n"
1084 "defining the bounds of the ellipse. The current pen is\n"
1085 "used for drawing the arc and the current brush is used for\n"
1086 "drawing the pie.\n"
1087 "\n"
1088 "The *start* and *end* parameters specify the start and end\n"
1089 "of the arc relative to the three-o'clock position from the\n"
1090 "center of the rectangle. Angles are specified in degrees\n"
1091 "(360 is a complete circle). Positive values mean\n"
1092 "counter-clockwise motion. If start is equal to end, a\n"
1093 "complete ellipse will be drawn.\n"
1094 "");
1095 
1096 extern "C" {static PyObject *meth_wxPseudoDC_DrawEllipticArc(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawEllipticArc(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1097 static PyObject *meth_wxPseudoDC_DrawEllipticArc(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1098 {
1099     PyObject *sipParseErr = SIP_NULLPTR;
1100 
1101     {
1102          ::wxCoord x;
1103          ::wxCoord y;
1104          ::wxCoord w;
1105          ::wxCoord h;
1106         double start;
1107         double end;
1108          ::wxPseudoDC *sipCpp;
1109 
1110         static const char *sipKwdList[] = {
1111             sipName_x,
1112             sipName_y,
1113             sipName_w,
1114             sipName_h,
1115             sipName_start,
1116             sipName_end,
1117         };
1118 
1119         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiidd", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y, &w, &h, &start, &end))
1120         {
1121             PyErr_Clear();
1122 
1123             Py_BEGIN_ALLOW_THREADS
1124             sipCpp->DrawEllipticArc(x,y,w,h,start,end);
1125             Py_END_ALLOW_THREADS
1126 
1127             if (PyErr_Occurred())
1128                 return 0;
1129 
1130             Py_INCREF(Py_None);
1131             return Py_None;
1132         }
1133     }
1134 
1135     {
1136         const  ::wxPoint* pt;
1137         int ptState = 0;
1138         const  ::wxSize* sz;
1139         int szState = 0;
1140         double start;
1141         double end;
1142          ::wxPseudoDC *sipCpp;
1143 
1144         static const char *sipKwdList[] = {
1145             sipName_pt,
1146             sipName_sz,
1147             sipName_start,
1148             sipName_end,
1149         };
1150 
1151         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1dd", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPoint, &pt, &ptState, sipType_wxSize, &sz, &szState, &start, &end))
1152         {
1153             PyErr_Clear();
1154 
1155             Py_BEGIN_ALLOW_THREADS
1156             sipCpp->DrawEllipticArc(*pt,*sz,start,end);
1157             Py_END_ALLOW_THREADS
1158             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1159             sipReleaseType(const_cast< ::wxSize *>(sz),sipType_wxSize,szState);
1160 
1161             if (PyErr_Occurred())
1162                 return 0;
1163 
1164             Py_INCREF(Py_None);
1165             return Py_None;
1166         }
1167     }
1168 
1169     /* Raise an exception if the arguments couldn't be parsed. */
1170     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawEllipticArc, SIP_NULLPTR);
1171 
1172     return SIP_NULLPTR;
1173 }
1174 
1175 
1176 PyDoc_STRVAR(doc_wxPseudoDC_DrawPoint, "DrawPoint(x, y)\n"
1177 "DrawPoint(pt)\n"
1178 "\n"
1179 "Draws a point using the current pen.\n"
1180 "");
1181 
1182 extern "C" {static PyObject *meth_wxPseudoDC_DrawPoint(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawPoint(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1183 static PyObject *meth_wxPseudoDC_DrawPoint(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1184 {
1185     PyObject *sipParseErr = SIP_NULLPTR;
1186 
1187     {
1188          ::wxCoord x;
1189          ::wxCoord y;
1190          ::wxPseudoDC *sipCpp;
1191 
1192         static const char *sipKwdList[] = {
1193             sipName_x,
1194             sipName_y,
1195         };
1196 
1197         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y))
1198         {
1199             PyErr_Clear();
1200 
1201             Py_BEGIN_ALLOW_THREADS
1202             sipCpp->DrawPoint(x,y);
1203             Py_END_ALLOW_THREADS
1204 
1205             if (PyErr_Occurred())
1206                 return 0;
1207 
1208             Py_INCREF(Py_None);
1209             return Py_None;
1210         }
1211     }
1212 
1213     {
1214         const  ::wxPoint* pt;
1215         int ptState = 0;
1216          ::wxPseudoDC *sipCpp;
1217 
1218         static const char *sipKwdList[] = {
1219             sipName_pt,
1220         };
1221 
1222         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPoint, &pt, &ptState))
1223         {
1224             PyErr_Clear();
1225 
1226             Py_BEGIN_ALLOW_THREADS
1227             sipCpp->DrawPoint(*pt);
1228             Py_END_ALLOW_THREADS
1229             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1230 
1231             if (PyErr_Occurred())
1232                 return 0;
1233 
1234             Py_INCREF(Py_None);
1235             return Py_None;
1236         }
1237     }
1238 
1239     /* Raise an exception if the arguments couldn't be parsed. */
1240     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawPoint, SIP_NULLPTR);
1241 
1242     return SIP_NULLPTR;
1243 }
1244 
1245 
1246 PyDoc_STRVAR(doc_wxPseudoDC_DrawRectangle, "DrawRectangle(x, y, width, height)\n"
1247 "DrawRectangle(rect)\n"
1248 "DrawRectangle(pt, sz)\n"
1249 "\n"
1250 "Draws a rectangle with the given top left corner, and with\n"
1251 "the given size. The current pen is used for the outline\n"
1252 "and the current brush for filling the shape.\n"
1253 "\n"
1254 "");
1255 
1256 extern "C" {static PyObject *meth_wxPseudoDC_DrawRectangle(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawRectangle(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1257 static PyObject *meth_wxPseudoDC_DrawRectangle(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1258 {
1259     PyObject *sipParseErr = SIP_NULLPTR;
1260 
1261     {
1262          ::wxCoord x;
1263          ::wxCoord y;
1264          ::wxCoord width;
1265          ::wxCoord height;
1266          ::wxPseudoDC *sipCpp;
1267 
1268         static const char *sipKwdList[] = {
1269             sipName_x,
1270             sipName_y,
1271             sipName_width,
1272             sipName_height,
1273         };
1274 
1275         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y, &width, &height))
1276         {
1277             PyErr_Clear();
1278 
1279             Py_BEGIN_ALLOW_THREADS
1280             sipCpp->DrawRectangle(x,y,width,height);
1281             Py_END_ALLOW_THREADS
1282 
1283             if (PyErr_Occurred())
1284                 return 0;
1285 
1286             Py_INCREF(Py_None);
1287             return Py_None;
1288         }
1289     }
1290 
1291     {
1292         const  ::wxRect* rect;
1293         int rectState = 0;
1294          ::wxPseudoDC *sipCpp;
1295 
1296         static const char *sipKwdList[] = {
1297             sipName_rect,
1298         };
1299 
1300         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxRect, &rect, &rectState))
1301         {
1302             PyErr_Clear();
1303 
1304             Py_BEGIN_ALLOW_THREADS
1305             sipCpp->DrawRectangle(*rect);
1306             Py_END_ALLOW_THREADS
1307             sipReleaseType(const_cast< ::wxRect *>(rect),sipType_wxRect,rectState);
1308 
1309             if (PyErr_Occurred())
1310                 return 0;
1311 
1312             Py_INCREF(Py_None);
1313             return Py_None;
1314         }
1315     }
1316 
1317     {
1318         const  ::wxPoint* pt;
1319         int ptState = 0;
1320         const  ::wxSize* sz;
1321         int szState = 0;
1322          ::wxPseudoDC *sipCpp;
1323 
1324         static const char *sipKwdList[] = {
1325             sipName_pt,
1326             sipName_sz,
1327         };
1328 
1329         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPoint, &pt, &ptState, sipType_wxSize, &sz, &szState))
1330         {
1331             PyErr_Clear();
1332 
1333             Py_BEGIN_ALLOW_THREADS
1334             sipCpp->DrawRectangle(*pt,*sz);
1335             Py_END_ALLOW_THREADS
1336             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1337             sipReleaseType(const_cast< ::wxSize *>(sz),sipType_wxSize,szState);
1338 
1339             if (PyErr_Occurred())
1340                 return 0;
1341 
1342             Py_INCREF(Py_None);
1343             return Py_None;
1344         }
1345     }
1346 
1347     /* Raise an exception if the arguments couldn't be parsed. */
1348     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawRectangle, SIP_NULLPTR);
1349 
1350     return SIP_NULLPTR;
1351 }
1352 
1353 
1354 PyDoc_STRVAR(doc_wxPseudoDC_DrawRoundedRectangle, "DrawRoundedRectangle(x, y, width, height, radius)\n"
1355 "DrawRoundedRectangle(rect, radius)\n"
1356 "DrawRoundedRectangle(pt, sz, radius)\n"
1357 "\n"
1358 "Draws a rectangle with the given top left corner, and with\n"
1359 "the given size. The current pen is used for the outline\n"
1360 "and the current brush for filling the shape.\n"
1361 "\n"
1362 "");
1363 
1364 extern "C" {static PyObject *meth_wxPseudoDC_DrawRoundedRectangle(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawRoundedRectangle(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1365 static PyObject *meth_wxPseudoDC_DrawRoundedRectangle(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1366 {
1367     PyObject *sipParseErr = SIP_NULLPTR;
1368 
1369     {
1370          ::wxCoord x;
1371          ::wxCoord y;
1372          ::wxCoord width;
1373          ::wxCoord height;
1374         double radius;
1375          ::wxPseudoDC *sipCpp;
1376 
1377         static const char *sipKwdList[] = {
1378             sipName_x,
1379             sipName_y,
1380             sipName_width,
1381             sipName_height,
1382             sipName_radius,
1383         };
1384 
1385         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiid", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y, &width, &height, &radius))
1386         {
1387             PyErr_Clear();
1388 
1389             Py_BEGIN_ALLOW_THREADS
1390             sipCpp->DrawRoundedRectangle(x,y,width,height,radius);
1391             Py_END_ALLOW_THREADS
1392 
1393             if (PyErr_Occurred())
1394                 return 0;
1395 
1396             Py_INCREF(Py_None);
1397             return Py_None;
1398         }
1399     }
1400 
1401     {
1402         const  ::wxRect* rect;
1403         int rectState = 0;
1404         double radius;
1405          ::wxPseudoDC *sipCpp;
1406 
1407         static const char *sipKwdList[] = {
1408             sipName_rect,
1409             sipName_radius,
1410         };
1411 
1412         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1d", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxRect, &rect, &rectState, &radius))
1413         {
1414             PyErr_Clear();
1415 
1416             Py_BEGIN_ALLOW_THREADS
1417             sipCpp->DrawRoundedRectangle(*rect,radius);
1418             Py_END_ALLOW_THREADS
1419             sipReleaseType(const_cast< ::wxRect *>(rect),sipType_wxRect,rectState);
1420 
1421             if (PyErr_Occurred())
1422                 return 0;
1423 
1424             Py_INCREF(Py_None);
1425             return Py_None;
1426         }
1427     }
1428 
1429     {
1430         const  ::wxPoint* pt;
1431         int ptState = 0;
1432         const  ::wxSize* sz;
1433         int szState = 0;
1434         double radius;
1435          ::wxPseudoDC *sipCpp;
1436 
1437         static const char *sipKwdList[] = {
1438             sipName_pt,
1439             sipName_sz,
1440             sipName_radius,
1441         };
1442 
1443         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1d", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPoint, &pt, &ptState, sipType_wxSize, &sz, &szState, &radius))
1444         {
1445             PyErr_Clear();
1446 
1447             Py_BEGIN_ALLOW_THREADS
1448             sipCpp->DrawRoundedRectangle(*pt,*sz,radius);
1449             Py_END_ALLOW_THREADS
1450             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1451             sipReleaseType(const_cast< ::wxSize *>(sz),sipType_wxSize,szState);
1452 
1453             if (PyErr_Occurred())
1454                 return 0;
1455 
1456             Py_INCREF(Py_None);
1457             return Py_None;
1458         }
1459     }
1460 
1461     /* Raise an exception if the arguments couldn't be parsed. */
1462     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawRoundedRectangle, SIP_NULLPTR);
1463 
1464     return SIP_NULLPTR;
1465 }
1466 
1467 
1468 PyDoc_STRVAR(doc_wxPseudoDC_DrawCircle, "DrawCircle(x, y, radius)\n"
1469 "DrawCircle(pt, radius)\n"
1470 "\n"
1471 "Draws a circle with the given center point and radius.\n"
1472 "The current pen is used for the outline and the current\n"
1473 "brush for filling the shape.\n"
1474 "\n"
1475 ":see: `DrawEllipse`\n"
1476 "");
1477 
1478 extern "C" {static PyObject *meth_wxPseudoDC_DrawCircle(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawCircle(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1479 static PyObject *meth_wxPseudoDC_DrawCircle(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1480 {
1481     PyObject *sipParseErr = SIP_NULLPTR;
1482 
1483     {
1484          ::wxCoord x;
1485          ::wxCoord y;
1486          ::wxCoord radius;
1487          ::wxPseudoDC *sipCpp;
1488 
1489         static const char *sipKwdList[] = {
1490             sipName_x,
1491             sipName_y,
1492             sipName_radius,
1493         };
1494 
1495         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y, &radius))
1496         {
1497             PyErr_Clear();
1498 
1499             Py_BEGIN_ALLOW_THREADS
1500             sipCpp->DrawCircle(x,y,radius);
1501             Py_END_ALLOW_THREADS
1502 
1503             if (PyErr_Occurred())
1504                 return 0;
1505 
1506             Py_INCREF(Py_None);
1507             return Py_None;
1508         }
1509     }
1510 
1511     {
1512         const  ::wxPoint* pt;
1513         int ptState = 0;
1514          ::wxCoord radius;
1515          ::wxPseudoDC *sipCpp;
1516 
1517         static const char *sipKwdList[] = {
1518             sipName_pt,
1519             sipName_radius,
1520         };
1521 
1522         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1i", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPoint, &pt, &ptState, &radius))
1523         {
1524             PyErr_Clear();
1525 
1526             Py_BEGIN_ALLOW_THREADS
1527             sipCpp->DrawCircle(*pt,radius);
1528             Py_END_ALLOW_THREADS
1529             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1530 
1531             if (PyErr_Occurred())
1532                 return 0;
1533 
1534             Py_INCREF(Py_None);
1535             return Py_None;
1536         }
1537     }
1538 
1539     /* Raise an exception if the arguments couldn't be parsed. */
1540     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawCircle, SIP_NULLPTR);
1541 
1542     return SIP_NULLPTR;
1543 }
1544 
1545 
1546 PyDoc_STRVAR(doc_wxPseudoDC_DrawEllipse, "DrawEllipse(x, y, width, height)\n"
1547 "DrawEllipse(rect)\n"
1548 "DrawEllipse(pt, sz)\n"
1549 "\n"
1550 "Draws an ellipse contained in the specified rectangle. The current pen\n"
1551 "is used for the outline and the current brush for filling the shape.\",\n"
1552 "\"\n"
1553 "\n"
1554 ":see: `DrawCircle`\n"
1555 "\n"
1556 "");
1557 
1558 extern "C" {static PyObject *meth_wxPseudoDC_DrawEllipse(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawEllipse(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1559 static PyObject *meth_wxPseudoDC_DrawEllipse(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1560 {
1561     PyObject *sipParseErr = SIP_NULLPTR;
1562 
1563     {
1564          ::wxCoord x;
1565          ::wxCoord y;
1566          ::wxCoord width;
1567          ::wxCoord height;
1568          ::wxPseudoDC *sipCpp;
1569 
1570         static const char *sipKwdList[] = {
1571             sipName_x,
1572             sipName_y,
1573             sipName_width,
1574             sipName_height,
1575         };
1576 
1577         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxPseudoDC, &sipCpp, &x, &y, &width, &height))
1578         {
1579             PyErr_Clear();
1580 
1581             Py_BEGIN_ALLOW_THREADS
1582             sipCpp->DrawEllipse(x,y,width,height);
1583             Py_END_ALLOW_THREADS
1584 
1585             if (PyErr_Occurred())
1586                 return 0;
1587 
1588             Py_INCREF(Py_None);
1589             return Py_None;
1590         }
1591     }
1592 
1593     {
1594         const  ::wxRect* rect;
1595         int rectState = 0;
1596          ::wxPseudoDC *sipCpp;
1597 
1598         static const char *sipKwdList[] = {
1599             sipName_rect,
1600         };
1601 
1602         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxRect, &rect, &rectState))
1603         {
1604             PyErr_Clear();
1605 
1606             Py_BEGIN_ALLOW_THREADS
1607             sipCpp->DrawEllipse(*rect);
1608             Py_END_ALLOW_THREADS
1609             sipReleaseType(const_cast< ::wxRect *>(rect),sipType_wxRect,rectState);
1610 
1611             if (PyErr_Occurred())
1612                 return 0;
1613 
1614             Py_INCREF(Py_None);
1615             return Py_None;
1616         }
1617     }
1618 
1619     {
1620         const  ::wxPoint* pt;
1621         int ptState = 0;
1622         const  ::wxSize* sz;
1623         int szState = 0;
1624          ::wxPseudoDC *sipCpp;
1625 
1626         static const char *sipKwdList[] = {
1627             sipName_pt,
1628             sipName_sz,
1629         };
1630 
1631         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPoint, &pt, &ptState, sipType_wxSize, &sz, &szState))
1632         {
1633             PyErr_Clear();
1634 
1635             Py_BEGIN_ALLOW_THREADS
1636             sipCpp->DrawEllipse(*pt,*sz);
1637             Py_END_ALLOW_THREADS
1638             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1639             sipReleaseType(const_cast< ::wxSize *>(sz),sipType_wxSize,szState);
1640 
1641             if (PyErr_Occurred())
1642                 return 0;
1643 
1644             Py_INCREF(Py_None);
1645             return Py_None;
1646         }
1647     }
1648 
1649     /* Raise an exception if the arguments couldn't be parsed. */
1650     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawEllipse, SIP_NULLPTR);
1651 
1652     return SIP_NULLPTR;
1653 }
1654 
1655 
1656 PyDoc_STRVAR(doc_wxPseudoDC_DrawIcon, "DrawIcon(icon, x, y)\n"
1657 "DrawIcon(icon, pt)\n"
1658 "\n"
1659 "Draw an icon on the display at the given position.\n"
1660 "");
1661 
1662 extern "C" {static PyObject *meth_wxPseudoDC_DrawIcon(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawIcon(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1663 static PyObject *meth_wxPseudoDC_DrawIcon(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1664 {
1665     PyObject *sipParseErr = SIP_NULLPTR;
1666 
1667     {
1668         const  ::wxIcon* icon;
1669          ::wxCoord x;
1670          ::wxCoord y;
1671          ::wxPseudoDC *sipCpp;
1672 
1673         static const char *sipKwdList[] = {
1674             sipName_icon,
1675             sipName_x,
1676             sipName_y,
1677         };
1678 
1679         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9ii", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxIcon, &icon, &x, &y))
1680         {
1681             PyErr_Clear();
1682 
1683             Py_BEGIN_ALLOW_THREADS
1684             sipCpp->DrawIcon(*icon,x,y);
1685             Py_END_ALLOW_THREADS
1686 
1687             if (PyErr_Occurred())
1688                 return 0;
1689 
1690             Py_INCREF(Py_None);
1691             return Py_None;
1692         }
1693     }
1694 
1695     {
1696         const  ::wxIcon* icon;
1697         const  ::wxPoint* pt;
1698         int ptState = 0;
1699          ::wxPseudoDC *sipCpp;
1700 
1701         static const char *sipKwdList[] = {
1702             sipName_icon,
1703             sipName_pt,
1704         };
1705 
1706         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxIcon, &icon, sipType_wxPoint, &pt, &ptState))
1707         {
1708             PyErr_Clear();
1709 
1710             Py_BEGIN_ALLOW_THREADS
1711             sipCpp->DrawIcon(*icon,*pt);
1712             Py_END_ALLOW_THREADS
1713             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1714 
1715             if (PyErr_Occurred())
1716                 return 0;
1717 
1718             Py_INCREF(Py_None);
1719             return Py_None;
1720         }
1721     }
1722 
1723     /* Raise an exception if the arguments couldn't be parsed. */
1724     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawIcon, SIP_NULLPTR);
1725 
1726     return SIP_NULLPTR;
1727 }
1728 
1729 
1730 PyDoc_STRVAR(doc_wxPseudoDC_DrawBitmap, "DrawBitmap(bmp, x, y, useMask=False)\n"
1731 "DrawBitmap(bmp, pt, useMask=False)\n"
1732 "\n"
1733 "Draw a bitmap on the device context at the specified\n"
1734 "point. If *useMask* is true and the bitmap has a\n"
1735 "transparency mask, (or alpha channel on the platforms that\n"
1736 "support it) then the bitmap will be drawn transparently.\n"
1737 "\n"
1738 "When drawing a mono-bitmap, the current text foreground\n"
1739 "colour will be used to draw the foreground of the bitmap\n"
1740 "(all bits set to 1), and the current text background\n"
1741 "colour to draw the background (all bits set to 0).\n"
1742 "\n"
1743 ":see: `SetTextForeground`, `SetTextBackground` and `wx.MemoryDC`\n"
1744 "");
1745 
1746 extern "C" {static PyObject *meth_wxPseudoDC_DrawBitmap(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawBitmap(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1747 static PyObject *meth_wxPseudoDC_DrawBitmap(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1748 {
1749     PyObject *sipParseErr = SIP_NULLPTR;
1750 
1751     {
1752         const  ::wxBitmap* bmp;
1753          ::wxCoord x;
1754          ::wxCoord y;
1755         bool useMask = 0;
1756          ::wxPseudoDC *sipCpp;
1757 
1758         static const char *sipKwdList[] = {
1759             sipName_bmp,
1760             sipName_x,
1761             sipName_y,
1762             sipName_useMask,
1763         };
1764 
1765         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9ii|b", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxBitmap, &bmp, &x, &y, &useMask))
1766         {
1767             PyErr_Clear();
1768 
1769             Py_BEGIN_ALLOW_THREADS
1770             sipCpp->DrawBitmap(*bmp,x,y,useMask);
1771             Py_END_ALLOW_THREADS
1772 
1773             if (PyErr_Occurred())
1774                 return 0;
1775 
1776             Py_INCREF(Py_None);
1777             return Py_None;
1778         }
1779     }
1780 
1781     {
1782         const  ::wxBitmap* bmp;
1783         const  ::wxPoint* pt;
1784         int ptState = 0;
1785         bool useMask = 0;
1786          ::wxPseudoDC *sipCpp;
1787 
1788         static const char *sipKwdList[] = {
1789             sipName_bmp,
1790             sipName_pt,
1791             sipName_useMask,
1792         };
1793 
1794         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J1|b", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxBitmap, &bmp, sipType_wxPoint, &pt, &ptState, &useMask))
1795         {
1796             PyErr_Clear();
1797 
1798             Py_BEGIN_ALLOW_THREADS
1799             sipCpp->DrawBitmap(*bmp,*pt,useMask);
1800             Py_END_ALLOW_THREADS
1801             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1802 
1803             if (PyErr_Occurred())
1804                 return 0;
1805 
1806             Py_INCREF(Py_None);
1807             return Py_None;
1808         }
1809     }
1810 
1811     /* Raise an exception if the arguments couldn't be parsed. */
1812     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawBitmap, SIP_NULLPTR);
1813 
1814     return SIP_NULLPTR;
1815 }
1816 
1817 
1818 PyDoc_STRVAR(doc_wxPseudoDC_DrawText, "DrawText(text, x, y)\n"
1819 "DrawText(text, pt)\n"
1820 "\n"
1821 "Draws a text string at the specified point, using the\n"
1822 "current text font, and the current text foreground and\n"
1823 "background colours.\n"
1824 "\n"
1825 "The coordinates refer to the top-left corner of the\n"
1826 "rectangle bounding the string. See `wx.DC.GetTextExtent`\n"
1827 "for how to get the dimensions of a text string, which can\n"
1828 "be used to position the text more precisely, (you will\n"
1829 "need to use a real DC with GetTextExtent as wx.PseudoDC\n"
1830 "does not implement it.)\n"
1831 "\n"
1832 "**NOTE**: under wxGTK the current logical function is used\n"
1833 "*by this function but it is ignored by wxMSW. Thus, you\n"
1834 "*should avoid using logical functions with this function\n"
1835 "*in portable programs.\", \"\n"
1836 "\n"
1837 ":see: `DrawRotatedText`\n"
1838 "");
1839 
1840 extern "C" {static PyObject *meth_wxPseudoDC_DrawText(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawText(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1841 static PyObject *meth_wxPseudoDC_DrawText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1842 {
1843     PyObject *sipParseErr = SIP_NULLPTR;
1844 
1845     {
1846         const  ::wxString* text;
1847         int textState = 0;
1848          ::wxCoord x;
1849          ::wxCoord y;
1850          ::wxPseudoDC *sipCpp;
1851 
1852         static const char *sipKwdList[] = {
1853             sipName_text,
1854             sipName_x,
1855             sipName_y,
1856         };
1857 
1858         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1ii", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxString,&text, &textState, &x, &y))
1859         {
1860             PyErr_Clear();
1861 
1862             Py_BEGIN_ALLOW_THREADS
1863             sipCpp->DrawText(*text,x,y);
1864             Py_END_ALLOW_THREADS
1865             sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
1866 
1867             if (PyErr_Occurred())
1868                 return 0;
1869 
1870             Py_INCREF(Py_None);
1871             return Py_None;
1872         }
1873     }
1874 
1875     {
1876         const  ::wxString* text;
1877         int textState = 0;
1878         const  ::wxPoint* pt;
1879         int ptState = 0;
1880          ::wxPseudoDC *sipCpp;
1881 
1882         static const char *sipKwdList[] = {
1883             sipName_text,
1884             sipName_pt,
1885         };
1886 
1887         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxString,&text, &textState, sipType_wxPoint, &pt, &ptState))
1888         {
1889             PyErr_Clear();
1890 
1891             Py_BEGIN_ALLOW_THREADS
1892             sipCpp->DrawText(*text,*pt);
1893             Py_END_ALLOW_THREADS
1894             sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
1895             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1896 
1897             if (PyErr_Occurred())
1898                 return 0;
1899 
1900             Py_INCREF(Py_None);
1901             return Py_None;
1902         }
1903     }
1904 
1905     /* Raise an exception if the arguments couldn't be parsed. */
1906     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawText, SIP_NULLPTR);
1907 
1908     return SIP_NULLPTR;
1909 }
1910 
1911 
1912 PyDoc_STRVAR(doc_wxPseudoDC_DrawRotatedText, "DrawRotatedText(text, x, y, angle)\n"
1913 "DrawRotatedText(text, pt, angle)\n"
1914 "\n"
1915 "Draws the text rotated by *angle* degrees, if supported by the\n"
1916 "platform.\n"
1917 "");
1918 
1919 extern "C" {static PyObject *meth_wxPseudoDC_DrawRotatedText(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawRotatedText(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1920 static PyObject *meth_wxPseudoDC_DrawRotatedText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1921 {
1922     PyObject *sipParseErr = SIP_NULLPTR;
1923 
1924     {
1925         const  ::wxString* text;
1926         int textState = 0;
1927          ::wxCoord x;
1928          ::wxCoord y;
1929         double angle;
1930          ::wxPseudoDC *sipCpp;
1931 
1932         static const char *sipKwdList[] = {
1933             sipName_text,
1934             sipName_x,
1935             sipName_y,
1936             sipName_angle,
1937         };
1938 
1939         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1iid", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxString,&text, &textState, &x, &y, &angle))
1940         {
1941             PyErr_Clear();
1942 
1943             Py_BEGIN_ALLOW_THREADS
1944             sipCpp->DrawRotatedText(*text,x,y,angle);
1945             Py_END_ALLOW_THREADS
1946             sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
1947 
1948             if (PyErr_Occurred())
1949                 return 0;
1950 
1951             Py_INCREF(Py_None);
1952             return Py_None;
1953         }
1954     }
1955 
1956     {
1957         const  ::wxString* text;
1958         int textState = 0;
1959         const  ::wxPoint* pt;
1960         int ptState = 0;
1961         double angle;
1962          ::wxPseudoDC *sipCpp;
1963 
1964         static const char *sipKwdList[] = {
1965             sipName_text,
1966             sipName_pt,
1967             sipName_angle,
1968         };
1969 
1970         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1d", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxString,&text, &textState, sipType_wxPoint, &pt, &ptState, &angle))
1971         {
1972             PyErr_Clear();
1973 
1974             Py_BEGIN_ALLOW_THREADS
1975             sipCpp->DrawRotatedText(*text,*pt,angle);
1976             Py_END_ALLOW_THREADS
1977             sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
1978             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1979 
1980             if (PyErr_Occurred())
1981                 return 0;
1982 
1983             Py_INCREF(Py_None);
1984             return Py_None;
1985         }
1986     }
1987 
1988     /* Raise an exception if the arguments couldn't be parsed. */
1989     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawRotatedText, SIP_NULLPTR);
1990 
1991     return SIP_NULLPTR;
1992 }
1993 
1994 
1995 PyDoc_STRVAR(doc_wxPseudoDC_DrawLabel, "DrawLabel(text, rect, alignment=wx.ALIGN_LEFT|wx.ALIGN_TOP, indexAccel=-1)\n"
1996 "DrawLabel(text, image, rect, alignment=wx.ALIGN_LEFT|wx.ALIGN_TOP, indexAccel=-1)\n"
1997 "\n"
1998 "Draw *text* within the specified rectangle, abiding by the\n"
1999 "alignment flags.  Will additionally emphasize the\n"
2000 "character at *indexAccel* if it is not -1.\n"
2001 "");
2002 
2003 extern "C" {static PyObject *meth_wxPseudoDC_DrawLabel(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawLabel(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2004 static PyObject *meth_wxPseudoDC_DrawLabel(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2005 {
2006     PyObject *sipParseErr = SIP_NULLPTR;
2007 
2008     {
2009         const  ::wxString* text;
2010         int textState = 0;
2011         const  ::wxRect* rect;
2012         int rectState = 0;
2013         int alignment = wxALIGN_LEFT|wxALIGN_TOP;
2014         int indexAccel = -1;
2015          ::wxPseudoDC *sipCpp;
2016 
2017         static const char *sipKwdList[] = {
2018             sipName_text,
2019             sipName_rect,
2020             sipName_alignment,
2021             sipName_indexAccel,
2022         };
2023 
2024         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1|ii", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxString,&text, &textState, sipType_wxRect, &rect, &rectState, &alignment, &indexAccel))
2025         {
2026             PyErr_Clear();
2027 
2028             Py_BEGIN_ALLOW_THREADS
2029             sipCpp->DrawLabel(*text,*rect,alignment,indexAccel);
2030             Py_END_ALLOW_THREADS
2031             sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
2032             sipReleaseType(const_cast< ::wxRect *>(rect),sipType_wxRect,rectState);
2033 
2034             if (PyErr_Occurred())
2035                 return 0;
2036 
2037             Py_INCREF(Py_None);
2038             return Py_None;
2039         }
2040     }
2041 
2042     {
2043         const  ::wxString* text;
2044         int textState = 0;
2045         const  ::wxBitmap* image;
2046         const  ::wxRect* rect;
2047         int rectState = 0;
2048         int alignment = wxALIGN_LEFT|wxALIGN_TOP;
2049         int indexAccel = -1;
2050          ::wxPseudoDC *sipCpp;
2051 
2052         static const char *sipKwdList[] = {
2053             sipName_text,
2054             sipName_image,
2055             sipName_rect,
2056             sipName_alignment,
2057             sipName_indexAccel,
2058         };
2059 
2060         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J9J1|ii", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxString,&text, &textState, sipType_wxBitmap, &image, sipType_wxRect, &rect, &rectState, &alignment, &indexAccel))
2061         {
2062             PyErr_Clear();
2063 
2064             Py_BEGIN_ALLOW_THREADS
2065             sipCpp->DrawLabel(*text,*image,*rect,alignment,indexAccel);
2066             Py_END_ALLOW_THREADS
2067             sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
2068             sipReleaseType(const_cast< ::wxRect *>(rect),sipType_wxRect,rectState);
2069 
2070             if (PyErr_Occurred())
2071                 return 0;
2072 
2073             Py_INCREF(Py_None);
2074             return Py_None;
2075         }
2076     }
2077 
2078     /* Raise an exception if the arguments couldn't be parsed. */
2079     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawLabel, SIP_NULLPTR);
2080 
2081     return SIP_NULLPTR;
2082 }
2083 
2084 
2085 PyDoc_STRVAR(doc_wxPseudoDC_Clear, "Clear()\n"
2086 "\n"
2087 "Clears the device context using the current background brush.");
2088 
2089 extern "C" {static PyObject *meth_wxPseudoDC_Clear(PyObject *, PyObject *);}
meth_wxPseudoDC_Clear(PyObject * sipSelf,PyObject * sipArgs)2090 static PyObject *meth_wxPseudoDC_Clear(PyObject *sipSelf, PyObject *sipArgs)
2091 {
2092     PyObject *sipParseErr = SIP_NULLPTR;
2093 
2094     {
2095          ::wxPseudoDC *sipCpp;
2096 
2097         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPseudoDC, &sipCpp))
2098         {
2099             PyErr_Clear();
2100 
2101             Py_BEGIN_ALLOW_THREADS
2102             sipCpp->Clear();
2103             Py_END_ALLOW_THREADS
2104 
2105             if (PyErr_Occurred())
2106                 return 0;
2107 
2108             Py_INCREF(Py_None);
2109             return Py_None;
2110         }
2111     }
2112 
2113     /* Raise an exception if the arguments couldn't be parsed. */
2114     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_Clear, SIP_NULLPTR);
2115 
2116     return SIP_NULLPTR;
2117 }
2118 
2119 
2120 PyDoc_STRVAR(doc_wxPseudoDC_SetFont, "SetFont(font)\n"
2121 "\n"
2122 "Sets the current font for the DC. It must be a valid font, in\n"
2123 "particular you should not pass ``wx.NullFont`` to this method.\n"
2124 "\n"
2125 ":see: `wx.Font`");
2126 
2127 extern "C" {static PyObject *meth_wxPseudoDC_SetFont(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetFont(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2128 static PyObject *meth_wxPseudoDC_SetFont(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2129 {
2130     PyObject *sipParseErr = SIP_NULLPTR;
2131 
2132     {
2133         const  ::wxFont* font;
2134          ::wxPseudoDC *sipCpp;
2135 
2136         static const char *sipKwdList[] = {
2137             sipName_font,
2138         };
2139 
2140         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxFont, &font))
2141         {
2142             PyErr_Clear();
2143 
2144             Py_BEGIN_ALLOW_THREADS
2145             sipCpp->SetFont(*font);
2146             Py_END_ALLOW_THREADS
2147 
2148             if (PyErr_Occurred())
2149                 return 0;
2150 
2151             Py_INCREF(Py_None);
2152             return Py_None;
2153         }
2154     }
2155 
2156     /* Raise an exception if the arguments couldn't be parsed. */
2157     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetFont, SIP_NULLPTR);
2158 
2159     return SIP_NULLPTR;
2160 }
2161 
2162 
2163 PyDoc_STRVAR(doc_wxPseudoDC_SetPen, "SetPen(pen)\n"
2164 "\n"
2165 "Sets the current pen for the DC.\n"
2166 "\n"
2167 "If the argument is ``wx.NullPen``, the current pen is selected out of\n"
2168 "the\n"
2169 "device context, and the original pen restored.\n"
2170 "\n"
2171 ":see: `wx.Pen`");
2172 
2173 extern "C" {static PyObject *meth_wxPseudoDC_SetPen(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetPen(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2174 static PyObject *meth_wxPseudoDC_SetPen(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2175 {
2176     PyObject *sipParseErr = SIP_NULLPTR;
2177 
2178     {
2179         const  ::wxPen* pen;
2180          ::wxPseudoDC *sipCpp;
2181 
2182         static const char *sipKwdList[] = {
2183             sipName_pen,
2184         };
2185 
2186         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPen, &pen))
2187         {
2188             PyErr_Clear();
2189 
2190             Py_BEGIN_ALLOW_THREADS
2191             sipCpp->SetPen(*pen);
2192             Py_END_ALLOW_THREADS
2193 
2194             if (PyErr_Occurred())
2195                 return 0;
2196 
2197             Py_INCREF(Py_None);
2198             return Py_None;
2199         }
2200     }
2201 
2202     /* Raise an exception if the arguments couldn't be parsed. */
2203     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetPen, SIP_NULLPTR);
2204 
2205     return SIP_NULLPTR;
2206 }
2207 
2208 
2209 PyDoc_STRVAR(doc_wxPseudoDC_SetBrush, "SetBrush(brush)\n"
2210 "\n"
2211 "Sets the current brush for the DC.\n"
2212 "\n"
2213 "If the argument is ``wx.NullBrush``, the current brush is selected out\n"
2214 "of the device context, and the original brush restored, allowing the\n"
2215 "current brush to be destroyed safely.\n"
2216 "\n"
2217 ":see: `wx.Brush`");
2218 
2219 extern "C" {static PyObject *meth_wxPseudoDC_SetBrush(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetBrush(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2220 static PyObject *meth_wxPseudoDC_SetBrush(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2221 {
2222     PyObject *sipParseErr = SIP_NULLPTR;
2223 
2224     {
2225         const  ::wxBrush* brush;
2226          ::wxPseudoDC *sipCpp;
2227 
2228         static const char *sipKwdList[] = {
2229             sipName_brush,
2230         };
2231 
2232         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxBrush, &brush))
2233         {
2234             PyErr_Clear();
2235 
2236             Py_BEGIN_ALLOW_THREADS
2237             sipCpp->SetBrush(*brush);
2238             Py_END_ALLOW_THREADS
2239 
2240             if (PyErr_Occurred())
2241                 return 0;
2242 
2243             Py_INCREF(Py_None);
2244             return Py_None;
2245         }
2246     }
2247 
2248     /* Raise an exception if the arguments couldn't be parsed. */
2249     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetBrush, SIP_NULLPTR);
2250 
2251     return SIP_NULLPTR;
2252 }
2253 
2254 
2255 PyDoc_STRVAR(doc_wxPseudoDC_SetBackground, "SetBackground(brush)\n"
2256 "\n"
2257 "Sets the current background brush for the DC.");
2258 
2259 extern "C" {static PyObject *meth_wxPseudoDC_SetBackground(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetBackground(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2260 static PyObject *meth_wxPseudoDC_SetBackground(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2261 {
2262     PyObject *sipParseErr = SIP_NULLPTR;
2263 
2264     {
2265         const  ::wxBrush* brush;
2266          ::wxPseudoDC *sipCpp;
2267 
2268         static const char *sipKwdList[] = {
2269             sipName_brush,
2270         };
2271 
2272         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxBrush, &brush))
2273         {
2274             PyErr_Clear();
2275 
2276             Py_BEGIN_ALLOW_THREADS
2277             sipCpp->SetBackground(*brush);
2278             Py_END_ALLOW_THREADS
2279 
2280             if (PyErr_Occurred())
2281                 return 0;
2282 
2283             Py_INCREF(Py_None);
2284             return Py_None;
2285         }
2286     }
2287 
2288     /* Raise an exception if the arguments couldn't be parsed. */
2289     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetBackground, SIP_NULLPTR);
2290 
2291     return SIP_NULLPTR;
2292 }
2293 
2294 
2295 PyDoc_STRVAR(doc_wxPseudoDC_SetBackgroundMode, "SetBackgroundMode(mode)\n"
2296 "\n"
2297 "The *mode* parameter may be one of ``wx.SOLID`` and\n"
2298 "``wx.TRANSPARENT``. This setting determines whether text\n"
2299 "will be drawn with a background colour or not.");
2300 
2301 extern "C" {static PyObject *meth_wxPseudoDC_SetBackgroundMode(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetBackgroundMode(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2302 static PyObject *meth_wxPseudoDC_SetBackgroundMode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2303 {
2304     PyObject *sipParseErr = SIP_NULLPTR;
2305 
2306     {
2307         int mode;
2308          ::wxPseudoDC *sipCpp;
2309 
2310         static const char *sipKwdList[] = {
2311             sipName_mode,
2312         };
2313 
2314         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxPseudoDC, &sipCpp, &mode))
2315         {
2316             PyErr_Clear();
2317 
2318             Py_BEGIN_ALLOW_THREADS
2319             sipCpp->SetBackgroundMode(mode);
2320             Py_END_ALLOW_THREADS
2321 
2322             if (PyErr_Occurred())
2323                 return 0;
2324 
2325             Py_INCREF(Py_None);
2326             return Py_None;
2327         }
2328     }
2329 
2330     /* Raise an exception if the arguments couldn't be parsed. */
2331     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetBackgroundMode, SIP_NULLPTR);
2332 
2333     return SIP_NULLPTR;
2334 }
2335 
2336 
2337 PyDoc_STRVAR(doc_wxPseudoDC_SetTextForeground, "SetTextForeground(colour)\n"
2338 "\n"
2339 "Sets the current text foreground colour for the DC.");
2340 
2341 extern "C" {static PyObject *meth_wxPseudoDC_SetTextForeground(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetTextForeground(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2342 static PyObject *meth_wxPseudoDC_SetTextForeground(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2343 {
2344     PyObject *sipParseErr = SIP_NULLPTR;
2345 
2346     {
2347         const  ::wxColour* colour;
2348         int colourState = 0;
2349          ::wxPseudoDC *sipCpp;
2350 
2351         static const char *sipKwdList[] = {
2352             sipName_colour,
2353         };
2354 
2355         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxColour, &colour, &colourState))
2356         {
2357             PyErr_Clear();
2358 
2359             Py_BEGIN_ALLOW_THREADS
2360             sipCpp->SetTextForeground(*colour);
2361             Py_END_ALLOW_THREADS
2362             sipReleaseType(const_cast< ::wxColour *>(colour),sipType_wxColour,colourState);
2363 
2364             if (PyErr_Occurred())
2365                 return 0;
2366 
2367             Py_INCREF(Py_None);
2368             return Py_None;
2369         }
2370     }
2371 
2372     /* Raise an exception if the arguments couldn't be parsed. */
2373     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetTextForeground, SIP_NULLPTR);
2374 
2375     return SIP_NULLPTR;
2376 }
2377 
2378 
2379 PyDoc_STRVAR(doc_wxPseudoDC_SetTextBackground, "SetTextBackground(colour)\n"
2380 "\n"
2381 "Sets the current text background colour for the DC.");
2382 
2383 extern "C" {static PyObject *meth_wxPseudoDC_SetTextBackground(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetTextBackground(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2384 static PyObject *meth_wxPseudoDC_SetTextBackground(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2385 {
2386     PyObject *sipParseErr = SIP_NULLPTR;
2387 
2388     {
2389         const  ::wxColour* colour;
2390         int colourState = 0;
2391          ::wxPseudoDC *sipCpp;
2392 
2393         static const char *sipKwdList[] = {
2394             sipName_colour,
2395         };
2396 
2397         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxColour, &colour, &colourState))
2398         {
2399             PyErr_Clear();
2400 
2401             Py_BEGIN_ALLOW_THREADS
2402             sipCpp->SetTextBackground(*colour);
2403             Py_END_ALLOW_THREADS
2404             sipReleaseType(const_cast< ::wxColour *>(colour),sipType_wxColour,colourState);
2405 
2406             if (PyErr_Occurred())
2407                 return 0;
2408 
2409             Py_INCREF(Py_None);
2410             return Py_None;
2411         }
2412     }
2413 
2414     /* Raise an exception if the arguments couldn't be parsed. */
2415     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetTextBackground, SIP_NULLPTR);
2416 
2417     return SIP_NULLPTR;
2418 }
2419 
2420 
2421 PyDoc_STRVAR(doc_wxPseudoDC_SetLogicalFunction, "SetLogicalFunction(function)\n"
2422 "\n"
2423 "Sets the current logical function for the device context. This\n"
2424 "determines how a source pixel (from a pen or brush colour, combines\n"
2425 "with a destination pixel in the current device context.\n"
2426 "\n"
2427 "The possible values and their meaning in terms of source and\n"
2428 "destination pixel values are defined in the\n"
2429 ":ref:`wx.RasterOperationMode`\n"
2430 "enumeration.\n"
2431 "\n"
2432 "The default is wx.COPY, which simply draws with the current\n"
2433 "colour. The others combine the current colour and the background using\n"
2434 "a logical operation. wx.INVERT is commonly used for drawing rubber\n"
2435 "bands or moving outlines, since drawing twice reverts to the original\n"
2436 "colour.");
2437 
2438 extern "C" {static PyObject *meth_wxPseudoDC_SetLogicalFunction(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_SetLogicalFunction(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2439 static PyObject *meth_wxPseudoDC_SetLogicalFunction(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2440 {
2441     PyObject *sipParseErr = SIP_NULLPTR;
2442 
2443     {
2444          ::wxRasterOperationMode function;
2445          ::wxPseudoDC *sipCpp;
2446 
2447         static const char *sipKwdList[] = {
2448             sipName_function,
2449         };
2450 
2451         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxRasterOperationMode, &function))
2452         {
2453             PyErr_Clear();
2454 
2455             Py_BEGIN_ALLOW_THREADS
2456             sipCpp->SetLogicalFunction(function);
2457             Py_END_ALLOW_THREADS
2458 
2459             if (PyErr_Occurred())
2460                 return 0;
2461 
2462             Py_INCREF(Py_None);
2463             return Py_None;
2464         }
2465     }
2466 
2467     /* Raise an exception if the arguments couldn't be parsed. */
2468     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_SetLogicalFunction, SIP_NULLPTR);
2469 
2470     return SIP_NULLPTR;
2471 }
2472 
2473 
2474 PyDoc_STRVAR(doc_wxPseudoDC_DrawLines, "DrawLines(points, xoffset=0, yoffset=0)\n"
2475 "\n"
2476 "Draws lines using a sequence of `wx.Point` objects, adding the\n"
2477 "optional offset coordinate. The current pen is used for drawing the\n"
2478 "lines.");
2479 
2480 extern "C" {static PyObject *meth_wxPseudoDC_DrawLines(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawLines(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2481 static PyObject *meth_wxPseudoDC_DrawLines(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2482 {
2483     PyObject *sipParseErr = SIP_NULLPTR;
2484 
2485     {
2486         const  ::wxPointList* points;
2487         int pointsState = 0;
2488          ::wxCoord xoffset = 0;
2489          ::wxCoord yoffset = 0;
2490          ::wxPseudoDC *sipCpp;
2491 
2492         static const char *sipKwdList[] = {
2493             sipName_points,
2494             sipName_xoffset,
2495             sipName_yoffset,
2496         };
2497 
2498         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ0|ii", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPointList, &points, &pointsState, &xoffset, &yoffset))
2499         {
2500             PyErr_Clear();
2501 
2502             Py_BEGIN_ALLOW_THREADS
2503             sipCpp->DrawLines(points,xoffset,yoffset);
2504             Py_END_ALLOW_THREADS
2505             sipReleaseType(const_cast< ::wxPointList *>(points),sipType_wxPointList,pointsState);
2506 
2507             if (PyErr_Occurred())
2508                 return 0;
2509 
2510             Py_INCREF(Py_None);
2511             return Py_None;
2512         }
2513     }
2514 
2515     /* Raise an exception if the arguments couldn't be parsed. */
2516     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawLines, SIP_NULLPTR);
2517 
2518     return SIP_NULLPTR;
2519 }
2520 
2521 
2522 PyDoc_STRVAR(doc_wxPseudoDC_DrawPolygon, "DrawPolygon(points, xoffset=0, yoffset=0, fillStyle=wx.ODDEVEN_RULE)\n"
2523 "\n"
2524 "Draws a filled polygon using a sequence of `wx.Point` objects, adding\n"
2525 "the optional offset coordinate.  The last argument specifies the fill\n"
2526 "rule: ``wx.ODDEVEN_RULE`` (the default) or ``wx.WINDING_RULE``.\n"
2527 "\n"
2528 "The current pen is used for drawing the outline, and the current brush\n"
2529 "for filling the shape. Using a transparent brush suppresses\n"
2530 "filling. Note that wxWidgets automatically closes the first and last\n"
2531 "points.");
2532 
2533 extern "C" {static PyObject *meth_wxPseudoDC_DrawPolygon(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawPolygon(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2534 static PyObject *meth_wxPseudoDC_DrawPolygon(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2535 {
2536     PyObject *sipParseErr = SIP_NULLPTR;
2537 
2538     {
2539         const  ::wxPointList* points;
2540         int pointsState = 0;
2541          ::wxCoord xoffset = 0;
2542          ::wxCoord yoffset = 0;
2543          ::wxPolygonFillMode fillStyle = wxODDEVEN_RULE;
2544          ::wxPseudoDC *sipCpp;
2545 
2546         static const char *sipKwdList[] = {
2547             sipName_points,
2548             sipName_xoffset,
2549             sipName_yoffset,
2550             sipName_fillStyle,
2551         };
2552 
2553         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ0|iiE", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPointList, &points, &pointsState, &xoffset, &yoffset, sipType_wxPolygonFillMode, &fillStyle))
2554         {
2555             PyErr_Clear();
2556 
2557             Py_BEGIN_ALLOW_THREADS
2558             sipCpp->DrawPolygon(points,xoffset,yoffset,fillStyle);
2559             Py_END_ALLOW_THREADS
2560             sipReleaseType(const_cast< ::wxPointList *>(points),sipType_wxPointList,pointsState);
2561 
2562             if (PyErr_Occurred())
2563                 return 0;
2564 
2565             Py_INCREF(Py_None);
2566             return Py_None;
2567         }
2568     }
2569 
2570     /* Raise an exception if the arguments couldn't be parsed. */
2571     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawPolygon, SIP_NULLPTR);
2572 
2573     return SIP_NULLPTR;
2574 }
2575 
2576 
2577 PyDoc_STRVAR(doc_wxPseudoDC_DrawSpline, "DrawSpline(points)\n"
2578 "\n"
2579 "Draws a spline between all given control points, (a list of `wx.Point`\n"
2580 "objects) using the current pen. The spline is drawn using a series of\n"
2581 "lines, using an algorithm taken from the X drawing program 'XFIG'.");
2582 
2583 extern "C" {static PyObject *meth_wxPseudoDC_DrawSpline(PyObject *, PyObject *, PyObject *);}
meth_wxPseudoDC_DrawSpline(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2584 static PyObject *meth_wxPseudoDC_DrawSpline(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2585 {
2586     PyObject *sipParseErr = SIP_NULLPTR;
2587 
2588     {
2589         const  ::wxPointList* points;
2590         int pointsState = 0;
2591          ::wxPseudoDC *sipCpp;
2592 
2593         static const char *sipKwdList[] = {
2594             sipName_points,
2595         };
2596 
2597         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ0", &sipSelf, sipType_wxPseudoDC, &sipCpp, sipType_wxPointList, &points, &pointsState))
2598         {
2599             PyErr_Clear();
2600 
2601             Py_BEGIN_ALLOW_THREADS
2602             sipCpp->DrawSpline(points);
2603             Py_END_ALLOW_THREADS
2604             sipReleaseType(const_cast< ::wxPointList *>(points),sipType_wxPointList,pointsState);
2605 
2606             if (PyErr_Occurred())
2607                 return 0;
2608 
2609             Py_INCREF(Py_None);
2610             return Py_None;
2611         }
2612     }
2613 
2614     /* Raise an exception if the arguments couldn't be parsed. */
2615     sipNoMethod(sipParseErr, sipName_PseudoDC, sipName_DrawSpline, SIP_NULLPTR);
2616 
2617     return SIP_NULLPTR;
2618 }
2619 
2620 
2621 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
2622 extern "C" {static void *cast_wxPseudoDC(void *, const sipTypeDef *);}
cast_wxPseudoDC(void * sipCppV,const sipTypeDef * targetType)2623 static void *cast_wxPseudoDC(void *sipCppV, const sipTypeDef *targetType)
2624 {
2625      ::wxPseudoDC *sipCpp = reinterpret_cast< ::wxPseudoDC *>(sipCppV);
2626 
2627     if (targetType == sipType_wxObject)
2628         return static_cast< ::wxObject *>(sipCpp);
2629 
2630     return sipCppV;
2631 }
2632 
2633 
2634 /* Call the instance's destructor. */
2635 extern "C" {static void release_wxPseudoDC(void *, int);}
release_wxPseudoDC(void * sipCppV,int)2636 static void release_wxPseudoDC(void *sipCppV, int)
2637 {
2638     Py_BEGIN_ALLOW_THREADS
2639 
2640     delete reinterpret_cast< ::wxPseudoDC *>(sipCppV);
2641 
2642     Py_END_ALLOW_THREADS
2643 }
2644 
2645 
2646 extern "C" {static void assign_wxPseudoDC(void *, SIP_SSIZE_T, void *);}
assign_wxPseudoDC(void * sipDst,SIP_SSIZE_T sipDstIdx,void * sipSrc)2647 static void assign_wxPseudoDC(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
2648 {
2649     reinterpret_cast< ::wxPseudoDC *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::wxPseudoDC *>(sipSrc);
2650 }
2651 
2652 
2653 extern "C" {static void *array_wxPseudoDC(SIP_SSIZE_T);}
array_wxPseudoDC(SIP_SSIZE_T sipNrElem)2654 static void *array_wxPseudoDC(SIP_SSIZE_T sipNrElem)
2655 {
2656     return new  ::wxPseudoDC[sipNrElem];
2657 }
2658 
2659 
2660 extern "C" {static void *copy_wxPseudoDC(const void *, SIP_SSIZE_T);}
copy_wxPseudoDC(const void * sipSrc,SIP_SSIZE_T sipSrcIdx)2661 static void *copy_wxPseudoDC(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
2662 {
2663     return new  ::wxPseudoDC(reinterpret_cast<const  ::wxPseudoDC *>(sipSrc)[sipSrcIdx]);
2664 }
2665 
2666 
2667 extern "C" {static void dealloc_wxPseudoDC(sipSimpleWrapper *);}
dealloc_wxPseudoDC(sipSimpleWrapper * sipSelf)2668 static void dealloc_wxPseudoDC(sipSimpleWrapper *sipSelf)
2669 {
2670     if (sipIsOwnedByPython(sipSelf))
2671     {
2672         release_wxPseudoDC(sipGetAddress(sipSelf), 0);
2673     }
2674 }
2675 
2676 
2677 extern "C" {static void *init_type_wxPseudoDC(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxPseudoDC(sipSimpleWrapper *,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)2678 static void *init_type_wxPseudoDC(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
2679 {
2680      ::wxPseudoDC *sipCpp = SIP_NULLPTR;
2681 
2682     {
2683         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
2684         {
2685             PyErr_Clear();
2686 
2687             Py_BEGIN_ALLOW_THREADS
2688             sipCpp = new  ::wxPseudoDC();
2689             Py_END_ALLOW_THREADS
2690 
2691             if (PyErr_Occurred())
2692             {
2693                 delete sipCpp;
2694                 return SIP_NULLPTR;
2695             }
2696 
2697             return sipCpp;
2698         }
2699     }
2700 
2701     {
2702         const  ::wxPseudoDC* a0;
2703 
2704         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_wxPseudoDC, &a0))
2705         {
2706             Py_BEGIN_ALLOW_THREADS
2707             sipCpp = new  ::wxPseudoDC(*a0);
2708             Py_END_ALLOW_THREADS
2709 
2710             return sipCpp;
2711         }
2712     }
2713 
2714     return SIP_NULLPTR;
2715 }
2716 
2717 
2718 /* Define this type's super-types. */
2719 static sipEncodedTypeDef supers_wxPseudoDC[] = {{38, 0, 1}};
2720 
2721 
2722 static PyMethodDef methods_wxPseudoDC[] = {
2723     {SIP_MLNAME_CAST(sipName_Clear), meth_wxPseudoDC_Clear, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPseudoDC_Clear)},
2724     {SIP_MLNAME_CAST(sipName_ClearId), SIP_MLMETH_CAST(meth_wxPseudoDC_ClearId), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_ClearId)},
2725     {SIP_MLNAME_CAST(sipName_CrossHair), SIP_MLMETH_CAST(meth_wxPseudoDC_CrossHair), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_CrossHair)},
2726     {SIP_MLNAME_CAST(sipName_DrawArc), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawArc), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawArc)},
2727     {SIP_MLNAME_CAST(sipName_DrawBitmap), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawBitmap), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawBitmap)},
2728     {SIP_MLNAME_CAST(sipName_DrawCheckMark), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawCheckMark), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawCheckMark)},
2729     {SIP_MLNAME_CAST(sipName_DrawCircle), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawCircle), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawCircle)},
2730     {SIP_MLNAME_CAST(sipName_DrawEllipse), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawEllipse), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawEllipse)},
2731     {SIP_MLNAME_CAST(sipName_DrawEllipticArc), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawEllipticArc), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawEllipticArc)},
2732     {SIP_MLNAME_CAST(sipName_DrawIcon), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawIcon), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawIcon)},
2733     {SIP_MLNAME_CAST(sipName_DrawIdToDC), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawIdToDC), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawIdToDC)},
2734     {SIP_MLNAME_CAST(sipName_DrawLabel), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawLabel), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawLabel)},
2735     {SIP_MLNAME_CAST(sipName_DrawLine), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawLine), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawLine)},
2736     {SIP_MLNAME_CAST(sipName_DrawLines), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawLines), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawLines)},
2737     {SIP_MLNAME_CAST(sipName_DrawPoint), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawPoint), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawPoint)},
2738     {SIP_MLNAME_CAST(sipName_DrawPolygon), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawPolygon), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawPolygon)},
2739     {SIP_MLNAME_CAST(sipName_DrawRectangle), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawRectangle), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawRectangle)},
2740     {SIP_MLNAME_CAST(sipName_DrawRotatedText), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawRotatedText), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawRotatedText)},
2741     {SIP_MLNAME_CAST(sipName_DrawRoundedRectangle), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawRoundedRectangle), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawRoundedRectangle)},
2742     {SIP_MLNAME_CAST(sipName_DrawSpline), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawSpline), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawSpline)},
2743     {SIP_MLNAME_CAST(sipName_DrawText), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawText), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawText)},
2744     {SIP_MLNAME_CAST(sipName_DrawToDC), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawToDC), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawToDC)},
2745     {SIP_MLNAME_CAST(sipName_DrawToDCClipped), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawToDCClipped), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawToDCClipped)},
2746     {SIP_MLNAME_CAST(sipName_DrawToDCClippedRgn), SIP_MLMETH_CAST(meth_wxPseudoDC_DrawToDCClippedRgn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_DrawToDCClippedRgn)},
2747     {SIP_MLNAME_CAST(sipName_FindObjects), SIP_MLMETH_CAST(meth_wxPseudoDC_FindObjects), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_FindObjects)},
2748     {SIP_MLNAME_CAST(sipName_FindObjectsByBBox), SIP_MLMETH_CAST(meth_wxPseudoDC_FindObjectsByBBox), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_FindObjectsByBBox)},
2749     {SIP_MLNAME_CAST(sipName_FloodFill), SIP_MLMETH_CAST(meth_wxPseudoDC_FloodFill), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_FloodFill)},
2750     {SIP_MLNAME_CAST(sipName_GetIdBounds), SIP_MLMETH_CAST(meth_wxPseudoDC_GetIdBounds), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_GetIdBounds)},
2751     {SIP_MLNAME_CAST(sipName_GetIdGreyedOut), SIP_MLMETH_CAST(meth_wxPseudoDC_GetIdGreyedOut), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_GetIdGreyedOut)},
2752     {SIP_MLNAME_CAST(sipName_GetLen), meth_wxPseudoDC_GetLen, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPseudoDC_GetLen)},
2753     {SIP_MLNAME_CAST(sipName_RemoveAll), meth_wxPseudoDC_RemoveAll, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPseudoDC_RemoveAll)},
2754     {SIP_MLNAME_CAST(sipName_RemoveId), SIP_MLMETH_CAST(meth_wxPseudoDC_RemoveId), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_RemoveId)},
2755     {SIP_MLNAME_CAST(sipName_SetBackground), SIP_MLMETH_CAST(meth_wxPseudoDC_SetBackground), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetBackground)},
2756     {SIP_MLNAME_CAST(sipName_SetBackgroundMode), SIP_MLMETH_CAST(meth_wxPseudoDC_SetBackgroundMode), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetBackgroundMode)},
2757     {SIP_MLNAME_CAST(sipName_SetBrush), SIP_MLMETH_CAST(meth_wxPseudoDC_SetBrush), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetBrush)},
2758     {SIP_MLNAME_CAST(sipName_SetFont), SIP_MLMETH_CAST(meth_wxPseudoDC_SetFont), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetFont)},
2759     {SIP_MLNAME_CAST(sipName_SetId), SIP_MLMETH_CAST(meth_wxPseudoDC_SetId), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetId)},
2760     {SIP_MLNAME_CAST(sipName_SetIdBounds), SIP_MLMETH_CAST(meth_wxPseudoDC_SetIdBounds), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetIdBounds)},
2761     {SIP_MLNAME_CAST(sipName_SetIdGreyedOut), SIP_MLMETH_CAST(meth_wxPseudoDC_SetIdGreyedOut), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetIdGreyedOut)},
2762     {SIP_MLNAME_CAST(sipName_SetLogicalFunction), SIP_MLMETH_CAST(meth_wxPseudoDC_SetLogicalFunction), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetLogicalFunction)},
2763     {SIP_MLNAME_CAST(sipName_SetPen), SIP_MLMETH_CAST(meth_wxPseudoDC_SetPen), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetPen)},
2764     {SIP_MLNAME_CAST(sipName_SetTextBackground), SIP_MLMETH_CAST(meth_wxPseudoDC_SetTextBackground), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetTextBackground)},
2765     {SIP_MLNAME_CAST(sipName_SetTextForeground), SIP_MLMETH_CAST(meth_wxPseudoDC_SetTextForeground), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_SetTextForeground)},
2766     {SIP_MLNAME_CAST(sipName_TranslateId), SIP_MLMETH_CAST(meth_wxPseudoDC_TranslateId), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPseudoDC_TranslateId)}
2767 };
2768 
2769 sipVariableDef variables_wxPseudoDC[] = {
2770     {PropertyVariable, sipName_Len, &methods_wxPseudoDC[29], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2771 };
2772 
2773 PyDoc_STRVAR(doc_wxPseudoDC, "PseudoDC()\n"
2774 "\n"
2775 "A PseudoDC is an object that can be used much like real\n"
2776 ":class:`wx.DC`, however it provides some additional features for\n"
2777 "object recording and manipulation beyond what a ``wx.DC`` can\n"
2778 "provide.\n"
2779 "\n"
2780 "All commands issued to the ``PseudoDC`` are stored in a list.  You\n"
2781 "can then play these commands back to a real DC object as often as\n"
2782 "needed, using the :meth:`DrawToDC` method or one of the similar\n"
2783 "methods.  Commands in the command list can be tagged by an ID. You\n"
2784 "can use this ID to clear the operations associated with a single\n"
2785 "ID, redraw the objects associated with that ID, grey them, adjust\n"
2786 "their position, etc.");
2787 
2788 
2789 sipClassTypeDef sipTypeDef__adv_wxPseudoDC = {
2790     {
2791         -1,
2792         SIP_NULLPTR,
2793         SIP_NULLPTR,
2794         SIP_TYPE_SCC|SIP_TYPE_CLASS,
2795         sipNameNr_wxPseudoDC,
2796         {SIP_NULLPTR},
2797         SIP_NULLPTR
2798     },
2799     {
2800         sipNameNr_PseudoDC,
2801         {0, 0, 1},
2802         44, methods_wxPseudoDC,
2803         0, SIP_NULLPTR,
2804         1, variables_wxPseudoDC,
2805         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2806     },
2807     doc_wxPseudoDC,
2808     -1,
2809     -1,
2810     supers_wxPseudoDC,
2811     SIP_NULLPTR,
2812     init_type_wxPseudoDC,
2813     SIP_NULLPTR,
2814     SIP_NULLPTR,
2815 #if PY_MAJOR_VERSION >= 3
2816     SIP_NULLPTR,
2817     SIP_NULLPTR,
2818 #else
2819     SIP_NULLPTR,
2820     SIP_NULLPTR,
2821     SIP_NULLPTR,
2822     SIP_NULLPTR,
2823 #endif
2824     dealloc_wxPseudoDC,
2825     assign_wxPseudoDC,
2826     array_wxPseudoDC,
2827     copy_wxPseudoDC,
2828     release_wxPseudoDC,
2829     cast_wxPseudoDC,
2830     SIP_NULLPTR,
2831     SIP_NULLPTR,
2832     SIP_NULLPTR,
2833     SIP_NULLPTR,
2834     SIP_NULLPTR,
2835     SIP_NULLPTR
2836 };
2837