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         #include <wx/calctrl.h>
13 
14         #include <wx/colour.h>
15         #include <wx/font.h>
16 
17 
18 PyDoc_STRVAR(doc_wxCalendarDateAttr_GetBackgroundColour, "GetBackgroundColour() -> wx.Colour\n"
19 "\n"
20 "Returns the background colour set for the calendar date.");
21 
22 extern "C" {static PyObject *meth_wxCalendarDateAttr_GetBackgroundColour(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_GetBackgroundColour(PyObject * sipSelf,PyObject * sipArgs)23 static PyObject *meth_wxCalendarDateAttr_GetBackgroundColour(PyObject *sipSelf, PyObject *sipArgs)
24 {
25     PyObject *sipParseErr = SIP_NULLPTR;
26 
27     {
28         const  ::wxCalendarDateAttr *sipCpp;
29 
30         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
31         {
32              ::wxColour*sipRes;
33 
34             PyErr_Clear();
35 
36             Py_BEGIN_ALLOW_THREADS
37             sipRes = new  ::wxColour(sipCpp->GetBackgroundColour());
38             Py_END_ALLOW_THREADS
39 
40             if (PyErr_Occurred())
41                 return 0;
42 
43             return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
44         }
45     }
46 
47     /* Raise an exception if the arguments couldn't be parsed. */
48     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_GetBackgroundColour, SIP_NULLPTR);
49 
50     return SIP_NULLPTR;
51 }
52 
53 
54 PyDoc_STRVAR(doc_wxCalendarDateAttr_GetBorder, "GetBorder() -> CalendarDateBorder\n"
55 "\n"
56 "Returns the border set for the calendar date.");
57 
58 extern "C" {static PyObject *meth_wxCalendarDateAttr_GetBorder(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_GetBorder(PyObject * sipSelf,PyObject * sipArgs)59 static PyObject *meth_wxCalendarDateAttr_GetBorder(PyObject *sipSelf, PyObject *sipArgs)
60 {
61     PyObject *sipParseErr = SIP_NULLPTR;
62 
63     {
64         const  ::wxCalendarDateAttr *sipCpp;
65 
66         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
67         {
68              ::wxCalendarDateBorder sipRes;
69 
70             PyErr_Clear();
71 
72             Py_BEGIN_ALLOW_THREADS
73             sipRes = sipCpp->GetBorder();
74             Py_END_ALLOW_THREADS
75 
76             if (PyErr_Occurred())
77                 return 0;
78 
79             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxCalendarDateBorder);
80         }
81     }
82 
83     /* Raise an exception if the arguments couldn't be parsed. */
84     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_GetBorder, SIP_NULLPTR);
85 
86     return SIP_NULLPTR;
87 }
88 
89 
90 PyDoc_STRVAR(doc_wxCalendarDateAttr_GetBorderColour, "GetBorderColour() -> wx.Colour\n"
91 "\n"
92 "Returns the border colour set for the calendar date.");
93 
94 extern "C" {static PyObject *meth_wxCalendarDateAttr_GetBorderColour(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_GetBorderColour(PyObject * sipSelf,PyObject * sipArgs)95 static PyObject *meth_wxCalendarDateAttr_GetBorderColour(PyObject *sipSelf, PyObject *sipArgs)
96 {
97     PyObject *sipParseErr = SIP_NULLPTR;
98 
99     {
100         const  ::wxCalendarDateAttr *sipCpp;
101 
102         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
103         {
104              ::wxColour*sipRes;
105 
106             PyErr_Clear();
107 
108             Py_BEGIN_ALLOW_THREADS
109             sipRes = new  ::wxColour(sipCpp->GetBorderColour());
110             Py_END_ALLOW_THREADS
111 
112             if (PyErr_Occurred())
113                 return 0;
114 
115             return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
116         }
117     }
118 
119     /* Raise an exception if the arguments couldn't be parsed. */
120     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_GetBorderColour, SIP_NULLPTR);
121 
122     return SIP_NULLPTR;
123 }
124 
125 
126 PyDoc_STRVAR(doc_wxCalendarDateAttr_GetFont, "GetFont() -> wx.Font\n"
127 "\n"
128 "Returns the font set for the calendar date.");
129 
130 extern "C" {static PyObject *meth_wxCalendarDateAttr_GetFont(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_GetFont(PyObject * sipSelf,PyObject * sipArgs)131 static PyObject *meth_wxCalendarDateAttr_GetFont(PyObject *sipSelf, PyObject *sipArgs)
132 {
133     PyObject *sipParseErr = SIP_NULLPTR;
134 
135     {
136         const  ::wxCalendarDateAttr *sipCpp;
137 
138         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
139         {
140              ::wxFont*sipRes;
141 
142             PyErr_Clear();
143 
144             Py_BEGIN_ALLOW_THREADS
145             sipRes = new  ::wxFont(sipCpp->GetFont());
146             Py_END_ALLOW_THREADS
147 
148             if (PyErr_Occurred())
149                 return 0;
150 
151             return sipConvertFromNewType(sipRes,sipType_wxFont,SIP_NULLPTR);
152         }
153     }
154 
155     /* Raise an exception if the arguments couldn't be parsed. */
156     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_GetFont, SIP_NULLPTR);
157 
158     return SIP_NULLPTR;
159 }
160 
161 
162 PyDoc_STRVAR(doc_wxCalendarDateAttr_GetTextColour, "GetTextColour() -> wx.Colour\n"
163 "\n"
164 "Returns the text colour set for the calendar date.");
165 
166 extern "C" {static PyObject *meth_wxCalendarDateAttr_GetTextColour(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_GetTextColour(PyObject * sipSelf,PyObject * sipArgs)167 static PyObject *meth_wxCalendarDateAttr_GetTextColour(PyObject *sipSelf, PyObject *sipArgs)
168 {
169     PyObject *sipParseErr = SIP_NULLPTR;
170 
171     {
172         const  ::wxCalendarDateAttr *sipCpp;
173 
174         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
175         {
176              ::wxColour*sipRes;
177 
178             PyErr_Clear();
179 
180             Py_BEGIN_ALLOW_THREADS
181             sipRes = new  ::wxColour(sipCpp->GetTextColour());
182             Py_END_ALLOW_THREADS
183 
184             if (PyErr_Occurred())
185                 return 0;
186 
187             return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
188         }
189     }
190 
191     /* Raise an exception if the arguments couldn't be parsed. */
192     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_GetTextColour, SIP_NULLPTR);
193 
194     return SIP_NULLPTR;
195 }
196 
197 
198 PyDoc_STRVAR(doc_wxCalendarDateAttr_HasBackgroundColour, "HasBackgroundColour() -> bool\n"
199 "\n"
200 "Returns true if a non-default text background colour is set.");
201 
202 extern "C" {static PyObject *meth_wxCalendarDateAttr_HasBackgroundColour(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_HasBackgroundColour(PyObject * sipSelf,PyObject * sipArgs)203 static PyObject *meth_wxCalendarDateAttr_HasBackgroundColour(PyObject *sipSelf, PyObject *sipArgs)
204 {
205     PyObject *sipParseErr = SIP_NULLPTR;
206 
207     {
208         const  ::wxCalendarDateAttr *sipCpp;
209 
210         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
211         {
212             bool sipRes;
213 
214             PyErr_Clear();
215 
216             Py_BEGIN_ALLOW_THREADS
217             sipRes = sipCpp->HasBackgroundColour();
218             Py_END_ALLOW_THREADS
219 
220             if (PyErr_Occurred())
221                 return 0;
222 
223             return PyBool_FromLong(sipRes);
224         }
225     }
226 
227     /* Raise an exception if the arguments couldn't be parsed. */
228     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_HasBackgroundColour, SIP_NULLPTR);
229 
230     return SIP_NULLPTR;
231 }
232 
233 
234 PyDoc_STRVAR(doc_wxCalendarDateAttr_HasBorder, "HasBorder() -> bool\n"
235 "\n"
236 "Returns true if a non-default (i.e. any) border is set.");
237 
238 extern "C" {static PyObject *meth_wxCalendarDateAttr_HasBorder(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_HasBorder(PyObject * sipSelf,PyObject * sipArgs)239 static PyObject *meth_wxCalendarDateAttr_HasBorder(PyObject *sipSelf, PyObject *sipArgs)
240 {
241     PyObject *sipParseErr = SIP_NULLPTR;
242 
243     {
244         const  ::wxCalendarDateAttr *sipCpp;
245 
246         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
247         {
248             bool sipRes;
249 
250             PyErr_Clear();
251 
252             Py_BEGIN_ALLOW_THREADS
253             sipRes = sipCpp->HasBorder();
254             Py_END_ALLOW_THREADS
255 
256             if (PyErr_Occurred())
257                 return 0;
258 
259             return PyBool_FromLong(sipRes);
260         }
261     }
262 
263     /* Raise an exception if the arguments couldn't be parsed. */
264     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_HasBorder, SIP_NULLPTR);
265 
266     return SIP_NULLPTR;
267 }
268 
269 
270 PyDoc_STRVAR(doc_wxCalendarDateAttr_HasBorderColour, "HasBorderColour() -> bool\n"
271 "\n"
272 "Returns true if a non-default border colour is set.");
273 
274 extern "C" {static PyObject *meth_wxCalendarDateAttr_HasBorderColour(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_HasBorderColour(PyObject * sipSelf,PyObject * sipArgs)275 static PyObject *meth_wxCalendarDateAttr_HasBorderColour(PyObject *sipSelf, PyObject *sipArgs)
276 {
277     PyObject *sipParseErr = SIP_NULLPTR;
278 
279     {
280         const  ::wxCalendarDateAttr *sipCpp;
281 
282         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
283         {
284             bool sipRes;
285 
286             PyErr_Clear();
287 
288             Py_BEGIN_ALLOW_THREADS
289             sipRes = sipCpp->HasBorderColour();
290             Py_END_ALLOW_THREADS
291 
292             if (PyErr_Occurred())
293                 return 0;
294 
295             return PyBool_FromLong(sipRes);
296         }
297     }
298 
299     /* Raise an exception if the arguments couldn't be parsed. */
300     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_HasBorderColour, SIP_NULLPTR);
301 
302     return SIP_NULLPTR;
303 }
304 
305 
306 PyDoc_STRVAR(doc_wxCalendarDateAttr_HasFont, "HasFont() -> bool\n"
307 "\n"
308 "Returns true if a non-default font is set.");
309 
310 extern "C" {static PyObject *meth_wxCalendarDateAttr_HasFont(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_HasFont(PyObject * sipSelf,PyObject * sipArgs)311 static PyObject *meth_wxCalendarDateAttr_HasFont(PyObject *sipSelf, PyObject *sipArgs)
312 {
313     PyObject *sipParseErr = SIP_NULLPTR;
314 
315     {
316         const  ::wxCalendarDateAttr *sipCpp;
317 
318         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
319         {
320             bool sipRes;
321 
322             PyErr_Clear();
323 
324             Py_BEGIN_ALLOW_THREADS
325             sipRes = sipCpp->HasFont();
326             Py_END_ALLOW_THREADS
327 
328             if (PyErr_Occurred())
329                 return 0;
330 
331             return PyBool_FromLong(sipRes);
332         }
333     }
334 
335     /* Raise an exception if the arguments couldn't be parsed. */
336     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_HasFont, SIP_NULLPTR);
337 
338     return SIP_NULLPTR;
339 }
340 
341 
342 PyDoc_STRVAR(doc_wxCalendarDateAttr_HasTextColour, "HasTextColour() -> bool\n"
343 "\n"
344 "Returns true if a non-default text foreground colour is set.");
345 
346 extern "C" {static PyObject *meth_wxCalendarDateAttr_HasTextColour(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_HasTextColour(PyObject * sipSelf,PyObject * sipArgs)347 static PyObject *meth_wxCalendarDateAttr_HasTextColour(PyObject *sipSelf, PyObject *sipArgs)
348 {
349     PyObject *sipParseErr = SIP_NULLPTR;
350 
351     {
352         const  ::wxCalendarDateAttr *sipCpp;
353 
354         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
355         {
356             bool sipRes;
357 
358             PyErr_Clear();
359 
360             Py_BEGIN_ALLOW_THREADS
361             sipRes = sipCpp->HasTextColour();
362             Py_END_ALLOW_THREADS
363 
364             if (PyErr_Occurred())
365                 return 0;
366 
367             return PyBool_FromLong(sipRes);
368         }
369     }
370 
371     /* Raise an exception if the arguments couldn't be parsed. */
372     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_HasTextColour, SIP_NULLPTR);
373 
374     return SIP_NULLPTR;
375 }
376 
377 
378 PyDoc_STRVAR(doc_wxCalendarDateAttr_IsHoliday, "IsHoliday() -> bool\n"
379 "\n"
380 "Returns true if this calendar day is displayed as a holiday.");
381 
382 extern "C" {static PyObject *meth_wxCalendarDateAttr_IsHoliday(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_IsHoliday(PyObject * sipSelf,PyObject * sipArgs)383 static PyObject *meth_wxCalendarDateAttr_IsHoliday(PyObject *sipSelf, PyObject *sipArgs)
384 {
385     PyObject *sipParseErr = SIP_NULLPTR;
386 
387     {
388         const  ::wxCalendarDateAttr *sipCpp;
389 
390         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp))
391         {
392             bool sipRes;
393 
394             PyErr_Clear();
395 
396             Py_BEGIN_ALLOW_THREADS
397             sipRes = sipCpp->IsHoliday();
398             Py_END_ALLOW_THREADS
399 
400             if (PyErr_Occurred())
401                 return 0;
402 
403             return PyBool_FromLong(sipRes);
404         }
405     }
406 
407     /* Raise an exception if the arguments couldn't be parsed. */
408     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_IsHoliday, SIP_NULLPTR);
409 
410     return SIP_NULLPTR;
411 }
412 
413 
414 PyDoc_STRVAR(doc_wxCalendarDateAttr_SetBackgroundColour, "SetBackgroundColour(colBack)\n"
415 "\n"
416 "Sets the text background colour to use.");
417 
418 extern "C" {static PyObject *meth_wxCalendarDateAttr_SetBackgroundColour(PyObject *, PyObject *, PyObject *);}
meth_wxCalendarDateAttr_SetBackgroundColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)419 static PyObject *meth_wxCalendarDateAttr_SetBackgroundColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
420 {
421     PyObject *sipParseErr = SIP_NULLPTR;
422 
423     {
424         const  ::wxColour* colBack;
425         int colBackState = 0;
426          ::wxCalendarDateAttr *sipCpp;
427 
428         static const char *sipKwdList[] = {
429             sipName_colBack,
430         };
431 
432         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp, sipType_wxColour, &colBack, &colBackState))
433         {
434             PyErr_Clear();
435 
436             Py_BEGIN_ALLOW_THREADS
437             sipCpp->SetBackgroundColour(*colBack);
438             Py_END_ALLOW_THREADS
439             sipReleaseType(const_cast< ::wxColour *>(colBack),sipType_wxColour,colBackState);
440 
441             if (PyErr_Occurred())
442                 return 0;
443 
444             Py_INCREF(Py_None);
445             return Py_None;
446         }
447     }
448 
449     /* Raise an exception if the arguments couldn't be parsed. */
450     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_SetBackgroundColour, SIP_NULLPTR);
451 
452     return SIP_NULLPTR;
453 }
454 
455 
456 PyDoc_STRVAR(doc_wxCalendarDateAttr_SetBorder, "SetBorder(border)\n"
457 "\n"
458 "Sets the border to use.");
459 
460 extern "C" {static PyObject *meth_wxCalendarDateAttr_SetBorder(PyObject *, PyObject *, PyObject *);}
meth_wxCalendarDateAttr_SetBorder(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)461 static PyObject *meth_wxCalendarDateAttr_SetBorder(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
462 {
463     PyObject *sipParseErr = SIP_NULLPTR;
464 
465     {
466          ::wxCalendarDateBorder border;
467          ::wxCalendarDateAttr *sipCpp;
468 
469         static const char *sipKwdList[] = {
470             sipName_border,
471         };
472 
473         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp, sipType_wxCalendarDateBorder, &border))
474         {
475             PyErr_Clear();
476 
477             Py_BEGIN_ALLOW_THREADS
478             sipCpp->SetBorder(border);
479             Py_END_ALLOW_THREADS
480 
481             if (PyErr_Occurred())
482                 return 0;
483 
484             Py_INCREF(Py_None);
485             return Py_None;
486         }
487     }
488 
489     /* Raise an exception if the arguments couldn't be parsed. */
490     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_SetBorder, SIP_NULLPTR);
491 
492     return SIP_NULLPTR;
493 }
494 
495 
496 PyDoc_STRVAR(doc_wxCalendarDateAttr_SetBorderColour, "SetBorderColour(col)\n"
497 "\n"
498 "Sets the border colour to use.");
499 
500 extern "C" {static PyObject *meth_wxCalendarDateAttr_SetBorderColour(PyObject *, PyObject *, PyObject *);}
meth_wxCalendarDateAttr_SetBorderColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)501 static PyObject *meth_wxCalendarDateAttr_SetBorderColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
502 {
503     PyObject *sipParseErr = SIP_NULLPTR;
504 
505     {
506         const  ::wxColour* col;
507         int colState = 0;
508          ::wxCalendarDateAttr *sipCpp;
509 
510         static const char *sipKwdList[] = {
511             sipName_col,
512         };
513 
514         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp, sipType_wxColour, &col, &colState))
515         {
516             PyErr_Clear();
517 
518             Py_BEGIN_ALLOW_THREADS
519             sipCpp->SetBorderColour(*col);
520             Py_END_ALLOW_THREADS
521             sipReleaseType(const_cast< ::wxColour *>(col),sipType_wxColour,colState);
522 
523             if (PyErr_Occurred())
524                 return 0;
525 
526             Py_INCREF(Py_None);
527             return Py_None;
528         }
529     }
530 
531     /* Raise an exception if the arguments couldn't be parsed. */
532     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_SetBorderColour, SIP_NULLPTR);
533 
534     return SIP_NULLPTR;
535 }
536 
537 
538 PyDoc_STRVAR(doc_wxCalendarDateAttr_SetFont, "SetFont(font)\n"
539 "\n"
540 "Sets the font to use.");
541 
542 extern "C" {static PyObject *meth_wxCalendarDateAttr_SetFont(PyObject *, PyObject *, PyObject *);}
meth_wxCalendarDateAttr_SetFont(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)543 static PyObject *meth_wxCalendarDateAttr_SetFont(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
544 {
545     PyObject *sipParseErr = SIP_NULLPTR;
546 
547     {
548         const  ::wxFont* font;
549          ::wxCalendarDateAttr *sipCpp;
550 
551         static const char *sipKwdList[] = {
552             sipName_font,
553         };
554 
555         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp, sipType_wxFont, &font))
556         {
557             PyErr_Clear();
558 
559             Py_BEGIN_ALLOW_THREADS
560             sipCpp->SetFont(*font);
561             Py_END_ALLOW_THREADS
562 
563             if (PyErr_Occurred())
564                 return 0;
565 
566             Py_INCREF(Py_None);
567             return Py_None;
568         }
569     }
570 
571     /* Raise an exception if the arguments couldn't be parsed. */
572     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_SetFont, SIP_NULLPTR);
573 
574     return SIP_NULLPTR;
575 }
576 
577 
578 PyDoc_STRVAR(doc_wxCalendarDateAttr_SetHoliday, "SetHoliday(holiday)\n"
579 "\n"
580 "If holiday is true, this calendar day will be displayed as a holiday.");
581 
582 extern "C" {static PyObject *meth_wxCalendarDateAttr_SetHoliday(PyObject *, PyObject *, PyObject *);}
meth_wxCalendarDateAttr_SetHoliday(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)583 static PyObject *meth_wxCalendarDateAttr_SetHoliday(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
584 {
585     PyObject *sipParseErr = SIP_NULLPTR;
586 
587     {
588         bool holiday;
589          ::wxCalendarDateAttr *sipCpp;
590 
591         static const char *sipKwdList[] = {
592             sipName_holiday,
593         };
594 
595         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp, &holiday))
596         {
597             PyErr_Clear();
598 
599             Py_BEGIN_ALLOW_THREADS
600             sipCpp->SetHoliday(holiday);
601             Py_END_ALLOW_THREADS
602 
603             if (PyErr_Occurred())
604                 return 0;
605 
606             Py_INCREF(Py_None);
607             return Py_None;
608         }
609     }
610 
611     /* Raise an exception if the arguments couldn't be parsed. */
612     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_SetHoliday, SIP_NULLPTR);
613 
614     return SIP_NULLPTR;
615 }
616 
617 
618 PyDoc_STRVAR(doc_wxCalendarDateAttr_SetTextColour, "SetTextColour(colText)\n"
619 "\n"
620 "Sets the text (foreground) colour to use.");
621 
622 extern "C" {static PyObject *meth_wxCalendarDateAttr_SetTextColour(PyObject *, PyObject *, PyObject *);}
meth_wxCalendarDateAttr_SetTextColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)623 static PyObject *meth_wxCalendarDateAttr_SetTextColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
624 {
625     PyObject *sipParseErr = SIP_NULLPTR;
626 
627     {
628         const  ::wxColour* colText;
629         int colTextState = 0;
630          ::wxCalendarDateAttr *sipCpp;
631 
632         static const char *sipKwdList[] = {
633             sipName_colText,
634         };
635 
636         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxCalendarDateAttr, &sipCpp, sipType_wxColour, &colText, &colTextState))
637         {
638             PyErr_Clear();
639 
640             Py_BEGIN_ALLOW_THREADS
641             sipCpp->SetTextColour(*colText);
642             Py_END_ALLOW_THREADS
643             sipReleaseType(const_cast< ::wxColour *>(colText),sipType_wxColour,colTextState);
644 
645             if (PyErr_Occurred())
646                 return 0;
647 
648             Py_INCREF(Py_None);
649             return Py_None;
650         }
651     }
652 
653     /* Raise an exception if the arguments couldn't be parsed. */
654     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_SetTextColour, SIP_NULLPTR);
655 
656     return SIP_NULLPTR;
657 }
658 
659 
660 PyDoc_STRVAR(doc_wxCalendarDateAttr_GetMark, "GetMark() -> CalendarDateAttr\n"
661 "\n"
662 "Used (internally) by the generic wxCalendarCtrl::Mark().");
663 
664 extern "C" {static PyObject *meth_wxCalendarDateAttr_GetMark(PyObject *, PyObject *);}
meth_wxCalendarDateAttr_GetMark(PyObject *,PyObject * sipArgs)665 static PyObject *meth_wxCalendarDateAttr_GetMark(PyObject *, PyObject *sipArgs)
666 {
667     PyObject *sipParseErr = SIP_NULLPTR;
668 
669     {
670         if (sipParseArgs(&sipParseErr, sipArgs, ""))
671         {
672              ::wxCalendarDateAttr*sipRes;
673 
674             PyErr_Clear();
675 
676             Py_BEGIN_ALLOW_THREADS
677             sipRes = new  ::wxCalendarDateAttr( ::wxCalendarDateAttr::GetMark());
678             Py_END_ALLOW_THREADS
679 
680             if (PyErr_Occurred())
681                 return 0;
682 
683             return sipConvertFromNewType(sipRes,sipType_wxCalendarDateAttr,SIP_NULLPTR);
684         }
685     }
686 
687     /* Raise an exception if the arguments couldn't be parsed. */
688     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_GetMark, SIP_NULLPTR);
689 
690     return SIP_NULLPTR;
691 }
692 
693 
694 PyDoc_STRVAR(doc_wxCalendarDateAttr_SetMark, "SetMark(m)\n"
695 "\n"
696 "Set the attributes that will be used to Mark() days on the generic\n"
697 "wxCalendarCtrl.");
698 
699 extern "C" {static PyObject *meth_wxCalendarDateAttr_SetMark(PyObject *, PyObject *, PyObject *);}
meth_wxCalendarDateAttr_SetMark(PyObject *,PyObject * sipArgs,PyObject * sipKwds)700 static PyObject *meth_wxCalendarDateAttr_SetMark(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
701 {
702     PyObject *sipParseErr = SIP_NULLPTR;
703 
704     {
705         const  ::wxCalendarDateAttr* m;
706 
707         static const char *sipKwdList[] = {
708             sipName_m,
709         };
710 
711         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J9", sipType_wxCalendarDateAttr, &m))
712         {
713             PyErr_Clear();
714 
715             Py_BEGIN_ALLOW_THREADS
716              ::wxCalendarDateAttr::SetMark(*m);
717             Py_END_ALLOW_THREADS
718 
719             if (PyErr_Occurred())
720                 return 0;
721 
722             Py_INCREF(Py_None);
723             return Py_None;
724         }
725     }
726 
727     /* Raise an exception if the arguments couldn't be parsed. */
728     sipNoMethod(sipParseErr, sipName_CalendarDateAttr, sipName_SetMark, SIP_NULLPTR);
729 
730     return SIP_NULLPTR;
731 }
732 
733 
734 /* Call the instance's destructor. */
735 extern "C" {static void release_wxCalendarDateAttr(void *, int);}
release_wxCalendarDateAttr(void * sipCppV,int)736 static void release_wxCalendarDateAttr(void *sipCppV, int)
737 {
738     Py_BEGIN_ALLOW_THREADS
739 
740     delete reinterpret_cast< ::wxCalendarDateAttr *>(sipCppV);
741 
742     Py_END_ALLOW_THREADS
743 }
744 
745 
746 extern "C" {static void assign_wxCalendarDateAttr(void *, SIP_SSIZE_T, void *);}
assign_wxCalendarDateAttr(void * sipDst,SIP_SSIZE_T sipDstIdx,void * sipSrc)747 static void assign_wxCalendarDateAttr(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
748 {
749     reinterpret_cast< ::wxCalendarDateAttr *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::wxCalendarDateAttr *>(sipSrc);
750 }
751 
752 
753 extern "C" {static void *array_wxCalendarDateAttr(SIP_SSIZE_T);}
array_wxCalendarDateAttr(SIP_SSIZE_T sipNrElem)754 static void *array_wxCalendarDateAttr(SIP_SSIZE_T sipNrElem)
755 {
756     return new  ::wxCalendarDateAttr[sipNrElem];
757 }
758 
759 
760 extern "C" {static void *copy_wxCalendarDateAttr(const void *, SIP_SSIZE_T);}
copy_wxCalendarDateAttr(const void * sipSrc,SIP_SSIZE_T sipSrcIdx)761 static void *copy_wxCalendarDateAttr(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
762 {
763     return new  ::wxCalendarDateAttr(reinterpret_cast<const  ::wxCalendarDateAttr *>(sipSrc)[sipSrcIdx]);
764 }
765 
766 
767 extern "C" {static void dealloc_wxCalendarDateAttr(sipSimpleWrapper *);}
dealloc_wxCalendarDateAttr(sipSimpleWrapper * sipSelf)768 static void dealloc_wxCalendarDateAttr(sipSimpleWrapper *sipSelf)
769 {
770     if (sipIsOwnedByPython(sipSelf))
771     {
772         release_wxCalendarDateAttr(sipGetAddress(sipSelf), 0);
773     }
774 }
775 
776 
777 extern "C" {static void *init_type_wxCalendarDateAttr(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxCalendarDateAttr(sipSimpleWrapper *,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)778 static void *init_type_wxCalendarDateAttr(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
779 {
780      ::wxCalendarDateAttr *sipCpp = SIP_NULLPTR;
781 
782     {
783         const  ::wxColour& colTextdef = wxNullColour;
784         const  ::wxColour* colText = &colTextdef;
785         int colTextState = 0;
786         const  ::wxColour& colBackdef = wxNullColour;
787         const  ::wxColour* colBack = &colBackdef;
788         int colBackState = 0;
789         const  ::wxColour& colBorderdef = wxNullColour;
790         const  ::wxColour* colBorder = &colBorderdef;
791         int colBorderState = 0;
792         const  ::wxFont& fontdef = wxNullFont;
793         const  ::wxFont* font = &fontdef;
794          ::wxCalendarDateBorder border = wxCAL_BORDER_NONE;
795 
796         static const char *sipKwdList[] = {
797             sipName_colText,
798             sipName_colBack,
799             sipName_colBorder,
800             sipName_font,
801             sipName_border,
802         };
803 
804         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J1J1J1J9E", sipType_wxColour, &colText, &colTextState, sipType_wxColour, &colBack, &colBackState, sipType_wxColour, &colBorder, &colBorderState, sipType_wxFont, &font, sipType_wxCalendarDateBorder, &border))
805         {
806             PyErr_Clear();
807 
808             Py_BEGIN_ALLOW_THREADS
809             sipCpp = new  ::wxCalendarDateAttr(*colText,*colBack,*colBorder,*font,border);
810             Py_END_ALLOW_THREADS
811             sipReleaseType(const_cast< ::wxColour *>(colText),sipType_wxColour,colTextState);
812             sipReleaseType(const_cast< ::wxColour *>(colBack),sipType_wxColour,colBackState);
813             sipReleaseType(const_cast< ::wxColour *>(colBorder),sipType_wxColour,colBorderState);
814 
815             if (PyErr_Occurred())
816             {
817                 delete sipCpp;
818                 return SIP_NULLPTR;
819             }
820 
821             return sipCpp;
822         }
823     }
824 
825     {
826          ::wxCalendarDateBorder border;
827         const  ::wxColour& colBorderdef = wxNullColour;
828         const  ::wxColour* colBorder = &colBorderdef;
829         int colBorderState = 0;
830 
831         static const char *sipKwdList[] = {
832             sipName_border,
833             sipName_colBorder,
834         };
835 
836         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "E|J1", sipType_wxCalendarDateBorder, &border, sipType_wxColour, &colBorder, &colBorderState))
837         {
838             PyErr_Clear();
839 
840             Py_BEGIN_ALLOW_THREADS
841             sipCpp = new  ::wxCalendarDateAttr(border,*colBorder);
842             Py_END_ALLOW_THREADS
843             sipReleaseType(const_cast< ::wxColour *>(colBorder),sipType_wxColour,colBorderState);
844 
845             if (PyErr_Occurred())
846             {
847                 delete sipCpp;
848                 return SIP_NULLPTR;
849             }
850 
851             return sipCpp;
852         }
853     }
854 
855     {
856         const  ::wxCalendarDateAttr* a0;
857 
858         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_wxCalendarDateAttr, &a0))
859         {
860             Py_BEGIN_ALLOW_THREADS
861             sipCpp = new  ::wxCalendarDateAttr(*a0);
862             Py_END_ALLOW_THREADS
863 
864             return sipCpp;
865         }
866     }
867 
868     return SIP_NULLPTR;
869 }
870 
871 
872 static PyMethodDef methods_wxCalendarDateAttr[] = {
873     {SIP_MLNAME_CAST(sipName_GetBackgroundColour), meth_wxCalendarDateAttr_GetBackgroundColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_GetBackgroundColour)},
874     {SIP_MLNAME_CAST(sipName_GetBorder), meth_wxCalendarDateAttr_GetBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_GetBorder)},
875     {SIP_MLNAME_CAST(sipName_GetBorderColour), meth_wxCalendarDateAttr_GetBorderColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_GetBorderColour)},
876     {SIP_MLNAME_CAST(sipName_GetFont), meth_wxCalendarDateAttr_GetFont, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_GetFont)},
877     {SIP_MLNAME_CAST(sipName_GetMark), meth_wxCalendarDateAttr_GetMark, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_GetMark)},
878     {SIP_MLNAME_CAST(sipName_GetTextColour), meth_wxCalendarDateAttr_GetTextColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_GetTextColour)},
879     {SIP_MLNAME_CAST(sipName_HasBackgroundColour), meth_wxCalendarDateAttr_HasBackgroundColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_HasBackgroundColour)},
880     {SIP_MLNAME_CAST(sipName_HasBorder), meth_wxCalendarDateAttr_HasBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_HasBorder)},
881     {SIP_MLNAME_CAST(sipName_HasBorderColour), meth_wxCalendarDateAttr_HasBorderColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_HasBorderColour)},
882     {SIP_MLNAME_CAST(sipName_HasFont), meth_wxCalendarDateAttr_HasFont, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_HasFont)},
883     {SIP_MLNAME_CAST(sipName_HasTextColour), meth_wxCalendarDateAttr_HasTextColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_HasTextColour)},
884     {SIP_MLNAME_CAST(sipName_IsHoliday), meth_wxCalendarDateAttr_IsHoliday, METH_VARARGS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_IsHoliday)},
885     {SIP_MLNAME_CAST(sipName_SetBackgroundColour), SIP_MLMETH_CAST(meth_wxCalendarDateAttr_SetBackgroundColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_SetBackgroundColour)},
886     {SIP_MLNAME_CAST(sipName_SetBorder), SIP_MLMETH_CAST(meth_wxCalendarDateAttr_SetBorder), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_SetBorder)},
887     {SIP_MLNAME_CAST(sipName_SetBorderColour), SIP_MLMETH_CAST(meth_wxCalendarDateAttr_SetBorderColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_SetBorderColour)},
888     {SIP_MLNAME_CAST(sipName_SetFont), SIP_MLMETH_CAST(meth_wxCalendarDateAttr_SetFont), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_SetFont)},
889     {SIP_MLNAME_CAST(sipName_SetHoliday), SIP_MLMETH_CAST(meth_wxCalendarDateAttr_SetHoliday), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_SetHoliday)},
890     {SIP_MLNAME_CAST(sipName_SetMark), SIP_MLMETH_CAST(meth_wxCalendarDateAttr_SetMark), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_SetMark)},
891     {SIP_MLNAME_CAST(sipName_SetTextColour), SIP_MLMETH_CAST(meth_wxCalendarDateAttr_SetTextColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxCalendarDateAttr_SetTextColour)}
892 };
893 
894 sipVariableDef variables_wxCalendarDateAttr[] = {
895     {PropertyVariable, sipName_TextColour, &methods_wxCalendarDateAttr[5], &methods_wxCalendarDateAttr[18], SIP_NULLPTR, SIP_NULLPTR},
896     {PropertyVariable, sipName_Font, &methods_wxCalendarDateAttr[3], &methods_wxCalendarDateAttr[15], SIP_NULLPTR, SIP_NULLPTR},
897     {PropertyVariable, sipName_BorderColour, &methods_wxCalendarDateAttr[2], &methods_wxCalendarDateAttr[14], SIP_NULLPTR, SIP_NULLPTR},
898     {PropertyVariable, sipName_Border, &methods_wxCalendarDateAttr[1], &methods_wxCalendarDateAttr[13], SIP_NULLPTR, SIP_NULLPTR},
899     {PropertyVariable, sipName_BackgroundColour, &methods_wxCalendarDateAttr[0], &methods_wxCalendarDateAttr[12], SIP_NULLPTR, SIP_NULLPTR},
900 };
901 
902 PyDoc_STRVAR(doc_wxCalendarDateAttr, "CalendarDateAttr(colText=wx.NullColour, colBack=wx.NullColour, colBorder=wx.NullColour, font=wx.NullFont, border=CAL_BORDER_NONE)\n"
903 "CalendarDateAttr(border, colBorder=wx.NullColour)\n"
904 "\n"
905 "wxCalendarDateAttr is a custom attributes for a calendar date.");
906 
907 
908 sipClassTypeDef sipTypeDef__adv_wxCalendarDateAttr = {
909     {
910         -1,
911         SIP_NULLPTR,
912         SIP_NULLPTR,
913         SIP_TYPE_CLASS,
914         sipNameNr_wxCalendarDateAttr,
915         {SIP_NULLPTR},
916         SIP_NULLPTR
917     },
918     {
919         sipNameNr_CalendarDateAttr,
920         {0, 0, 1},
921         19, methods_wxCalendarDateAttr,
922         0, SIP_NULLPTR,
923         5, variables_wxCalendarDateAttr,
924         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
925     },
926     doc_wxCalendarDateAttr,
927     -1,
928     -1,
929     SIP_NULLPTR,
930     SIP_NULLPTR,
931     init_type_wxCalendarDateAttr,
932     SIP_NULLPTR,
933     SIP_NULLPTR,
934 #if PY_MAJOR_VERSION >= 3
935     SIP_NULLPTR,
936     SIP_NULLPTR,
937 #else
938     SIP_NULLPTR,
939     SIP_NULLPTR,
940     SIP_NULLPTR,
941     SIP_NULLPTR,
942 #endif
943     dealloc_wxCalendarDateAttr,
944     assign_wxCalendarDateAttr,
945     array_wxCalendarDateAttr,
946     copy_wxCalendarDateAttr,
947     release_wxCalendarDateAttr,
948     SIP_NULLPTR,
949     SIP_NULLPTR,
950     SIP_NULLPTR,
951     SIP_NULLPTR,
952     SIP_NULLPTR,
953     SIP_NULLPTR,
954     SIP_NULLPTR
955 };
956