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_richtext.h"
11 
12         #include <wx/richtext/richtextbuffer.h>
13 
14         #include <wx/richtext/richtextbuffer.h>
15         #include <wx/colour.h>
_wxTextAttrBorder___nonzero__(wxTextAttrBorder * self)16     int _wxTextAttrBorder___nonzero__(wxTextAttrBorder* self)
17     {
18         return self->IsValid();
19     }
_wxTextAttrBorder___bool__(wxTextAttrBorder * self)20     int _wxTextAttrBorder___bool__(wxTextAttrBorder* self)
21     {
22         return self->IsValid();
23     }
24 
25 
26 PyDoc_STRVAR(doc_wxTextAttrBorder_Reset, "Reset()\n"
27 "\n"
28 "Resets the border style, colour, width and flags.");
29 
30 extern "C" {static PyObject *meth_wxTextAttrBorder_Reset(PyObject *, PyObject *);}
meth_wxTextAttrBorder_Reset(PyObject * sipSelf,PyObject * sipArgs)31 static PyObject *meth_wxTextAttrBorder_Reset(PyObject *sipSelf, PyObject *sipArgs)
32 {
33     PyObject *sipParseErr = SIP_NULLPTR;
34 
35     {
36          ::wxTextAttrBorder *sipCpp;
37 
38         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
39         {
40             PyErr_Clear();
41 
42             Py_BEGIN_ALLOW_THREADS
43             sipCpp->Reset();
44             Py_END_ALLOW_THREADS
45 
46             if (PyErr_Occurred())
47                 return 0;
48 
49             Py_INCREF(Py_None);
50             return Py_None;
51         }
52     }
53 
54     /* Raise an exception if the arguments couldn't be parsed. */
55     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_Reset, SIP_NULLPTR);
56 
57     return SIP_NULLPTR;
58 }
59 
60 
61 PyDoc_STRVAR(doc_wxTextAttrBorder_EqPartial, "EqPartial(border, weakTest=True) -> bool\n"
62 "\n"
63 "Partial equality test.");
64 
65 extern "C" {static PyObject *meth_wxTextAttrBorder_EqPartial(PyObject *, PyObject *, PyObject *);}
meth_wxTextAttrBorder_EqPartial(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)66 static PyObject *meth_wxTextAttrBorder_EqPartial(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
67 {
68     PyObject *sipParseErr = SIP_NULLPTR;
69 
70     {
71         const  ::wxTextAttrBorder* border;
72         bool weakTest = 1;
73         const  ::wxTextAttrBorder *sipCpp;
74 
75         static const char *sipKwdList[] = {
76             sipName_border,
77             sipName_weakTest,
78         };
79 
80         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|b", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, sipType_wxTextAttrBorder, &border, &weakTest))
81         {
82             bool sipRes;
83 
84             PyErr_Clear();
85 
86             Py_BEGIN_ALLOW_THREADS
87             sipRes = sipCpp->EqPartial(*border,weakTest);
88             Py_END_ALLOW_THREADS
89 
90             if (PyErr_Occurred())
91                 return 0;
92 
93             return PyBool_FromLong(sipRes);
94         }
95     }
96 
97     /* Raise an exception if the arguments couldn't be parsed. */
98     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_EqPartial, SIP_NULLPTR);
99 
100     return SIP_NULLPTR;
101 }
102 
103 
104 PyDoc_STRVAR(doc_wxTextAttrBorder_Apply, "Apply(border, compareWith=None) -> bool\n"
105 "\n"
106 "Applies the border to this object, but not if the same as compareWith.");
107 
108 extern "C" {static PyObject *meth_wxTextAttrBorder_Apply(PyObject *, PyObject *, PyObject *);}
meth_wxTextAttrBorder_Apply(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)109 static PyObject *meth_wxTextAttrBorder_Apply(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
110 {
111     PyObject *sipParseErr = SIP_NULLPTR;
112 
113     {
114         const  ::wxTextAttrBorder* border;
115         const  ::wxTextAttrBorder* compareWith = 0;
116          ::wxTextAttrBorder *sipCpp;
117 
118         static const char *sipKwdList[] = {
119             sipName_border,
120             sipName_compareWith,
121         };
122 
123         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|J8", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, sipType_wxTextAttrBorder, &border, sipType_wxTextAttrBorder, &compareWith))
124         {
125             bool sipRes;
126 
127             PyErr_Clear();
128 
129             Py_BEGIN_ALLOW_THREADS
130             sipRes = sipCpp->Apply(*border,compareWith);
131             Py_END_ALLOW_THREADS
132 
133             if (PyErr_Occurred())
134                 return 0;
135 
136             return PyBool_FromLong(sipRes);
137         }
138     }
139 
140     /* Raise an exception if the arguments couldn't be parsed. */
141     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_Apply, SIP_NULLPTR);
142 
143     return SIP_NULLPTR;
144 }
145 
146 
147 PyDoc_STRVAR(doc_wxTextAttrBorder_RemoveStyle, "RemoveStyle(attr) -> bool\n"
148 "\n"
149 "Removes the specified attributes from this object.");
150 
151 extern "C" {static PyObject *meth_wxTextAttrBorder_RemoveStyle(PyObject *, PyObject *, PyObject *);}
meth_wxTextAttrBorder_RemoveStyle(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)152 static PyObject *meth_wxTextAttrBorder_RemoveStyle(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
153 {
154     PyObject *sipParseErr = SIP_NULLPTR;
155 
156     {
157         const  ::wxTextAttrBorder* attr;
158          ::wxTextAttrBorder *sipCpp;
159 
160         static const char *sipKwdList[] = {
161             sipName_attr,
162         };
163 
164         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, sipType_wxTextAttrBorder, &attr))
165         {
166             bool sipRes;
167 
168             PyErr_Clear();
169 
170             Py_BEGIN_ALLOW_THREADS
171             sipRes = sipCpp->RemoveStyle(*attr);
172             Py_END_ALLOW_THREADS
173 
174             if (PyErr_Occurred())
175                 return 0;
176 
177             return PyBool_FromLong(sipRes);
178         }
179     }
180 
181     /* Raise an exception if the arguments couldn't be parsed. */
182     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_RemoveStyle, SIP_NULLPTR);
183 
184     return SIP_NULLPTR;
185 }
186 
187 
188 PyDoc_STRVAR(doc_wxTextAttrBorder_CollectCommonAttributes, "CollectCommonAttributes(attr, clashingAttr, absentAttr)\n"
189 "\n"
190 "Collects the attributes that are common to a range of content,\n"
191 "building up a note of which attributes are absent in some objects and\n"
192 "which clash in some objects.");
193 
194 extern "C" {static PyObject *meth_wxTextAttrBorder_CollectCommonAttributes(PyObject *, PyObject *, PyObject *);}
meth_wxTextAttrBorder_CollectCommonAttributes(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)195 static PyObject *meth_wxTextAttrBorder_CollectCommonAttributes(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
196 {
197     PyObject *sipParseErr = SIP_NULLPTR;
198 
199     {
200         const  ::wxTextAttrBorder* attr;
201          ::wxTextAttrBorder* clashingAttr;
202          ::wxTextAttrBorder* absentAttr;
203          ::wxTextAttrBorder *sipCpp;
204 
205         static const char *sipKwdList[] = {
206             sipName_attr,
207             sipName_clashingAttr,
208             sipName_absentAttr,
209         };
210 
211         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J9J9", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, sipType_wxTextAttrBorder, &attr, sipType_wxTextAttrBorder, &clashingAttr, sipType_wxTextAttrBorder, &absentAttr))
212         {
213             PyErr_Clear();
214 
215             Py_BEGIN_ALLOW_THREADS
216             sipCpp->CollectCommonAttributes(*attr,*clashingAttr,*absentAttr);
217             Py_END_ALLOW_THREADS
218 
219             if (PyErr_Occurred())
220                 return 0;
221 
222             Py_INCREF(Py_None);
223             return Py_None;
224         }
225     }
226 
227     /* Raise an exception if the arguments couldn't be parsed. */
228     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_CollectCommonAttributes, SIP_NULLPTR);
229 
230     return SIP_NULLPTR;
231 }
232 
233 
234 PyDoc_STRVAR(doc_wxTextAttrBorder_SetStyle, "SetStyle(style)\n"
235 "\n"
236 "Sets the border style.");
237 
238 extern "C" {static PyObject *meth_wxTextAttrBorder_SetStyle(PyObject *, PyObject *, PyObject *);}
meth_wxTextAttrBorder_SetStyle(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)239 static PyObject *meth_wxTextAttrBorder_SetStyle(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
240 {
241     PyObject *sipParseErr = SIP_NULLPTR;
242 
243     {
244         int style;
245          ::wxTextAttrBorder *sipCpp;
246 
247         static const char *sipKwdList[] = {
248             sipName_style,
249         };
250 
251         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, &style))
252         {
253             PyErr_Clear();
254 
255             Py_BEGIN_ALLOW_THREADS
256             sipCpp->SetStyle(style);
257             Py_END_ALLOW_THREADS
258 
259             if (PyErr_Occurred())
260                 return 0;
261 
262             Py_INCREF(Py_None);
263             return Py_None;
264         }
265     }
266 
267     /* Raise an exception if the arguments couldn't be parsed. */
268     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_SetStyle, SIP_NULLPTR);
269 
270     return SIP_NULLPTR;
271 }
272 
273 
274 PyDoc_STRVAR(doc_wxTextAttrBorder_GetStyle, "GetStyle() -> int\n"
275 "\n"
276 "Gets the border style.");
277 
278 extern "C" {static PyObject *meth_wxTextAttrBorder_GetStyle(PyObject *, PyObject *);}
meth_wxTextAttrBorder_GetStyle(PyObject * sipSelf,PyObject * sipArgs)279 static PyObject *meth_wxTextAttrBorder_GetStyle(PyObject *sipSelf, PyObject *sipArgs)
280 {
281     PyObject *sipParseErr = SIP_NULLPTR;
282 
283     {
284         const  ::wxTextAttrBorder *sipCpp;
285 
286         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
287         {
288             int sipRes;
289 
290             PyErr_Clear();
291 
292             Py_BEGIN_ALLOW_THREADS
293             sipRes = sipCpp->GetStyle();
294             Py_END_ALLOW_THREADS
295 
296             if (PyErr_Occurred())
297                 return 0;
298 
299             return SIPLong_FromLong(sipRes);
300         }
301     }
302 
303     /* Raise an exception if the arguments couldn't be parsed. */
304     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_GetStyle, SIP_NULLPTR);
305 
306     return SIP_NULLPTR;
307 }
308 
309 
310 PyDoc_STRVAR(doc_wxTextAttrBorder_SetColour, "SetColour(colour)\n"
311 "SetColour(colour)\n"
312 "\n"
313 "Sets the border colour.\n"
314 "");
315 
316 extern "C" {static PyObject *meth_wxTextAttrBorder_SetColour(PyObject *, PyObject *, PyObject *);}
meth_wxTextAttrBorder_SetColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)317 static PyObject *meth_wxTextAttrBorder_SetColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
318 {
319     PyObject *sipParseErr = SIP_NULLPTR;
320 
321     {
322         unsigned long colour;
323          ::wxTextAttrBorder *sipCpp;
324 
325         static const char *sipKwdList[] = {
326             sipName_colour,
327         };
328 
329         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bm", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, &colour))
330         {
331             PyErr_Clear();
332 
333             Py_BEGIN_ALLOW_THREADS
334             sipCpp->SetColour(colour);
335             Py_END_ALLOW_THREADS
336 
337             if (PyErr_Occurred())
338                 return 0;
339 
340             Py_INCREF(Py_None);
341             return Py_None;
342         }
343     }
344 
345     {
346         const  ::wxColour* colour;
347         int colourState = 0;
348          ::wxTextAttrBorder *sipCpp;
349 
350         static const char *sipKwdList[] = {
351             sipName_colour,
352         };
353 
354         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, sipType_wxColour, &colour, &colourState))
355         {
356             PyErr_Clear();
357 
358             Py_BEGIN_ALLOW_THREADS
359             sipCpp->SetColour(*colour);
360             Py_END_ALLOW_THREADS
361             sipReleaseType(const_cast< ::wxColour *>(colour),sipType_wxColour,colourState);
362 
363             if (PyErr_Occurred())
364                 return 0;
365 
366             Py_INCREF(Py_None);
367             return Py_None;
368         }
369     }
370 
371     /* Raise an exception if the arguments couldn't be parsed. */
372     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_SetColour, SIP_NULLPTR);
373 
374     return SIP_NULLPTR;
375 }
376 
377 
378 PyDoc_STRVAR(doc_wxTextAttrBorder_GetColourLong, "GetColourLong() -> unsignedlong\n"
379 "\n"
380 "Gets the colour as a long.");
381 
382 extern "C" {static PyObject *meth_wxTextAttrBorder_GetColourLong(PyObject *, PyObject *);}
meth_wxTextAttrBorder_GetColourLong(PyObject * sipSelf,PyObject * sipArgs)383 static PyObject *meth_wxTextAttrBorder_GetColourLong(PyObject *sipSelf, PyObject *sipArgs)
384 {
385     PyObject *sipParseErr = SIP_NULLPTR;
386 
387     {
388         const  ::wxTextAttrBorder *sipCpp;
389 
390         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
391         {
392             unsigned long sipRes;
393 
394             PyErr_Clear();
395 
396             Py_BEGIN_ALLOW_THREADS
397             sipRes = sipCpp->GetColourLong();
398             Py_END_ALLOW_THREADS
399 
400             if (PyErr_Occurred())
401                 return 0;
402 
403             return PyLong_FromUnsignedLong(sipRes);
404         }
405     }
406 
407     /* Raise an exception if the arguments couldn't be parsed. */
408     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_GetColourLong, SIP_NULLPTR);
409 
410     return SIP_NULLPTR;
411 }
412 
413 
414 PyDoc_STRVAR(doc_wxTextAttrBorder_GetColour, "GetColour() -> wx.Colour\n"
415 "\n"
416 "Gets the colour.");
417 
418 extern "C" {static PyObject *meth_wxTextAttrBorder_GetColour(PyObject *, PyObject *);}
meth_wxTextAttrBorder_GetColour(PyObject * sipSelf,PyObject * sipArgs)419 static PyObject *meth_wxTextAttrBorder_GetColour(PyObject *sipSelf, PyObject *sipArgs)
420 {
421     PyObject *sipParseErr = SIP_NULLPTR;
422 
423     {
424         const  ::wxTextAttrBorder *sipCpp;
425 
426         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
427         {
428              ::wxColour*sipRes;
429 
430             PyErr_Clear();
431 
432             Py_BEGIN_ALLOW_THREADS
433             sipRes = new  ::wxColour(sipCpp->GetColour());
434             Py_END_ALLOW_THREADS
435 
436             if (PyErr_Occurred())
437                 return 0;
438 
439             return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
440         }
441     }
442 
443     /* Raise an exception if the arguments couldn't be parsed. */
444     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_GetColour, SIP_NULLPTR);
445 
446     return SIP_NULLPTR;
447 }
448 
449 
450 PyDoc_STRVAR(doc_wxTextAttrBorder_GetWidth, "GetWidth() -> TextAttrDimension\n"
451 "\n"
452 "Gets the border width.");
453 
454 extern "C" {static PyObject *meth_wxTextAttrBorder_GetWidth(PyObject *, PyObject *);}
meth_wxTextAttrBorder_GetWidth(PyObject * sipSelf,PyObject * sipArgs)455 static PyObject *meth_wxTextAttrBorder_GetWidth(PyObject *sipSelf, PyObject *sipArgs)
456 {
457     PyObject *sipParseErr = SIP_NULLPTR;
458 
459     {
460          ::wxTextAttrBorder *sipCpp;
461 
462         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
463         {
464              ::wxTextAttrDimension*sipRes;
465 
466             PyErr_Clear();
467 
468             Py_BEGIN_ALLOW_THREADS
469             sipRes = &sipCpp->GetWidth();
470             Py_END_ALLOW_THREADS
471 
472             if (PyErr_Occurred())
473                 return 0;
474 
475             return sipConvertFromType(sipRes,sipType_wxTextAttrDimension,SIP_NULLPTR);
476         }
477     }
478 
479     /* Raise an exception if the arguments couldn't be parsed. */
480     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_GetWidth, SIP_NULLPTR);
481 
482     return SIP_NULLPTR;
483 }
484 
485 
486 PyDoc_STRVAR(doc_wxTextAttrBorder_SetWidth, "SetWidth(width)\n"
487 "SetWidth(value, units=TEXT_ATTR_UNITS_TENTHS_MM)\n"
488 "\n"
489 "Sets the border width.\n"
490 "");
491 
492 extern "C" {static PyObject *meth_wxTextAttrBorder_SetWidth(PyObject *, PyObject *, PyObject *);}
meth_wxTextAttrBorder_SetWidth(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)493 static PyObject *meth_wxTextAttrBorder_SetWidth(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
494 {
495     PyObject *sipParseErr = SIP_NULLPTR;
496 
497     {
498         const  ::wxTextAttrDimension* width;
499          ::wxTextAttrBorder *sipCpp;
500 
501         static const char *sipKwdList[] = {
502             sipName_width,
503         };
504 
505         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, sipType_wxTextAttrDimension, &width))
506         {
507             PyErr_Clear();
508 
509             Py_BEGIN_ALLOW_THREADS
510             sipCpp->SetWidth(*width);
511             Py_END_ALLOW_THREADS
512 
513             if (PyErr_Occurred())
514                 return 0;
515 
516             Py_INCREF(Py_None);
517             return Py_None;
518         }
519     }
520 
521     {
522         int value;
523          ::wxTextAttrUnits units = wxTEXT_ATTR_UNITS_TENTHS_MM;
524          ::wxTextAttrBorder *sipCpp;
525 
526         static const char *sipKwdList[] = {
527             sipName_value,
528             sipName_units,
529         };
530 
531         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi|E", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, &value, sipType_wxTextAttrUnits, &units))
532         {
533             PyErr_Clear();
534 
535             Py_BEGIN_ALLOW_THREADS
536             sipCpp->SetWidth(value,units);
537             Py_END_ALLOW_THREADS
538 
539             if (PyErr_Occurred())
540                 return 0;
541 
542             Py_INCREF(Py_None);
543             return Py_None;
544         }
545     }
546 
547     /* Raise an exception if the arguments couldn't be parsed. */
548     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_SetWidth, SIP_NULLPTR);
549 
550     return SIP_NULLPTR;
551 }
552 
553 
554 PyDoc_STRVAR(doc_wxTextAttrBorder_HasStyle, "HasStyle() -> bool\n"
555 "\n"
556 "True if the border has a valid style.");
557 
558 extern "C" {static PyObject *meth_wxTextAttrBorder_HasStyle(PyObject *, PyObject *);}
meth_wxTextAttrBorder_HasStyle(PyObject * sipSelf,PyObject * sipArgs)559 static PyObject *meth_wxTextAttrBorder_HasStyle(PyObject *sipSelf, PyObject *sipArgs)
560 {
561     PyObject *sipParseErr = SIP_NULLPTR;
562 
563     {
564         const  ::wxTextAttrBorder *sipCpp;
565 
566         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
567         {
568             bool sipRes;
569 
570             PyErr_Clear();
571 
572             Py_BEGIN_ALLOW_THREADS
573             sipRes = sipCpp->HasStyle();
574             Py_END_ALLOW_THREADS
575 
576             if (PyErr_Occurred())
577                 return 0;
578 
579             return PyBool_FromLong(sipRes);
580         }
581     }
582 
583     /* Raise an exception if the arguments couldn't be parsed. */
584     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_HasStyle, SIP_NULLPTR);
585 
586     return SIP_NULLPTR;
587 }
588 
589 
590 PyDoc_STRVAR(doc_wxTextAttrBorder_HasColour, "HasColour() -> bool\n"
591 "\n"
592 "True if the border has a valid colour.");
593 
594 extern "C" {static PyObject *meth_wxTextAttrBorder_HasColour(PyObject *, PyObject *);}
meth_wxTextAttrBorder_HasColour(PyObject * sipSelf,PyObject * sipArgs)595 static PyObject *meth_wxTextAttrBorder_HasColour(PyObject *sipSelf, PyObject *sipArgs)
596 {
597     PyObject *sipParseErr = SIP_NULLPTR;
598 
599     {
600         const  ::wxTextAttrBorder *sipCpp;
601 
602         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
603         {
604             bool sipRes;
605 
606             PyErr_Clear();
607 
608             Py_BEGIN_ALLOW_THREADS
609             sipRes = sipCpp->HasColour();
610             Py_END_ALLOW_THREADS
611 
612             if (PyErr_Occurred())
613                 return 0;
614 
615             return PyBool_FromLong(sipRes);
616         }
617     }
618 
619     /* Raise an exception if the arguments couldn't be parsed. */
620     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_HasColour, SIP_NULLPTR);
621 
622     return SIP_NULLPTR;
623 }
624 
625 
626 PyDoc_STRVAR(doc_wxTextAttrBorder_HasWidth, "HasWidth() -> bool\n"
627 "\n"
628 "True if the border has a valid width.");
629 
630 extern "C" {static PyObject *meth_wxTextAttrBorder_HasWidth(PyObject *, PyObject *);}
meth_wxTextAttrBorder_HasWidth(PyObject * sipSelf,PyObject * sipArgs)631 static PyObject *meth_wxTextAttrBorder_HasWidth(PyObject *sipSelf, PyObject *sipArgs)
632 {
633     PyObject *sipParseErr = SIP_NULLPTR;
634 
635     {
636         const  ::wxTextAttrBorder *sipCpp;
637 
638         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
639         {
640             bool sipRes;
641 
642             PyErr_Clear();
643 
644             Py_BEGIN_ALLOW_THREADS
645             sipRes = sipCpp->HasWidth();
646             Py_END_ALLOW_THREADS
647 
648             if (PyErr_Occurred())
649                 return 0;
650 
651             return PyBool_FromLong(sipRes);
652         }
653     }
654 
655     /* Raise an exception if the arguments couldn't be parsed. */
656     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_HasWidth, SIP_NULLPTR);
657 
658     return SIP_NULLPTR;
659 }
660 
661 
662 PyDoc_STRVAR(doc_wxTextAttrBorder_IsValid, "IsValid() -> bool\n"
663 "\n"
664 "True if the border is valid.");
665 
666 extern "C" {static PyObject *meth_wxTextAttrBorder_IsValid(PyObject *, PyObject *);}
meth_wxTextAttrBorder_IsValid(PyObject * sipSelf,PyObject * sipArgs)667 static PyObject *meth_wxTextAttrBorder_IsValid(PyObject *sipSelf, PyObject *sipArgs)
668 {
669     PyObject *sipParseErr = SIP_NULLPTR;
670 
671     {
672         const  ::wxTextAttrBorder *sipCpp;
673 
674         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
675         {
676             bool sipRes;
677 
678             PyErr_Clear();
679 
680             Py_BEGIN_ALLOW_THREADS
681             sipRes = sipCpp->IsValid();
682             Py_END_ALLOW_THREADS
683 
684             if (PyErr_Occurred())
685                 return 0;
686 
687             return PyBool_FromLong(sipRes);
688         }
689     }
690 
691     /* Raise an exception if the arguments couldn't be parsed. */
692     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_IsValid, SIP_NULLPTR);
693 
694     return SIP_NULLPTR;
695 }
696 
697 
698 PyDoc_STRVAR(doc_wxTextAttrBorder_IsDefault, "IsDefault() -> bool\n"
699 "\n"
700 "True if the border has no attributes set.");
701 
702 extern "C" {static PyObject *meth_wxTextAttrBorder_IsDefault(PyObject *, PyObject *);}
meth_wxTextAttrBorder_IsDefault(PyObject * sipSelf,PyObject * sipArgs)703 static PyObject *meth_wxTextAttrBorder_IsDefault(PyObject *sipSelf, PyObject *sipArgs)
704 {
705     PyObject *sipParseErr = SIP_NULLPTR;
706 
707     {
708         const  ::wxTextAttrBorder *sipCpp;
709 
710         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
711         {
712             bool sipRes;
713 
714             PyErr_Clear();
715 
716             Py_BEGIN_ALLOW_THREADS
717             sipRes = sipCpp->IsDefault();
718             Py_END_ALLOW_THREADS
719 
720             if (PyErr_Occurred())
721                 return 0;
722 
723             return PyBool_FromLong(sipRes);
724         }
725     }
726 
727     /* Raise an exception if the arguments couldn't be parsed. */
728     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_IsDefault, SIP_NULLPTR);
729 
730     return SIP_NULLPTR;
731 }
732 
733 
734 PyDoc_STRVAR(doc_wxTextAttrBorder_MakeValid, "MakeValid()\n"
735 "\n"
736 "Set the valid flag for this border.");
737 
738 extern "C" {static PyObject *meth_wxTextAttrBorder_MakeValid(PyObject *, PyObject *);}
meth_wxTextAttrBorder_MakeValid(PyObject * sipSelf,PyObject * sipArgs)739 static PyObject *meth_wxTextAttrBorder_MakeValid(PyObject *sipSelf, PyObject *sipArgs)
740 {
741     PyObject *sipParseErr = SIP_NULLPTR;
742 
743     {
744          ::wxTextAttrBorder *sipCpp;
745 
746         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
747         {
748             PyErr_Clear();
749 
750             Py_BEGIN_ALLOW_THREADS
751             sipCpp->MakeValid();
752             Py_END_ALLOW_THREADS
753 
754             if (PyErr_Occurred())
755                 return 0;
756 
757             Py_INCREF(Py_None);
758             return Py_None;
759         }
760     }
761 
762     /* Raise an exception if the arguments couldn't be parsed. */
763     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_MakeValid, SIP_NULLPTR);
764 
765     return SIP_NULLPTR;
766 }
767 
768 
769 PyDoc_STRVAR(doc_wxTextAttrBorder_GetFlags, "GetFlags() -> int\n"
770 "\n"
771 "Returns the border flags.");
772 
773 extern "C" {static PyObject *meth_wxTextAttrBorder_GetFlags(PyObject *, PyObject *);}
meth_wxTextAttrBorder_GetFlags(PyObject * sipSelf,PyObject * sipArgs)774 static PyObject *meth_wxTextAttrBorder_GetFlags(PyObject *sipSelf, PyObject *sipArgs)
775 {
776     PyObject *sipParseErr = SIP_NULLPTR;
777 
778     {
779         const  ::wxTextAttrBorder *sipCpp;
780 
781         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextAttrBorder, &sipCpp))
782         {
783             int sipRes;
784 
785             PyErr_Clear();
786 
787             Py_BEGIN_ALLOW_THREADS
788             sipRes = sipCpp->GetFlags();
789             Py_END_ALLOW_THREADS
790 
791             if (PyErr_Occurred())
792                 return 0;
793 
794             return SIPLong_FromLong(sipRes);
795         }
796     }
797 
798     /* Raise an exception if the arguments couldn't be parsed. */
799     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_GetFlags, SIP_NULLPTR);
800 
801     return SIP_NULLPTR;
802 }
803 
804 
805 PyDoc_STRVAR(doc_wxTextAttrBorder_SetFlags, "SetFlags(flags)\n"
806 "\n"
807 "Sets the border flags.");
808 
809 extern "C" {static PyObject *meth_wxTextAttrBorder_SetFlags(PyObject *, PyObject *, PyObject *);}
meth_wxTextAttrBorder_SetFlags(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)810 static PyObject *meth_wxTextAttrBorder_SetFlags(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
811 {
812     PyObject *sipParseErr = SIP_NULLPTR;
813 
814     {
815         int flags;
816          ::wxTextAttrBorder *sipCpp;
817 
818         static const char *sipKwdList[] = {
819             sipName_flags,
820         };
821 
822         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, &flags))
823         {
824             PyErr_Clear();
825 
826             Py_BEGIN_ALLOW_THREADS
827             sipCpp->SetFlags(flags);
828             Py_END_ALLOW_THREADS
829 
830             if (PyErr_Occurred())
831                 return 0;
832 
833             Py_INCREF(Py_None);
834             return Py_None;
835         }
836     }
837 
838     /* Raise an exception if the arguments couldn't be parsed. */
839     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_SetFlags, SIP_NULLPTR);
840 
841     return SIP_NULLPTR;
842 }
843 
844 
845 PyDoc_STRVAR(doc_wxTextAttrBorder_AddFlag, "AddFlag(flag)\n"
846 "\n"
847 "Adds a border flag.");
848 
849 extern "C" {static PyObject *meth_wxTextAttrBorder_AddFlag(PyObject *, PyObject *, PyObject *);}
meth_wxTextAttrBorder_AddFlag(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)850 static PyObject *meth_wxTextAttrBorder_AddFlag(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
851 {
852     PyObject *sipParseErr = SIP_NULLPTR;
853 
854     {
855         int flag;
856          ::wxTextAttrBorder *sipCpp;
857 
858         static const char *sipKwdList[] = {
859             sipName_flag,
860         };
861 
862         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, &flag))
863         {
864             PyErr_Clear();
865 
866             Py_BEGIN_ALLOW_THREADS
867             sipCpp->AddFlag(flag);
868             Py_END_ALLOW_THREADS
869 
870             if (PyErr_Occurred())
871                 return 0;
872 
873             Py_INCREF(Py_None);
874             return Py_None;
875         }
876     }
877 
878     /* Raise an exception if the arguments couldn't be parsed. */
879     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_AddFlag, SIP_NULLPTR);
880 
881     return SIP_NULLPTR;
882 }
883 
884 
885 PyDoc_STRVAR(doc_wxTextAttrBorder_RemoveFlag, "RemoveFlag(flag)\n"
886 "\n"
887 "Removes a border flag.");
888 
889 extern "C" {static PyObject *meth_wxTextAttrBorder_RemoveFlag(PyObject *, PyObject *, PyObject *);}
meth_wxTextAttrBorder_RemoveFlag(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)890 static PyObject *meth_wxTextAttrBorder_RemoveFlag(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
891 {
892     PyObject *sipParseErr = SIP_NULLPTR;
893 
894     {
895         int flag;
896          ::wxTextAttrBorder *sipCpp;
897 
898         static const char *sipKwdList[] = {
899             sipName_flag,
900         };
901 
902         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxTextAttrBorder, &sipCpp, &flag))
903         {
904             PyErr_Clear();
905 
906             Py_BEGIN_ALLOW_THREADS
907             sipCpp->RemoveFlag(flag);
908             Py_END_ALLOW_THREADS
909 
910             if (PyErr_Occurred())
911                 return 0;
912 
913             Py_INCREF(Py_None);
914             return Py_None;
915         }
916     }
917 
918     /* Raise an exception if the arguments couldn't be parsed. */
919     sipNoMethod(sipParseErr, sipName_TextAttrBorder, sipName_RemoveFlag, SIP_NULLPTR);
920 
921     return SIP_NULLPTR;
922 }
923 
924 
925 extern "C" {static PyObject *slot_wxTextAttrBorder___ne__(PyObject *,PyObject *);}
slot_wxTextAttrBorder___ne__(PyObject * sipSelf,PyObject * sipArg)926 static PyObject *slot_wxTextAttrBorder___ne__(PyObject *sipSelf,PyObject *sipArg)
927 {
928      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxTextAttrBorder));
929 
930     if (!sipCpp)
931         return SIP_NULLPTR;
932 
933     PyObject *sipParseErr = SIP_NULLPTR;
934 
935     {
936         const  ::wxTextAttrBorder* border;
937 
938         if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxTextAttrBorder, &border))
939         {
940             bool sipRes;
941 
942             PyErr_Clear();
943 
944             Py_BEGIN_ALLOW_THREADS
945             sipRes = !sipCpp-> ::wxTextAttrBorder::operator==(*border);
946             Py_END_ALLOW_THREADS
947 
948             if (PyErr_Occurred())
949                 return 0;
950 
951             return PyBool_FromLong(sipRes);
952         }
953     }
954 
955     Py_XDECREF(sipParseErr);
956 
957     if (sipParseErr == Py_None)
958         return SIP_NULLPTR;
959 
960     return sipPySlotExtend(&sipModuleAPI__richtext, ne_slot, sipType_wxTextAttrBorder, sipSelf, sipArg);
961 }
962 
963 
964 extern "C" {static int slot_wxTextAttrBorder___bool__(PyObject *);}
slot_wxTextAttrBorder___bool__(PyObject * sipSelf)965 static int slot_wxTextAttrBorder___bool__(PyObject *sipSelf)
966 {
967      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxTextAttrBorder));
968 
969     if (!sipCpp)
970         return -1;
971 
972 
973     {
974         {
975             int sipRes = 0;
976             int sipIsErr = 0;
977 
978         PyErr_Clear();
979         Py_BEGIN_ALLOW_THREADS
980         sipRes = _wxTextAttrBorder___bool__(sipCpp);
981         Py_END_ALLOW_THREADS
982         if (PyErr_Occurred()) sipIsErr = 1;
983 
984             if (sipIsErr)
985                 return -1;
986 
987             return sipRes;
988         }
989     }
990 
991     return 0;
992 }
993 
994 
995 extern "C" {static int slot_wxTextAttrBorder___nonzero__(PyObject *);}
slot_wxTextAttrBorder___nonzero__(PyObject * sipSelf)996 static int slot_wxTextAttrBorder___nonzero__(PyObject *sipSelf)
997 {
998      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxTextAttrBorder));
999 
1000     if (!sipCpp)
1001         return -1;
1002 
1003 
1004     {
1005         {
1006             int sipRes = 0;
1007             int sipIsErr = 0;
1008 
1009         PyErr_Clear();
1010         Py_BEGIN_ALLOW_THREADS
1011         sipRes = _wxTextAttrBorder___nonzero__(sipCpp);
1012         Py_END_ALLOW_THREADS
1013         if (PyErr_Occurred()) sipIsErr = 1;
1014 
1015             if (sipIsErr)
1016                 return -1;
1017 
1018             return sipRes;
1019         }
1020     }
1021 
1022     return 0;
1023 }
1024 
1025 
1026 extern "C" {static PyObject *slot_wxTextAttrBorder___eq__(PyObject *,PyObject *);}
slot_wxTextAttrBorder___eq__(PyObject * sipSelf,PyObject * sipArg)1027 static PyObject *slot_wxTextAttrBorder___eq__(PyObject *sipSelf,PyObject *sipArg)
1028 {
1029      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxTextAttrBorder));
1030 
1031     if (!sipCpp)
1032         return SIP_NULLPTR;
1033 
1034     PyObject *sipParseErr = SIP_NULLPTR;
1035 
1036     {
1037         const  ::wxTextAttrBorder* border;
1038 
1039         if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxTextAttrBorder, &border))
1040         {
1041             bool sipRes;
1042 
1043             PyErr_Clear();
1044 
1045             Py_BEGIN_ALLOW_THREADS
1046             sipRes = sipCpp-> ::wxTextAttrBorder::operator==(*border);
1047             Py_END_ALLOW_THREADS
1048 
1049             if (PyErr_Occurred())
1050                 return 0;
1051 
1052             return PyBool_FromLong(sipRes);
1053         }
1054     }
1055 
1056     Py_XDECREF(sipParseErr);
1057 
1058     if (sipParseErr == Py_None)
1059         return SIP_NULLPTR;
1060 
1061     return sipPySlotExtend(&sipModuleAPI__richtext, eq_slot, sipType_wxTextAttrBorder, sipSelf, sipArg);
1062 }
1063 
1064 
1065 /* Call the instance's destructor. */
1066 extern "C" {static void release_wxTextAttrBorder(void *, int);}
release_wxTextAttrBorder(void * sipCppV,int)1067 static void release_wxTextAttrBorder(void *sipCppV, int)
1068 {
1069     Py_BEGIN_ALLOW_THREADS
1070 
1071     delete reinterpret_cast< ::wxTextAttrBorder *>(sipCppV);
1072 
1073     Py_END_ALLOW_THREADS
1074 }
1075 
1076 
1077 extern "C" {static void assign_wxTextAttrBorder(void *, SIP_SSIZE_T, void *);}
assign_wxTextAttrBorder(void * sipDst,SIP_SSIZE_T sipDstIdx,void * sipSrc)1078 static void assign_wxTextAttrBorder(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
1079 {
1080     reinterpret_cast< ::wxTextAttrBorder *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::wxTextAttrBorder *>(sipSrc);
1081 }
1082 
1083 
1084 extern "C" {static void *array_wxTextAttrBorder(SIP_SSIZE_T);}
array_wxTextAttrBorder(SIP_SSIZE_T sipNrElem)1085 static void *array_wxTextAttrBorder(SIP_SSIZE_T sipNrElem)
1086 {
1087     return new  ::wxTextAttrBorder[sipNrElem];
1088 }
1089 
1090 
1091 extern "C" {static void *copy_wxTextAttrBorder(const void *, SIP_SSIZE_T);}
copy_wxTextAttrBorder(const void * sipSrc,SIP_SSIZE_T sipSrcIdx)1092 static void *copy_wxTextAttrBorder(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
1093 {
1094     return new  ::wxTextAttrBorder(reinterpret_cast<const  ::wxTextAttrBorder *>(sipSrc)[sipSrcIdx]);
1095 }
1096 
1097 
1098 extern "C" {static void dealloc_wxTextAttrBorder(sipSimpleWrapper *);}
dealloc_wxTextAttrBorder(sipSimpleWrapper * sipSelf)1099 static void dealloc_wxTextAttrBorder(sipSimpleWrapper *sipSelf)
1100 {
1101     if (sipIsOwnedByPython(sipSelf))
1102     {
1103         release_wxTextAttrBorder(sipGetAddress(sipSelf), 0);
1104     }
1105 }
1106 
1107 
1108 extern "C" {static void *init_type_wxTextAttrBorder(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxTextAttrBorder(sipSimpleWrapper *,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)1109 static void *init_type_wxTextAttrBorder(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
1110 {
1111      ::wxTextAttrBorder *sipCpp = SIP_NULLPTR;
1112 
1113     {
1114         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
1115         {
1116             PyErr_Clear();
1117 
1118             Py_BEGIN_ALLOW_THREADS
1119             sipCpp = new  ::wxTextAttrBorder();
1120             Py_END_ALLOW_THREADS
1121 
1122             if (PyErr_Occurred())
1123             {
1124                 delete sipCpp;
1125                 return SIP_NULLPTR;
1126             }
1127 
1128             return sipCpp;
1129         }
1130     }
1131 
1132     {
1133         const  ::wxTextAttrBorder* a0;
1134 
1135         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_wxTextAttrBorder, &a0))
1136         {
1137             Py_BEGIN_ALLOW_THREADS
1138             sipCpp = new  ::wxTextAttrBorder(*a0);
1139             Py_END_ALLOW_THREADS
1140 
1141             return sipCpp;
1142         }
1143     }
1144 
1145     return SIP_NULLPTR;
1146 }
1147 
1148 
1149 /* Define this type's Python slots. */
1150 static sipPySlotDef slots_wxTextAttrBorder[] = {
1151     {(void *)slot_wxTextAttrBorder___ne__, ne_slot},
1152     {(void *)slot_wxTextAttrBorder___bool__, bool_slot},
1153     {(void *)slot_wxTextAttrBorder___nonzero__, bool_slot},
1154     {(void *)slot_wxTextAttrBorder___eq__, eq_slot},
1155     {0, (sipPySlotType)0}
1156 };
1157 
1158 
1159 static PyMethodDef methods_wxTextAttrBorder[] = {
1160     {SIP_MLNAME_CAST(sipName_AddFlag), SIP_MLMETH_CAST(meth_wxTextAttrBorder_AddFlag), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_AddFlag)},
1161     {SIP_MLNAME_CAST(sipName_Apply), SIP_MLMETH_CAST(meth_wxTextAttrBorder_Apply), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_Apply)},
1162     {SIP_MLNAME_CAST(sipName_CollectCommonAttributes), SIP_MLMETH_CAST(meth_wxTextAttrBorder_CollectCommonAttributes), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_CollectCommonAttributes)},
1163     {SIP_MLNAME_CAST(sipName_EqPartial), SIP_MLMETH_CAST(meth_wxTextAttrBorder_EqPartial), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_EqPartial)},
1164     {SIP_MLNAME_CAST(sipName_GetColour), meth_wxTextAttrBorder_GetColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_GetColour)},
1165     {SIP_MLNAME_CAST(sipName_GetColourLong), meth_wxTextAttrBorder_GetColourLong, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_GetColourLong)},
1166     {SIP_MLNAME_CAST(sipName_GetFlags), meth_wxTextAttrBorder_GetFlags, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_GetFlags)},
1167     {SIP_MLNAME_CAST(sipName_GetStyle), meth_wxTextAttrBorder_GetStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_GetStyle)},
1168     {SIP_MLNAME_CAST(sipName_GetWidth), meth_wxTextAttrBorder_GetWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_GetWidth)},
1169     {SIP_MLNAME_CAST(sipName_HasColour), meth_wxTextAttrBorder_HasColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_HasColour)},
1170     {SIP_MLNAME_CAST(sipName_HasStyle), meth_wxTextAttrBorder_HasStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_HasStyle)},
1171     {SIP_MLNAME_CAST(sipName_HasWidth), meth_wxTextAttrBorder_HasWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_HasWidth)},
1172     {SIP_MLNAME_CAST(sipName_IsDefault), meth_wxTextAttrBorder_IsDefault, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_IsDefault)},
1173     {SIP_MLNAME_CAST(sipName_IsValid), meth_wxTextAttrBorder_IsValid, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_IsValid)},
1174     {SIP_MLNAME_CAST(sipName_MakeValid), meth_wxTextAttrBorder_MakeValid, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_MakeValid)},
1175     {SIP_MLNAME_CAST(sipName_RemoveFlag), SIP_MLMETH_CAST(meth_wxTextAttrBorder_RemoveFlag), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_RemoveFlag)},
1176     {SIP_MLNAME_CAST(sipName_RemoveStyle), SIP_MLMETH_CAST(meth_wxTextAttrBorder_RemoveStyle), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_RemoveStyle)},
1177     {SIP_MLNAME_CAST(sipName_Reset), meth_wxTextAttrBorder_Reset, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_Reset)},
1178     {SIP_MLNAME_CAST(sipName_SetColour), SIP_MLMETH_CAST(meth_wxTextAttrBorder_SetColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_SetColour)},
1179     {SIP_MLNAME_CAST(sipName_SetFlags), SIP_MLMETH_CAST(meth_wxTextAttrBorder_SetFlags), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_SetFlags)},
1180     {SIP_MLNAME_CAST(sipName_SetStyle), SIP_MLMETH_CAST(meth_wxTextAttrBorder_SetStyle), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_SetStyle)},
1181     {SIP_MLNAME_CAST(sipName_SetWidth), SIP_MLMETH_CAST(meth_wxTextAttrBorder_SetWidth), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextAttrBorder_SetWidth)}
1182 };
1183 
1184 
1185 extern "C" {static PyObject *varget_wxTextAttrBorder_m_borderColour(void *, PyObject *, PyObject *);}
varget_wxTextAttrBorder_m_borderColour(void * sipSelf,PyObject *,PyObject *)1186 static PyObject *varget_wxTextAttrBorder_m_borderColour(void *sipSelf, PyObject *, PyObject *)
1187 {
1188     unsigned long sipVal;
1189      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipSelf);
1190 
1191     sipVal = sipCpp->m_borderColour;
1192 
1193     return PyLong_FromUnsignedLong(sipVal);
1194 }
1195 
1196 
1197 extern "C" {static int varset_wxTextAttrBorder_m_borderColour(void *, PyObject *, PyObject *);}
varset_wxTextAttrBorder_m_borderColour(void * sipSelf,PyObject * sipPy,PyObject *)1198 static int varset_wxTextAttrBorder_m_borderColour(void *sipSelf, PyObject *sipPy, PyObject *)
1199 {
1200     unsigned long sipVal;
1201      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipSelf);
1202 
1203     sipVal = sipLong_AsUnsignedLong(sipPy);
1204 
1205     if (PyErr_Occurred() != SIP_NULLPTR)
1206         return -1;
1207 
1208     sipCpp->m_borderColour = sipVal;
1209 
1210     return 0;
1211 }
1212 
1213 
1214 extern "C" {static PyObject *varget_wxTextAttrBorder_m_borderStyle(void *, PyObject *, PyObject *);}
varget_wxTextAttrBorder_m_borderStyle(void * sipSelf,PyObject *,PyObject *)1215 static PyObject *varget_wxTextAttrBorder_m_borderStyle(void *sipSelf, PyObject *, PyObject *)
1216 {
1217     int sipVal;
1218      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipSelf);
1219 
1220     sipVal = sipCpp->m_borderStyle;
1221 
1222     return SIPLong_FromLong(sipVal);
1223 }
1224 
1225 
1226 extern "C" {static int varset_wxTextAttrBorder_m_borderStyle(void *, PyObject *, PyObject *);}
varset_wxTextAttrBorder_m_borderStyle(void * sipSelf,PyObject * sipPy,PyObject *)1227 static int varset_wxTextAttrBorder_m_borderStyle(void *sipSelf, PyObject *sipPy, PyObject *)
1228 {
1229     int sipVal;
1230      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipSelf);
1231 
1232     sipVal = sipLong_AsInt(sipPy);
1233 
1234     if (PyErr_Occurred() != SIP_NULLPTR)
1235         return -1;
1236 
1237     sipCpp->m_borderStyle = sipVal;
1238 
1239     return 0;
1240 }
1241 
1242 
1243 extern "C" {static PyObject *varget_wxTextAttrBorder_m_borderWidth(void *, PyObject *, PyObject *);}
varget_wxTextAttrBorder_m_borderWidth(void * sipSelf,PyObject *,PyObject *)1244 static PyObject *varget_wxTextAttrBorder_m_borderWidth(void *sipSelf, PyObject *, PyObject *)
1245 {
1246      ::wxTextAttrDimension*sipVal;
1247      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipSelf);
1248 
1249     sipVal = &sipCpp->m_borderWidth;
1250 
1251     return sipConvertFromType(sipVal, sipType_wxTextAttrDimension, SIP_NULLPTR);
1252 }
1253 
1254 
1255 extern "C" {static int varset_wxTextAttrBorder_m_borderWidth(void *, PyObject *, PyObject *);}
varset_wxTextAttrBorder_m_borderWidth(void * sipSelf,PyObject * sipPy,PyObject *)1256 static int varset_wxTextAttrBorder_m_borderWidth(void *sipSelf, PyObject *sipPy, PyObject *)
1257 {
1258      ::wxTextAttrDimension*sipVal;
1259      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipSelf);
1260 
1261     int sipIsErr = 0;
1262 
1263     sipVal = reinterpret_cast< ::wxTextAttrDimension *>(sipForceConvertToType(sipPy, sipType_wxTextAttrDimension, SIP_NULLPTR, SIP_NOT_NONE, SIP_NULLPTR, &sipIsErr));
1264 
1265     if (sipIsErr)
1266         return -1;
1267 
1268     sipCpp->m_borderWidth = *sipVal;
1269 
1270     return 0;
1271 }
1272 
1273 
1274 extern "C" {static PyObject *varget_wxTextAttrBorder_m_flags(void *, PyObject *, PyObject *);}
varget_wxTextAttrBorder_m_flags(void * sipSelf,PyObject *,PyObject *)1275 static PyObject *varget_wxTextAttrBorder_m_flags(void *sipSelf, PyObject *, PyObject *)
1276 {
1277     int sipVal;
1278      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipSelf);
1279 
1280     sipVal = sipCpp->m_flags;
1281 
1282     return SIPLong_FromLong(sipVal);
1283 }
1284 
1285 
1286 extern "C" {static int varset_wxTextAttrBorder_m_flags(void *, PyObject *, PyObject *);}
varset_wxTextAttrBorder_m_flags(void * sipSelf,PyObject * sipPy,PyObject *)1287 static int varset_wxTextAttrBorder_m_flags(void *sipSelf, PyObject *sipPy, PyObject *)
1288 {
1289     int sipVal;
1290      ::wxTextAttrBorder *sipCpp = reinterpret_cast< ::wxTextAttrBorder *>(sipSelf);
1291 
1292     sipVal = sipLong_AsInt(sipPy);
1293 
1294     if (PyErr_Occurred() != SIP_NULLPTR)
1295         return -1;
1296 
1297     sipCpp->m_flags = sipVal;
1298 
1299     return 0;
1300 }
1301 
1302 sipVariableDef variables_wxTextAttrBorder[] = {
1303     {PropertyVariable, sipName_Width, &methods_wxTextAttrBorder[8], &methods_wxTextAttrBorder[21], SIP_NULLPTR, SIP_NULLPTR},
1304     {PropertyVariable, sipName_Style, &methods_wxTextAttrBorder[7], &methods_wxTextAttrBorder[20], SIP_NULLPTR, SIP_NULLPTR},
1305     {PropertyVariable, sipName_Flags, &methods_wxTextAttrBorder[6], &methods_wxTextAttrBorder[19], SIP_NULLPTR, SIP_NULLPTR},
1306     {PropertyVariable, sipName_ColourLong, &methods_wxTextAttrBorder[5], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1307     {PropertyVariable, sipName_Colour, &methods_wxTextAttrBorder[4], &methods_wxTextAttrBorder[18], SIP_NULLPTR, SIP_NULLPTR},
1308     {InstanceVariable, sipName_m_borderColour, (PyMethodDef *)varget_wxTextAttrBorder_m_borderColour, (PyMethodDef *)varset_wxTextAttrBorder_m_borderColour, SIP_NULLPTR, SIP_NULLPTR},
1309     {InstanceVariable, sipName_m_borderStyle, (PyMethodDef *)varget_wxTextAttrBorder_m_borderStyle, (PyMethodDef *)varset_wxTextAttrBorder_m_borderStyle, SIP_NULLPTR, SIP_NULLPTR},
1310     {InstanceVariable, sipName_m_borderWidth, (PyMethodDef *)varget_wxTextAttrBorder_m_borderWidth, (PyMethodDef *)varset_wxTextAttrBorder_m_borderWidth, SIP_NULLPTR, SIP_NULLPTR},
1311     {InstanceVariable, sipName_m_flags, (PyMethodDef *)varget_wxTextAttrBorder_m_flags, (PyMethodDef *)varset_wxTextAttrBorder_m_flags, SIP_NULLPTR, SIP_NULLPTR},
1312 };
1313 
1314 PyDoc_STRVAR(doc_wxTextAttrBorder, "TextAttrBorder()\n"
1315 "\n"
1316 "A class representing a rich text object border.");
1317 
1318 
1319 sipClassTypeDef sipTypeDef__richtext_wxTextAttrBorder = {
1320     {
1321         -1,
1322         SIP_NULLPTR,
1323         SIP_NULLPTR,
1324         SIP_TYPE_CLASS,
1325         sipNameNr_wxTextAttrBorder,
1326         {SIP_NULLPTR},
1327         SIP_NULLPTR
1328     },
1329     {
1330         sipNameNr_TextAttrBorder,
1331         {0, 0, 1},
1332         22, methods_wxTextAttrBorder,
1333         0, SIP_NULLPTR,
1334         9, variables_wxTextAttrBorder,
1335         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1336     },
1337     doc_wxTextAttrBorder,
1338     -1,
1339     -1,
1340     SIP_NULLPTR,
1341     slots_wxTextAttrBorder,
1342     init_type_wxTextAttrBorder,
1343     SIP_NULLPTR,
1344     SIP_NULLPTR,
1345 #if PY_MAJOR_VERSION >= 3
1346     SIP_NULLPTR,
1347     SIP_NULLPTR,
1348 #else
1349     SIP_NULLPTR,
1350     SIP_NULLPTR,
1351     SIP_NULLPTR,
1352     SIP_NULLPTR,
1353 #endif
1354     dealloc_wxTextAttrBorder,
1355     assign_wxTextAttrBorder,
1356     array_wxTextAttrBorder,
1357     copy_wxTextAttrBorder,
1358     release_wxTextAttrBorder,
1359     SIP_NULLPTR,
1360     SIP_NULLPTR,
1361     SIP_NULLPTR,
1362     SIP_NULLPTR,
1363     SIP_NULLPTR,
1364     SIP_NULLPTR,
1365     SIP_NULLPTR
1366 };
1367