1 /*
2  * Interface wrapper code.
3  *
4  * Generated by SIP 4.19.16
5  *
6  *     Copyright: (c) 2018 by Total Control Software
7  *     License:   wxWindows License
8  */
9 
10 #include "sipAPI_core.h"
11 
12         #include <wx/platinfo.h>
13 
14         #include <wx/platinfo.h>
15 
16 
17 PyDoc_STRVAR(doc_wxPlatformInfo_GetArch, "GetArch(arch) -> Architecture\n"
18 "\n"
19 "Converts the given string to a wxArchitecture enum value or to\n"
20 "wxARCH_INVALID if the given string is not a valid architecture string\n"
21 "(i.e.");
22 
23 extern "C" {static PyObject *meth_wxPlatformInfo_GetArch(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_GetArch(PyObject *,PyObject * sipArgs,PyObject * sipKwds)24 static PyObject *meth_wxPlatformInfo_GetArch(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
25 {
26     PyObject *sipParseErr = SIP_NULLPTR;
27 
28     {
29         const  ::wxString* arch;
30         int archState = 0;
31 
32         static const char *sipKwdList[] = {
33             sipName_arch,
34         };
35 
36         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1", sipType_wxString,&arch, &archState))
37         {
38              ::wxArchitecture sipRes;
39 
40             PyErr_Clear();
41 
42             Py_BEGIN_ALLOW_THREADS
43             sipRes =  ::wxPlatformInfo::GetArch(*arch);
44             Py_END_ALLOW_THREADS
45             sipReleaseType(const_cast< ::wxString *>(arch),sipType_wxString,archState);
46 
47             if (PyErr_Occurred())
48                 return 0;
49 
50             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxArchitecture);
51         }
52     }
53 
54     /* Raise an exception if the arguments couldn't be parsed. */
55     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetArch, SIP_NULLPTR);
56 
57     return SIP_NULLPTR;
58 }
59 
60 
61 PyDoc_STRVAR(doc_wxPlatformInfo_GetEndianness, "GetEndianness() -> Endianness\n"
62 "\n"
63 "Returns the endianness ID of this wxPlatformInfo instance.");
64 
65 extern "C" {static PyObject *meth_wxPlatformInfo_GetEndianness(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetEndianness(PyObject * sipSelf,PyObject * sipArgs)66 static PyObject *meth_wxPlatformInfo_GetEndianness(PyObject *sipSelf, PyObject *sipArgs)
67 {
68     PyObject *sipParseErr = SIP_NULLPTR;
69 
70     {
71         const  ::wxPlatformInfo *sipCpp;
72 
73         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
74         {
75              ::wxEndianness sipRes;
76 
77             PyErr_Clear();
78 
79             Py_BEGIN_ALLOW_THREADS
80             sipRes = sipCpp->GetEndianness();
81             Py_END_ALLOW_THREADS
82 
83             if (PyErr_Occurred())
84                 return 0;
85 
86             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxEndianness);
87         }
88     }
89 
90     /* Raise an exception if the arguments couldn't be parsed. */
91     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetEndianness, SIP_NULLPTR);
92 
93     return SIP_NULLPTR;
94 }
95 
96 
97 PyDoc_STRVAR(doc_wxPlatformInfo_GetOperatingSystemId, "GetOperatingSystemId() -> OperatingSystemId\n"
98 "\n"
99 "Returns the operating system ID of this wxPlatformInfo instance.");
100 
101 extern "C" {static PyObject *meth_wxPlatformInfo_GetOperatingSystemId(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetOperatingSystemId(PyObject * sipSelf,PyObject * sipArgs)102 static PyObject *meth_wxPlatformInfo_GetOperatingSystemId(PyObject *sipSelf, PyObject *sipArgs)
103 {
104     PyObject *sipParseErr = SIP_NULLPTR;
105 
106     {
107         const  ::wxPlatformInfo *sipCpp;
108 
109         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
110         {
111              ::wxOperatingSystemId sipRes;
112 
113             PyErr_Clear();
114 
115             Py_BEGIN_ALLOW_THREADS
116             sipRes = sipCpp->GetOperatingSystemId();
117             Py_END_ALLOW_THREADS
118 
119             if (PyErr_Occurred())
120                 return 0;
121 
122             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxOperatingSystemId);
123         }
124     }
125 
126     /* Raise an exception if the arguments couldn't be parsed. */
127     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetOperatingSystemId, SIP_NULLPTR);
128 
129     return SIP_NULLPTR;
130 }
131 
132 
133 PyDoc_STRVAR(doc_wxPlatformInfo_GetPortId, "GetPortId() -> PortId\n"
134 "\n"
135 "Returns the wxWidgets port ID associated with this wxPlatformInfo\n"
136 "instance.");
137 
138 extern "C" {static PyObject *meth_wxPlatformInfo_GetPortId(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetPortId(PyObject * sipSelf,PyObject * sipArgs)139 static PyObject *meth_wxPlatformInfo_GetPortId(PyObject *sipSelf, PyObject *sipArgs)
140 {
141     PyObject *sipParseErr = SIP_NULLPTR;
142 
143     {
144         const  ::wxPlatformInfo *sipCpp;
145 
146         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
147         {
148              ::wxPortId sipRes;
149 
150             PyErr_Clear();
151 
152             Py_BEGIN_ALLOW_THREADS
153             sipRes = sipCpp->GetPortId();
154             Py_END_ALLOW_THREADS
155 
156             if (PyErr_Occurred())
157                 return 0;
158 
159             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxPortId);
160         }
161     }
162 
163     /* Raise an exception if the arguments couldn't be parsed. */
164     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetPortId, SIP_NULLPTR);
165 
166     return SIP_NULLPTR;
167 }
168 
169 
170 PyDoc_STRVAR(doc_wxPlatformInfo_GetArchName, "GetArchName() -> String\n"
171 "\n"
172 "Returns the name for the architecture of this wxPlatformInfo instance.");
173 
174 extern "C" {static PyObject *meth_wxPlatformInfo_GetArchName(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetArchName(PyObject * sipSelf,PyObject * sipArgs)175 static PyObject *meth_wxPlatformInfo_GetArchName(PyObject *sipSelf, PyObject *sipArgs)
176 {
177     PyObject *sipParseErr = SIP_NULLPTR;
178 
179     {
180         const  ::wxPlatformInfo *sipCpp;
181 
182         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
183         {
184              ::wxString*sipRes;
185 
186             PyErr_Clear();
187 
188             Py_BEGIN_ALLOW_THREADS
189             sipRes = new  ::wxString(sipCpp->GetArchName());
190             Py_END_ALLOW_THREADS
191 
192             if (PyErr_Occurred())
193                 return 0;
194 
195             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
196         }
197     }
198 
199     /* Raise an exception if the arguments couldn't be parsed. */
200     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetArchName, SIP_NULLPTR);
201 
202     return SIP_NULLPTR;
203 }
204 
205 
206 PyDoc_STRVAR(doc_wxPlatformInfo_GetEndiannessName, "GetEndiannessName() -> String\n"
207 "\n"
208 "Returns the name for the endianness of this wxPlatformInfo instance.");
209 
210 extern "C" {static PyObject *meth_wxPlatformInfo_GetEndiannessName(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetEndiannessName(PyObject * sipSelf,PyObject * sipArgs)211 static PyObject *meth_wxPlatformInfo_GetEndiannessName(PyObject *sipSelf, PyObject *sipArgs)
212 {
213     PyObject *sipParseErr = SIP_NULLPTR;
214 
215     {
216         const  ::wxPlatformInfo *sipCpp;
217 
218         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
219         {
220              ::wxString*sipRes;
221 
222             PyErr_Clear();
223 
224             Py_BEGIN_ALLOW_THREADS
225             sipRes = new  ::wxString(sipCpp->GetEndiannessName());
226             Py_END_ALLOW_THREADS
227 
228             if (PyErr_Occurred())
229                 return 0;
230 
231             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
232         }
233     }
234 
235     /* Raise an exception if the arguments couldn't be parsed. */
236     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetEndiannessName, SIP_NULLPTR);
237 
238     return SIP_NULLPTR;
239 }
240 
241 
242 PyDoc_STRVAR(doc_wxPlatformInfo_GetOperatingSystemFamilyName, "GetOperatingSystemFamilyName() -> String\n"
243 "\n"
244 "Returns the operating system family name of the OS associated with\n"
245 "this wxPlatformInfo instance.");
246 
247 extern "C" {static PyObject *meth_wxPlatformInfo_GetOperatingSystemFamilyName(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetOperatingSystemFamilyName(PyObject * sipSelf,PyObject * sipArgs)248 static PyObject *meth_wxPlatformInfo_GetOperatingSystemFamilyName(PyObject *sipSelf, PyObject *sipArgs)
249 {
250     PyObject *sipParseErr = SIP_NULLPTR;
251 
252     {
253         const  ::wxPlatformInfo *sipCpp;
254 
255         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
256         {
257              ::wxString*sipRes;
258 
259             PyErr_Clear();
260 
261             Py_BEGIN_ALLOW_THREADS
262             sipRes = new  ::wxString(sipCpp->GetOperatingSystemFamilyName());
263             Py_END_ALLOW_THREADS
264 
265             if (PyErr_Occurred())
266                 return 0;
267 
268             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
269         }
270     }
271 
272     /* Raise an exception if the arguments couldn't be parsed. */
273     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetOperatingSystemFamilyName, SIP_NULLPTR);
274 
275     return SIP_NULLPTR;
276 }
277 
278 
279 PyDoc_STRVAR(doc_wxPlatformInfo_GetOperatingSystemIdName, "GetOperatingSystemIdName() -> String\n"
280 "\n"
281 "Returns the operating system name of the OS associated with this\n"
282 "wxPlatformInfo instance.");
283 
284 extern "C" {static PyObject *meth_wxPlatformInfo_GetOperatingSystemIdName(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetOperatingSystemIdName(PyObject * sipSelf,PyObject * sipArgs)285 static PyObject *meth_wxPlatformInfo_GetOperatingSystemIdName(PyObject *sipSelf, PyObject *sipArgs)
286 {
287     PyObject *sipParseErr = SIP_NULLPTR;
288 
289     {
290         const  ::wxPlatformInfo *sipCpp;
291 
292         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
293         {
294              ::wxString*sipRes;
295 
296             PyErr_Clear();
297 
298             Py_BEGIN_ALLOW_THREADS
299             sipRes = new  ::wxString(sipCpp->GetOperatingSystemIdName());
300             Py_END_ALLOW_THREADS
301 
302             if (PyErr_Occurred())
303                 return 0;
304 
305             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
306         }
307     }
308 
309     /* Raise an exception if the arguments couldn't be parsed. */
310     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetOperatingSystemIdName, SIP_NULLPTR);
311 
312     return SIP_NULLPTR;
313 }
314 
315 
316 PyDoc_STRVAR(doc_wxPlatformInfo_GetPortIdName, "GetPortIdName() -> String\n"
317 "\n"
318 "Returns the name of the wxWidgets port ID associated with this\n"
319 "wxPlatformInfo instance.");
320 
321 extern "C" {static PyObject *meth_wxPlatformInfo_GetPortIdName(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetPortIdName(PyObject * sipSelf,PyObject * sipArgs)322 static PyObject *meth_wxPlatformInfo_GetPortIdName(PyObject *sipSelf, PyObject *sipArgs)
323 {
324     PyObject *sipParseErr = SIP_NULLPTR;
325 
326     {
327         const  ::wxPlatformInfo *sipCpp;
328 
329         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
330         {
331              ::wxString*sipRes;
332 
333             PyErr_Clear();
334 
335             Py_BEGIN_ALLOW_THREADS
336             sipRes = new  ::wxString(sipCpp->GetPortIdName());
337             Py_END_ALLOW_THREADS
338 
339             if (PyErr_Occurred())
340                 return 0;
341 
342             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
343         }
344     }
345 
346     /* Raise an exception if the arguments couldn't be parsed. */
347     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetPortIdName, SIP_NULLPTR);
348 
349     return SIP_NULLPTR;
350 }
351 
352 
353 PyDoc_STRVAR(doc_wxPlatformInfo_GetPortIdShortName, "GetPortIdShortName() -> String\n"
354 "\n"
355 "Returns the short name of the wxWidgets port ID associated with this\n"
356 "wxPlatformInfo instance.");
357 
358 extern "C" {static PyObject *meth_wxPlatformInfo_GetPortIdShortName(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetPortIdShortName(PyObject * sipSelf,PyObject * sipArgs)359 static PyObject *meth_wxPlatformInfo_GetPortIdShortName(PyObject *sipSelf, PyObject *sipArgs)
360 {
361     PyObject *sipParseErr = SIP_NULLPTR;
362 
363     {
364         const  ::wxPlatformInfo *sipCpp;
365 
366         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
367         {
368              ::wxString*sipRes;
369 
370             PyErr_Clear();
371 
372             Py_BEGIN_ALLOW_THREADS
373             sipRes = new  ::wxString(sipCpp->GetPortIdShortName());
374             Py_END_ALLOW_THREADS
375 
376             if (PyErr_Occurred())
377                 return 0;
378 
379             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
380         }
381     }
382 
383     /* Raise an exception if the arguments couldn't be parsed. */
384     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetPortIdShortName, SIP_NULLPTR);
385 
386     return SIP_NULLPTR;
387 }
388 
389 
390 PyDoc_STRVAR(doc_wxPlatformInfo_GetOperatingSystemDirectory, "GetOperatingSystemDirectory() -> String\n"
391 "\n"
392 "Returns the operating system directory.");
393 
394 extern "C" {static PyObject *meth_wxPlatformInfo_GetOperatingSystemDirectory(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetOperatingSystemDirectory(PyObject *,PyObject * sipArgs)395 static PyObject *meth_wxPlatformInfo_GetOperatingSystemDirectory(PyObject *, PyObject *sipArgs)
396 {
397     PyObject *sipParseErr = SIP_NULLPTR;
398 
399     {
400         if (sipParseArgs(&sipParseErr, sipArgs, ""))
401         {
402              ::wxString*sipRes;
403 
404             PyErr_Clear();
405 
406             Py_BEGIN_ALLOW_THREADS
407             sipRes = new  ::wxString( ::wxPlatformInfo::GetOperatingSystemDirectory());
408             Py_END_ALLOW_THREADS
409 
410             if (PyErr_Occurred())
411                 return 0;
412 
413             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
414         }
415     }
416 
417     /* Raise an exception if the arguments couldn't be parsed. */
418     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetOperatingSystemDirectory, SIP_NULLPTR);
419 
420     return SIP_NULLPTR;
421 }
422 
423 
424 PyDoc_STRVAR(doc_wxPlatformInfo_GetArchitecture, "GetArchitecture() -> Architecture\n"
425 "\n"
426 "Returns the architecture ID of this wxPlatformInfo instance.");
427 
428 extern "C" {static PyObject *meth_wxPlatformInfo_GetArchitecture(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetArchitecture(PyObject * sipSelf,PyObject * sipArgs)429 static PyObject *meth_wxPlatformInfo_GetArchitecture(PyObject *sipSelf, PyObject *sipArgs)
430 {
431     PyObject *sipParseErr = SIP_NULLPTR;
432 
433     {
434         const  ::wxPlatformInfo *sipCpp;
435 
436         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
437         {
438              ::wxArchitecture sipRes;
439 
440             PyErr_Clear();
441 
442             Py_BEGIN_ALLOW_THREADS
443             sipRes = sipCpp->GetArchitecture();
444             Py_END_ALLOW_THREADS
445 
446             if (PyErr_Occurred())
447                 return 0;
448 
449             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxArchitecture);
450         }
451     }
452 
453     /* Raise an exception if the arguments couldn't be parsed. */
454     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetArchitecture, SIP_NULLPTR);
455 
456     return SIP_NULLPTR;
457 }
458 
459 
460 PyDoc_STRVAR(doc_wxPlatformInfo_GetOSMajorVersion, "GetOSMajorVersion() -> int\n"
461 "\n"
462 "Returns the run-time major version of the OS associated with this\n"
463 "wxPlatformInfo instance.");
464 
465 extern "C" {static PyObject *meth_wxPlatformInfo_GetOSMajorVersion(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetOSMajorVersion(PyObject * sipSelf,PyObject * sipArgs)466 static PyObject *meth_wxPlatformInfo_GetOSMajorVersion(PyObject *sipSelf, PyObject *sipArgs)
467 {
468     PyObject *sipParseErr = SIP_NULLPTR;
469 
470     {
471         const  ::wxPlatformInfo *sipCpp;
472 
473         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
474         {
475             int sipRes;
476 
477             PyErr_Clear();
478 
479             Py_BEGIN_ALLOW_THREADS
480             sipRes = sipCpp->GetOSMajorVersion();
481             Py_END_ALLOW_THREADS
482 
483             if (PyErr_Occurred())
484                 return 0;
485 
486             return SIPLong_FromLong(sipRes);
487         }
488     }
489 
490     /* Raise an exception if the arguments couldn't be parsed. */
491     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetOSMajorVersion, SIP_NULLPTR);
492 
493     return SIP_NULLPTR;
494 }
495 
496 
497 PyDoc_STRVAR(doc_wxPlatformInfo_GetOSMinorVersion, "GetOSMinorVersion() -> int\n"
498 "\n"
499 "Returns the run-time minor version of the OS associated with this\n"
500 "wxPlatformInfo instance.");
501 
502 extern "C" {static PyObject *meth_wxPlatformInfo_GetOSMinorVersion(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetOSMinorVersion(PyObject * sipSelf,PyObject * sipArgs)503 static PyObject *meth_wxPlatformInfo_GetOSMinorVersion(PyObject *sipSelf, PyObject *sipArgs)
504 {
505     PyObject *sipParseErr = SIP_NULLPTR;
506 
507     {
508         const  ::wxPlatformInfo *sipCpp;
509 
510         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
511         {
512             int sipRes;
513 
514             PyErr_Clear();
515 
516             Py_BEGIN_ALLOW_THREADS
517             sipRes = sipCpp->GetOSMinorVersion();
518             Py_END_ALLOW_THREADS
519 
520             if (PyErr_Occurred())
521                 return 0;
522 
523             return SIPLong_FromLong(sipRes);
524         }
525     }
526 
527     /* Raise an exception if the arguments couldn't be parsed. */
528     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetOSMinorVersion, SIP_NULLPTR);
529 
530     return SIP_NULLPTR;
531 }
532 
533 
534 PyDoc_STRVAR(doc_wxPlatformInfo_GetOperatingSystemDescription, "GetOperatingSystemDescription() -> String\n"
535 "\n"
536 "Returns the description of the operating system of this wxPlatformInfo\n"
537 "instance.");
538 
539 extern "C" {static PyObject *meth_wxPlatformInfo_GetOperatingSystemDescription(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetOperatingSystemDescription(PyObject * sipSelf,PyObject * sipArgs)540 static PyObject *meth_wxPlatformInfo_GetOperatingSystemDescription(PyObject *sipSelf, PyObject *sipArgs)
541 {
542     PyObject *sipParseErr = SIP_NULLPTR;
543 
544     {
545         const  ::wxPlatformInfo *sipCpp;
546 
547         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
548         {
549              ::wxString*sipRes;
550 
551             PyErr_Clear();
552 
553             Py_BEGIN_ALLOW_THREADS
554             sipRes = new  ::wxString(sipCpp->GetOperatingSystemDescription());
555             Py_END_ALLOW_THREADS
556 
557             if (PyErr_Occurred())
558                 return 0;
559 
560             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
561         }
562     }
563 
564     /* Raise an exception if the arguments couldn't be parsed. */
565     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetOperatingSystemDescription, SIP_NULLPTR);
566 
567     return SIP_NULLPTR;
568 }
569 
570 
571 PyDoc_STRVAR(doc_wxPlatformInfo_GetLinuxDistributionInfo, "GetLinuxDistributionInfo() -> LinuxDistributionInfo\n"
572 "\n"
573 "Returns the Linux distribution info associated with this\n"
574 "wxPlatformInfo instance.");
575 
576 extern "C" {static PyObject *meth_wxPlatformInfo_GetLinuxDistributionInfo(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetLinuxDistributionInfo(PyObject * sipSelf,PyObject * sipArgs)577 static PyObject *meth_wxPlatformInfo_GetLinuxDistributionInfo(PyObject *sipSelf, PyObject *sipArgs)
578 {
579     PyObject *sipParseErr = SIP_NULLPTR;
580 
581     {
582         const  ::wxPlatformInfo *sipCpp;
583 
584         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
585         {
586              ::wxLinuxDistributionInfo*sipRes;
587 
588             PyErr_Clear();
589 
590             Py_BEGIN_ALLOW_THREADS
591             sipRes = new  ::wxLinuxDistributionInfo(sipCpp->GetLinuxDistributionInfo());
592             Py_END_ALLOW_THREADS
593 
594             if (PyErr_Occurred())
595                 return 0;
596 
597             return sipConvertFromNewType(sipRes,sipType_wxLinuxDistributionInfo,SIP_NULLPTR);
598         }
599     }
600 
601     /* Raise an exception if the arguments couldn't be parsed. */
602     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetLinuxDistributionInfo, SIP_NULLPTR);
603 
604     return SIP_NULLPTR;
605 }
606 
607 
608 PyDoc_STRVAR(doc_wxPlatformInfo_GetDesktopEnvironment, "GetDesktopEnvironment() -> String\n"
609 "\n"
610 "Returns the desktop environment associated with this wxPlatformInfo\n"
611 "instance.");
612 
613 extern "C" {static PyObject *meth_wxPlatformInfo_GetDesktopEnvironment(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetDesktopEnvironment(PyObject * sipSelf,PyObject * sipArgs)614 static PyObject *meth_wxPlatformInfo_GetDesktopEnvironment(PyObject *sipSelf, PyObject *sipArgs)
615 {
616     PyObject *sipParseErr = SIP_NULLPTR;
617 
618     {
619         const  ::wxPlatformInfo *sipCpp;
620 
621         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
622         {
623              ::wxString*sipRes;
624 
625             PyErr_Clear();
626 
627             Py_BEGIN_ALLOW_THREADS
628             sipRes = new  ::wxString(sipCpp->GetDesktopEnvironment());
629             Py_END_ALLOW_THREADS
630 
631             if (PyErr_Occurred())
632                 return 0;
633 
634             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
635         }
636     }
637 
638     /* Raise an exception if the arguments couldn't be parsed. */
639     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetDesktopEnvironment, SIP_NULLPTR);
640 
641     return SIP_NULLPTR;
642 }
643 
644 
645 PyDoc_STRVAR(doc_wxPlatformInfo_GetToolkitMajorVersion, "GetToolkitMajorVersion() -> int\n"
646 "\n"
647 "Returns the run-time major version of the toolkit associated with this\n"
648 "wxPlatformInfo instance.");
649 
650 extern "C" {static PyObject *meth_wxPlatformInfo_GetToolkitMajorVersion(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetToolkitMajorVersion(PyObject * sipSelf,PyObject * sipArgs)651 static PyObject *meth_wxPlatformInfo_GetToolkitMajorVersion(PyObject *sipSelf, PyObject *sipArgs)
652 {
653     PyObject *sipParseErr = SIP_NULLPTR;
654 
655     {
656         const  ::wxPlatformInfo *sipCpp;
657 
658         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
659         {
660             int sipRes;
661 
662             PyErr_Clear();
663 
664             Py_BEGIN_ALLOW_THREADS
665             sipRes = sipCpp->GetToolkitMajorVersion();
666             Py_END_ALLOW_THREADS
667 
668             if (PyErr_Occurred())
669                 return 0;
670 
671             return SIPLong_FromLong(sipRes);
672         }
673     }
674 
675     /* Raise an exception if the arguments couldn't be parsed. */
676     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetToolkitMajorVersion, SIP_NULLPTR);
677 
678     return SIP_NULLPTR;
679 }
680 
681 
682 PyDoc_STRVAR(doc_wxPlatformInfo_GetToolkitMinorVersion, "GetToolkitMinorVersion() -> int\n"
683 "\n"
684 "Returns the run-time minor version of the toolkit associated with this\n"
685 "wxPlatformInfo instance.");
686 
687 extern "C" {static PyObject *meth_wxPlatformInfo_GetToolkitMinorVersion(PyObject *, PyObject *);}
meth_wxPlatformInfo_GetToolkitMinorVersion(PyObject * sipSelf,PyObject * sipArgs)688 static PyObject *meth_wxPlatformInfo_GetToolkitMinorVersion(PyObject *sipSelf, PyObject *sipArgs)
689 {
690     PyObject *sipParseErr = SIP_NULLPTR;
691 
692     {
693         const  ::wxPlatformInfo *sipCpp;
694 
695         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
696         {
697             int sipRes;
698 
699             PyErr_Clear();
700 
701             Py_BEGIN_ALLOW_THREADS
702             sipRes = sipCpp->GetToolkitMinorVersion();
703             Py_END_ALLOW_THREADS
704 
705             if (PyErr_Occurred())
706                 return 0;
707 
708             return SIPLong_FromLong(sipRes);
709         }
710     }
711 
712     /* Raise an exception if the arguments couldn't be parsed. */
713     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_GetToolkitMinorVersion, SIP_NULLPTR);
714 
715     return SIP_NULLPTR;
716 }
717 
718 
719 PyDoc_STRVAR(doc_wxPlatformInfo_SetArchitecture, "SetArchitecture(n)\n"
720 "\n"
721 "Sets the architecture enum value associated with this wxPlatformInfo\n"
722 "instance.");
723 
724 extern "C" {static PyObject *meth_wxPlatformInfo_SetArchitecture(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_SetArchitecture(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)725 static PyObject *meth_wxPlatformInfo_SetArchitecture(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
726 {
727     PyObject *sipParseErr = SIP_NULLPTR;
728 
729     {
730          ::wxArchitecture n;
731          ::wxPlatformInfo *sipCpp;
732 
733         static const char *sipKwdList[] = {
734             sipName_n,
735         };
736 
737         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxPlatformInfo, &sipCpp, sipType_wxArchitecture, &n))
738         {
739             PyErr_Clear();
740 
741             Py_BEGIN_ALLOW_THREADS
742             sipCpp->SetArchitecture(n);
743             Py_END_ALLOW_THREADS
744 
745             if (PyErr_Occurred())
746                 return 0;
747 
748             Py_INCREF(Py_None);
749             return Py_None;
750         }
751     }
752 
753     /* Raise an exception if the arguments couldn't be parsed. */
754     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_SetArchitecture, SIP_NULLPTR);
755 
756     return SIP_NULLPTR;
757 }
758 
759 
760 PyDoc_STRVAR(doc_wxPlatformInfo_SetEndianness, "SetEndianness(n)\n"
761 "\n"
762 "Sets the endianness enum value associated with this wxPlatformInfo\n"
763 "instance.");
764 
765 extern "C" {static PyObject *meth_wxPlatformInfo_SetEndianness(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_SetEndianness(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)766 static PyObject *meth_wxPlatformInfo_SetEndianness(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
767 {
768     PyObject *sipParseErr = SIP_NULLPTR;
769 
770     {
771          ::wxEndianness n;
772          ::wxPlatformInfo *sipCpp;
773 
774         static const char *sipKwdList[] = {
775             sipName_n,
776         };
777 
778         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxPlatformInfo, &sipCpp, sipType_wxEndianness, &n))
779         {
780             PyErr_Clear();
781 
782             Py_BEGIN_ALLOW_THREADS
783             sipCpp->SetEndianness(n);
784             Py_END_ALLOW_THREADS
785 
786             if (PyErr_Occurred())
787                 return 0;
788 
789             Py_INCREF(Py_None);
790             return Py_None;
791         }
792     }
793 
794     /* Raise an exception if the arguments couldn't be parsed. */
795     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_SetEndianness, SIP_NULLPTR);
796 
797     return SIP_NULLPTR;
798 }
799 
800 
801 PyDoc_STRVAR(doc_wxPlatformInfo_SetOSVersion, "SetOSVersion(major, minor)\n"
802 "\n"
803 "Sets the version of the operating system associated with this\n"
804 "wxPlatformInfo instance.");
805 
806 extern "C" {static PyObject *meth_wxPlatformInfo_SetOSVersion(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_SetOSVersion(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)807 static PyObject *meth_wxPlatformInfo_SetOSVersion(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
808 {
809     PyObject *sipParseErr = SIP_NULLPTR;
810 
811     {
812         int major;
813         int minor;
814          ::wxPlatformInfo *sipCpp;
815 
816         static const char *sipKwdList[] = {
817             sipName_major,
818             sipName_minor,
819         };
820 
821         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxPlatformInfo, &sipCpp, &major, &minor))
822         {
823             PyErr_Clear();
824 
825             Py_BEGIN_ALLOW_THREADS
826             sipCpp->SetOSVersion(major,minor);
827             Py_END_ALLOW_THREADS
828 
829             if (PyErr_Occurred())
830                 return 0;
831 
832             Py_INCREF(Py_None);
833             return Py_None;
834         }
835     }
836 
837     /* Raise an exception if the arguments couldn't be parsed. */
838     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_SetOSVersion, SIP_NULLPTR);
839 
840     return SIP_NULLPTR;
841 }
842 
843 
844 PyDoc_STRVAR(doc_wxPlatformInfo_SetOperatingSystemId, "SetOperatingSystemId(n)\n"
845 "\n"
846 "Sets the operating system associated with this wxPlatformInfo\n"
847 "instance.");
848 
849 extern "C" {static PyObject *meth_wxPlatformInfo_SetOperatingSystemId(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_SetOperatingSystemId(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)850 static PyObject *meth_wxPlatformInfo_SetOperatingSystemId(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
851 {
852     PyObject *sipParseErr = SIP_NULLPTR;
853 
854     {
855          ::wxOperatingSystemId n;
856          ::wxPlatformInfo *sipCpp;
857 
858         static const char *sipKwdList[] = {
859             sipName_n,
860         };
861 
862         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxPlatformInfo, &sipCpp, sipType_wxOperatingSystemId, &n))
863         {
864             PyErr_Clear();
865 
866             Py_BEGIN_ALLOW_THREADS
867             sipCpp->SetOperatingSystemId(n);
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_PlatformInformation, sipName_SetOperatingSystemId, SIP_NULLPTR);
880 
881     return SIP_NULLPTR;
882 }
883 
884 
885 PyDoc_STRVAR(doc_wxPlatformInfo_SetPortId, "SetPortId(n)\n"
886 "\n"
887 "Sets the wxWidgets port ID associated with this wxPlatformInfo\n"
888 "instance.");
889 
890 extern "C" {static PyObject *meth_wxPlatformInfo_SetPortId(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_SetPortId(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)891 static PyObject *meth_wxPlatformInfo_SetPortId(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
892 {
893     PyObject *sipParseErr = SIP_NULLPTR;
894 
895     {
896          ::wxPortId n;
897          ::wxPlatformInfo *sipCpp;
898 
899         static const char *sipKwdList[] = {
900             sipName_n,
901         };
902 
903         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxPlatformInfo, &sipCpp, sipType_wxPortId, &n))
904         {
905             PyErr_Clear();
906 
907             Py_BEGIN_ALLOW_THREADS
908             sipCpp->SetPortId(n);
909             Py_END_ALLOW_THREADS
910 
911             if (PyErr_Occurred())
912                 return 0;
913 
914             Py_INCREF(Py_None);
915             return Py_None;
916         }
917     }
918 
919     /* Raise an exception if the arguments couldn't be parsed. */
920     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_SetPortId, SIP_NULLPTR);
921 
922     return SIP_NULLPTR;
923 }
924 
925 
926 PyDoc_STRVAR(doc_wxPlatformInfo_SetToolkitVersion, "SetToolkitVersion(major, minor)\n"
927 "\n"
928 "Sets the version of the toolkit associated with this wxPlatformInfo\n"
929 "instance.");
930 
931 extern "C" {static PyObject *meth_wxPlatformInfo_SetToolkitVersion(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_SetToolkitVersion(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)932 static PyObject *meth_wxPlatformInfo_SetToolkitVersion(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
933 {
934     PyObject *sipParseErr = SIP_NULLPTR;
935 
936     {
937         int major;
938         int minor;
939          ::wxPlatformInfo *sipCpp;
940 
941         static const char *sipKwdList[] = {
942             sipName_major,
943             sipName_minor,
944         };
945 
946         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxPlatformInfo, &sipCpp, &major, &minor))
947         {
948             PyErr_Clear();
949 
950             Py_BEGIN_ALLOW_THREADS
951             sipCpp->SetToolkitVersion(major,minor);
952             Py_END_ALLOW_THREADS
953 
954             if (PyErr_Occurred())
955                 return 0;
956 
957             Py_INCREF(Py_None);
958             return Py_None;
959         }
960     }
961 
962     /* Raise an exception if the arguments couldn't be parsed. */
963     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_SetToolkitVersion, SIP_NULLPTR);
964 
965     return SIP_NULLPTR;
966 }
967 
968 
969 PyDoc_STRVAR(doc_wxPlatformInfo_SetOperatingSystemDescription, "SetOperatingSystemDescription(desc)\n"
970 "\n"
971 "Sets the operating system description associated with this\n"
972 "wxPlatformInfo instance.");
973 
974 extern "C" {static PyObject *meth_wxPlatformInfo_SetOperatingSystemDescription(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_SetOperatingSystemDescription(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)975 static PyObject *meth_wxPlatformInfo_SetOperatingSystemDescription(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
976 {
977     PyObject *sipParseErr = SIP_NULLPTR;
978 
979     {
980         const  ::wxString* desc;
981         int descState = 0;
982          ::wxPlatformInfo *sipCpp;
983 
984         static const char *sipKwdList[] = {
985             sipName_desc,
986         };
987 
988         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPlatformInfo, &sipCpp, sipType_wxString,&desc, &descState))
989         {
990             PyErr_Clear();
991 
992             Py_BEGIN_ALLOW_THREADS
993             sipCpp->SetOperatingSystemDescription(*desc);
994             Py_END_ALLOW_THREADS
995             sipReleaseType(const_cast< ::wxString *>(desc),sipType_wxString,descState);
996 
997             if (PyErr_Occurred())
998                 return 0;
999 
1000             Py_INCREF(Py_None);
1001             return Py_None;
1002         }
1003     }
1004 
1005     /* Raise an exception if the arguments couldn't be parsed. */
1006     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_SetOperatingSystemDescription, SIP_NULLPTR);
1007 
1008     return SIP_NULLPTR;
1009 }
1010 
1011 
1012 PyDoc_STRVAR(doc_wxPlatformInfo_SetDesktopEnvironment, "SetDesktopEnvironment(de)\n"
1013 "\n"
1014 "Sets the desktop environment associated with this wxPlatformInfo\n"
1015 "instance.");
1016 
1017 extern "C" {static PyObject *meth_wxPlatformInfo_SetDesktopEnvironment(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_SetDesktopEnvironment(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1018 static PyObject *meth_wxPlatformInfo_SetDesktopEnvironment(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1019 {
1020     PyObject *sipParseErr = SIP_NULLPTR;
1021 
1022     {
1023         const  ::wxString* de;
1024         int deState = 0;
1025          ::wxPlatformInfo *sipCpp;
1026 
1027         static const char *sipKwdList[] = {
1028             sipName_de,
1029         };
1030 
1031         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPlatformInfo, &sipCpp, sipType_wxString,&de, &deState))
1032         {
1033             PyErr_Clear();
1034 
1035             Py_BEGIN_ALLOW_THREADS
1036             sipCpp->SetDesktopEnvironment(*de);
1037             Py_END_ALLOW_THREADS
1038             sipReleaseType(const_cast< ::wxString *>(de),sipType_wxString,deState);
1039 
1040             if (PyErr_Occurred())
1041                 return 0;
1042 
1043             Py_INCREF(Py_None);
1044             return Py_None;
1045         }
1046     }
1047 
1048     /* Raise an exception if the arguments couldn't be parsed. */
1049     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_SetDesktopEnvironment, SIP_NULLPTR);
1050 
1051     return SIP_NULLPTR;
1052 }
1053 
1054 
1055 PyDoc_STRVAR(doc_wxPlatformInfo_SetLinuxDistributionInfo, "SetLinuxDistributionInfo(di)\n"
1056 "\n"
1057 "Sets the linux distribution info associated with this wxPlatformInfo\n"
1058 "instance.");
1059 
1060 extern "C" {static PyObject *meth_wxPlatformInfo_SetLinuxDistributionInfo(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_SetLinuxDistributionInfo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1061 static PyObject *meth_wxPlatformInfo_SetLinuxDistributionInfo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1062 {
1063     PyObject *sipParseErr = SIP_NULLPTR;
1064 
1065     {
1066         const  ::wxLinuxDistributionInfo* di;
1067          ::wxPlatformInfo *sipCpp;
1068 
1069         static const char *sipKwdList[] = {
1070             sipName_di,
1071         };
1072 
1073         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxPlatformInfo, &sipCpp, sipType_wxLinuxDistributionInfo, &di))
1074         {
1075             PyErr_Clear();
1076 
1077             Py_BEGIN_ALLOW_THREADS
1078             sipCpp->SetLinuxDistributionInfo(*di);
1079             Py_END_ALLOW_THREADS
1080 
1081             if (PyErr_Occurred())
1082                 return 0;
1083 
1084             Py_INCREF(Py_None);
1085             return Py_None;
1086         }
1087     }
1088 
1089     /* Raise an exception if the arguments couldn't be parsed. */
1090     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_SetLinuxDistributionInfo, SIP_NULLPTR);
1091 
1092     return SIP_NULLPTR;
1093 }
1094 
1095 
1096 PyDoc_STRVAR(doc_wxPlatformInfo_CheckOSVersion, "CheckOSVersion(major, minor) -> bool\n"
1097 "\n"
1098 "Returns true if the OS version is at least major.minor.");
1099 
1100 extern "C" {static PyObject *meth_wxPlatformInfo_CheckOSVersion(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_CheckOSVersion(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1101 static PyObject *meth_wxPlatformInfo_CheckOSVersion(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1102 {
1103     PyObject *sipParseErr = SIP_NULLPTR;
1104 
1105     {
1106         int major;
1107         int minor;
1108         const  ::wxPlatformInfo *sipCpp;
1109 
1110         static const char *sipKwdList[] = {
1111             sipName_major,
1112             sipName_minor,
1113         };
1114 
1115         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxPlatformInfo, &sipCpp, &major, &minor))
1116         {
1117             bool sipRes;
1118 
1119             PyErr_Clear();
1120 
1121             Py_BEGIN_ALLOW_THREADS
1122             sipRes = sipCpp->CheckOSVersion(major,minor);
1123             Py_END_ALLOW_THREADS
1124 
1125             if (PyErr_Occurred())
1126                 return 0;
1127 
1128             return PyBool_FromLong(sipRes);
1129         }
1130     }
1131 
1132     /* Raise an exception if the arguments couldn't be parsed. */
1133     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_CheckOSVersion, SIP_NULLPTR);
1134 
1135     return SIP_NULLPTR;
1136 }
1137 
1138 
1139 PyDoc_STRVAR(doc_wxPlatformInfo_CheckToolkitVersion, "CheckToolkitVersion(major, minor) -> bool\n"
1140 "\n"
1141 "Returns true if the toolkit version is at least major.minor.");
1142 
1143 extern "C" {static PyObject *meth_wxPlatformInfo_CheckToolkitVersion(PyObject *, PyObject *, PyObject *);}
meth_wxPlatformInfo_CheckToolkitVersion(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1144 static PyObject *meth_wxPlatformInfo_CheckToolkitVersion(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1145 {
1146     PyObject *sipParseErr = SIP_NULLPTR;
1147 
1148     {
1149         int major;
1150         int minor;
1151         const  ::wxPlatformInfo *sipCpp;
1152 
1153         static const char *sipKwdList[] = {
1154             sipName_major,
1155             sipName_minor,
1156         };
1157 
1158         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxPlatformInfo, &sipCpp, &major, &minor))
1159         {
1160             bool sipRes;
1161 
1162             PyErr_Clear();
1163 
1164             Py_BEGIN_ALLOW_THREADS
1165             sipRes = sipCpp->CheckToolkitVersion(major,minor);
1166             Py_END_ALLOW_THREADS
1167 
1168             if (PyErr_Occurred())
1169                 return 0;
1170 
1171             return PyBool_FromLong(sipRes);
1172         }
1173     }
1174 
1175     /* Raise an exception if the arguments couldn't be parsed. */
1176     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_CheckToolkitVersion, SIP_NULLPTR);
1177 
1178     return SIP_NULLPTR;
1179 }
1180 
1181 
1182 PyDoc_STRVAR(doc_wxPlatformInfo_IsOk, "IsOk() -> bool\n"
1183 "\n"
1184 "Returns true if this instance is fully initialized with valid values.");
1185 
1186 extern "C" {static PyObject *meth_wxPlatformInfo_IsOk(PyObject *, PyObject *);}
meth_wxPlatformInfo_IsOk(PyObject * sipSelf,PyObject * sipArgs)1187 static PyObject *meth_wxPlatformInfo_IsOk(PyObject *sipSelf, PyObject *sipArgs)
1188 {
1189     PyObject *sipParseErr = SIP_NULLPTR;
1190 
1191     {
1192         const  ::wxPlatformInfo *sipCpp;
1193 
1194         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
1195         {
1196             bool sipRes;
1197 
1198             PyErr_Clear();
1199 
1200             Py_BEGIN_ALLOW_THREADS
1201             sipRes = sipCpp->IsOk();
1202             Py_END_ALLOW_THREADS
1203 
1204             if (PyErr_Occurred())
1205                 return 0;
1206 
1207             return PyBool_FromLong(sipRes);
1208         }
1209     }
1210 
1211     /* Raise an exception if the arguments couldn't be parsed. */
1212     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_IsOk, SIP_NULLPTR);
1213 
1214     return SIP_NULLPTR;
1215 }
1216 
1217 
1218 PyDoc_STRVAR(doc_wxPlatformInfo_IsUsingUniversalWidgets, "IsUsingUniversalWidgets() -> bool\n"
1219 "\n"
1220 "Returns true if this wxPlatformInfo describes wxUniversal build.");
1221 
1222 extern "C" {static PyObject *meth_wxPlatformInfo_IsUsingUniversalWidgets(PyObject *, PyObject *);}
meth_wxPlatformInfo_IsUsingUniversalWidgets(PyObject * sipSelf,PyObject * sipArgs)1223 static PyObject *meth_wxPlatformInfo_IsUsingUniversalWidgets(PyObject *sipSelf, PyObject *sipArgs)
1224 {
1225     PyObject *sipParseErr = SIP_NULLPTR;
1226 
1227     {
1228         const  ::wxPlatformInfo *sipCpp;
1229 
1230         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPlatformInfo, &sipCpp))
1231         {
1232             bool sipRes;
1233 
1234             PyErr_Clear();
1235 
1236             Py_BEGIN_ALLOW_THREADS
1237             sipRes = sipCpp->IsUsingUniversalWidgets();
1238             Py_END_ALLOW_THREADS
1239 
1240             if (PyErr_Occurred())
1241                 return 0;
1242 
1243             return PyBool_FromLong(sipRes);
1244         }
1245     }
1246 
1247     /* Raise an exception if the arguments couldn't be parsed. */
1248     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_IsUsingUniversalWidgets, SIP_NULLPTR);
1249 
1250     return SIP_NULLPTR;
1251 }
1252 
1253 
1254 PyDoc_STRVAR(doc_wxPlatformInfo_Get, "Get() -> PlatformInfo\n"
1255 "\n"
1256 "Returns the global wxPlatformInfo object, initialized with the values\n"
1257 "for the currently running platform.");
1258 
1259 extern "C" {static PyObject *meth_wxPlatformInfo_Get(PyObject *, PyObject *);}
meth_wxPlatformInfo_Get(PyObject *,PyObject * sipArgs)1260 static PyObject *meth_wxPlatformInfo_Get(PyObject *, PyObject *sipArgs)
1261 {
1262     PyObject *sipParseErr = SIP_NULLPTR;
1263 
1264     {
1265         if (sipParseArgs(&sipParseErr, sipArgs, ""))
1266         {
1267              ::wxPlatformInfo*sipRes;
1268 
1269             PyErr_Clear();
1270 
1271             Py_BEGIN_ALLOW_THREADS
1272             sipRes = new  ::wxPlatformInfo( ::wxPlatformInfo::Get());
1273             Py_END_ALLOW_THREADS
1274 
1275             if (PyErr_Occurred())
1276                 return 0;
1277 
1278             return sipConvertFromNewType(sipRes,sipType_wxPlatformInfo,SIP_NULLPTR);
1279         }
1280     }
1281 
1282     /* Raise an exception if the arguments couldn't be parsed. */
1283     sipNoMethod(sipParseErr, sipName_PlatformInformation, sipName_Get, SIP_NULLPTR);
1284 
1285     return SIP_NULLPTR;
1286 }
1287 
1288 
1289 extern "C" {static PyObject *slot_wxPlatformInfo___eq__(PyObject *,PyObject *);}
slot_wxPlatformInfo___eq__(PyObject * sipSelf,PyObject * sipArg)1290 static PyObject *slot_wxPlatformInfo___eq__(PyObject *sipSelf,PyObject *sipArg)
1291 {
1292      ::wxPlatformInfo *sipCpp = reinterpret_cast< ::wxPlatformInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxPlatformInfo));
1293 
1294     if (!sipCpp)
1295         return SIP_NULLPTR;
1296 
1297     PyObject *sipParseErr = SIP_NULLPTR;
1298 
1299     {
1300         const  ::wxPlatformInfo* t;
1301 
1302         if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxPlatformInfo, &t))
1303         {
1304             bool sipRes;
1305 
1306             PyErr_Clear();
1307 
1308             Py_BEGIN_ALLOW_THREADS
1309             sipRes = sipCpp-> ::wxPlatformInfo::operator==(*t);
1310             Py_END_ALLOW_THREADS
1311 
1312             if (PyErr_Occurred())
1313                 return 0;
1314 
1315             return PyBool_FromLong(sipRes);
1316         }
1317     }
1318 
1319     Py_XDECREF(sipParseErr);
1320 
1321     if (sipParseErr == Py_None)
1322         return SIP_NULLPTR;
1323 
1324     return sipPySlotExtend(&sipModuleAPI__core, eq_slot, sipType_wxPlatformInfo, sipSelf, sipArg);
1325 }
1326 
1327 
1328 extern "C" {static PyObject *slot_wxPlatformInfo___ne__(PyObject *,PyObject *);}
slot_wxPlatformInfo___ne__(PyObject * sipSelf,PyObject * sipArg)1329 static PyObject *slot_wxPlatformInfo___ne__(PyObject *sipSelf,PyObject *sipArg)
1330 {
1331      ::wxPlatformInfo *sipCpp = reinterpret_cast< ::wxPlatformInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxPlatformInfo));
1332 
1333     if (!sipCpp)
1334         return SIP_NULLPTR;
1335 
1336     PyObject *sipParseErr = SIP_NULLPTR;
1337 
1338     {
1339         const  ::wxPlatformInfo* t;
1340 
1341         if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxPlatformInfo, &t))
1342         {
1343             bool sipRes;
1344 
1345             PyErr_Clear();
1346 
1347             Py_BEGIN_ALLOW_THREADS
1348             sipRes = sipCpp-> ::wxPlatformInfo::operator!=(*t);
1349             Py_END_ALLOW_THREADS
1350 
1351             if (PyErr_Occurred())
1352                 return 0;
1353 
1354             return PyBool_FromLong(sipRes);
1355         }
1356     }
1357 
1358     Py_XDECREF(sipParseErr);
1359 
1360     if (sipParseErr == Py_None)
1361         return SIP_NULLPTR;
1362 
1363     return sipPySlotExtend(&sipModuleAPI__core, ne_slot, sipType_wxPlatformInfo, sipSelf, sipArg);
1364 }
1365 
1366 
1367 /* Call the instance's destructor. */
1368 extern "C" {static void release_wxPlatformInfo(void *, int);}
release_wxPlatformInfo(void * sipCppV,int)1369 static void release_wxPlatformInfo(void *sipCppV, int)
1370 {
1371     Py_BEGIN_ALLOW_THREADS
1372 
1373     delete reinterpret_cast< ::wxPlatformInfo *>(sipCppV);
1374 
1375     Py_END_ALLOW_THREADS
1376 }
1377 
1378 
1379 extern "C" {static void assign_wxPlatformInfo(void *, SIP_SSIZE_T, void *);}
assign_wxPlatformInfo(void * sipDst,SIP_SSIZE_T sipDstIdx,void * sipSrc)1380 static void assign_wxPlatformInfo(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
1381 {
1382     reinterpret_cast< ::wxPlatformInfo *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::wxPlatformInfo *>(sipSrc);
1383 }
1384 
1385 
1386 extern "C" {static void *array_wxPlatformInfo(SIP_SSIZE_T);}
array_wxPlatformInfo(SIP_SSIZE_T sipNrElem)1387 static void *array_wxPlatformInfo(SIP_SSIZE_T sipNrElem)
1388 {
1389     return new  ::wxPlatformInfo[sipNrElem];
1390 }
1391 
1392 
1393 extern "C" {static void *copy_wxPlatformInfo(const void *, SIP_SSIZE_T);}
copy_wxPlatformInfo(const void * sipSrc,SIP_SSIZE_T sipSrcIdx)1394 static void *copy_wxPlatformInfo(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
1395 {
1396     return new  ::wxPlatformInfo(reinterpret_cast<const  ::wxPlatformInfo *>(sipSrc)[sipSrcIdx]);
1397 }
1398 
1399 
1400 extern "C" {static void dealloc_wxPlatformInfo(sipSimpleWrapper *);}
dealloc_wxPlatformInfo(sipSimpleWrapper * sipSelf)1401 static void dealloc_wxPlatformInfo(sipSimpleWrapper *sipSelf)
1402 {
1403     if (sipIsOwnedByPython(sipSelf))
1404     {
1405         release_wxPlatformInfo(sipGetAddress(sipSelf), 0);
1406     }
1407 }
1408 
1409 
1410 extern "C" {static void *init_type_wxPlatformInfo(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxPlatformInfo(sipSimpleWrapper *,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)1411 static void *init_type_wxPlatformInfo(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
1412 {
1413      ::wxPlatformInfo *sipCpp = SIP_NULLPTR;
1414 
1415     {
1416         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
1417         {
1418             PyErr_Clear();
1419 
1420             Py_BEGIN_ALLOW_THREADS
1421             sipCpp = new  ::wxPlatformInfo();
1422             Py_END_ALLOW_THREADS
1423 
1424             if (PyErr_Occurred())
1425             {
1426                 delete sipCpp;
1427                 return SIP_NULLPTR;
1428             }
1429 
1430             return sipCpp;
1431         }
1432     }
1433 
1434     {
1435          ::wxPortId pid;
1436         int tkMajor = -1;
1437         int tkMinor = -1;
1438          ::wxOperatingSystemId id = wxOS_UNKNOWN;
1439         int osMajor = -1;
1440         int osMinor = -1;
1441          ::wxArchitecture arch = wxARCH_INVALID;
1442          ::wxEndianness endian = wxENDIAN_INVALID;
1443 
1444         static const char *sipKwdList[] = {
1445             sipName_pid,
1446             sipName_tkMajor,
1447             sipName_tkMinor,
1448             sipName_id,
1449             sipName_osMajor,
1450             sipName_osMinor,
1451             sipName_arch,
1452             sipName_endian,
1453         };
1454 
1455         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "E|iiEiiEE", sipType_wxPortId, &pid, &tkMajor, &tkMinor, sipType_wxOperatingSystemId, &id, &osMajor, &osMinor, sipType_wxArchitecture, &arch, sipType_wxEndianness, &endian))
1456         {
1457             PyErr_Clear();
1458 
1459             Py_BEGIN_ALLOW_THREADS
1460             sipCpp = new  ::wxPlatformInfo(pid,tkMajor,tkMinor,id,osMajor,osMinor,arch,endian);
1461             Py_END_ALLOW_THREADS
1462 
1463             if (PyErr_Occurred())
1464             {
1465                 delete sipCpp;
1466                 return SIP_NULLPTR;
1467             }
1468 
1469             return sipCpp;
1470         }
1471     }
1472 
1473     {
1474         const  ::wxPlatformInfo* a0;
1475 
1476         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_wxPlatformInfo, &a0))
1477         {
1478             Py_BEGIN_ALLOW_THREADS
1479             sipCpp = new  ::wxPlatformInfo(*a0);
1480             Py_END_ALLOW_THREADS
1481 
1482             return sipCpp;
1483         }
1484     }
1485 
1486     return SIP_NULLPTR;
1487 }
1488 
1489 
1490 /* Define this type's Python slots. */
1491 static sipPySlotDef slots_wxPlatformInfo[] = {
1492     {(void *)slot_wxPlatformInfo___eq__, eq_slot},
1493     {(void *)slot_wxPlatformInfo___ne__, ne_slot},
1494     {0, (sipPySlotType)0}
1495 };
1496 
1497 
1498 static PyMethodDef methods_wxPlatformInfo[] = {
1499     {SIP_MLNAME_CAST(sipName_CheckOSVersion), SIP_MLMETH_CAST(meth_wxPlatformInfo_CheckOSVersion), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_CheckOSVersion)},
1500     {SIP_MLNAME_CAST(sipName_CheckToolkitVersion), SIP_MLMETH_CAST(meth_wxPlatformInfo_CheckToolkitVersion), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_CheckToolkitVersion)},
1501     {SIP_MLNAME_CAST(sipName_Get), meth_wxPlatformInfo_Get, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_Get)},
1502     {SIP_MLNAME_CAST(sipName_GetArch), SIP_MLMETH_CAST(meth_wxPlatformInfo_GetArch), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetArch)},
1503     {SIP_MLNAME_CAST(sipName_GetArchName), meth_wxPlatformInfo_GetArchName, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetArchName)},
1504     {SIP_MLNAME_CAST(sipName_GetArchitecture), meth_wxPlatformInfo_GetArchitecture, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetArchitecture)},
1505     {SIP_MLNAME_CAST(sipName_GetDesktopEnvironment), meth_wxPlatformInfo_GetDesktopEnvironment, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetDesktopEnvironment)},
1506     {SIP_MLNAME_CAST(sipName_GetEndianness), meth_wxPlatformInfo_GetEndianness, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetEndianness)},
1507     {SIP_MLNAME_CAST(sipName_GetEndiannessName), meth_wxPlatformInfo_GetEndiannessName, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetEndiannessName)},
1508     {SIP_MLNAME_CAST(sipName_GetLinuxDistributionInfo), meth_wxPlatformInfo_GetLinuxDistributionInfo, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetLinuxDistributionInfo)},
1509     {SIP_MLNAME_CAST(sipName_GetOSMajorVersion), meth_wxPlatformInfo_GetOSMajorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetOSMajorVersion)},
1510     {SIP_MLNAME_CAST(sipName_GetOSMinorVersion), meth_wxPlatformInfo_GetOSMinorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetOSMinorVersion)},
1511     {SIP_MLNAME_CAST(sipName_GetOperatingSystemDescription), meth_wxPlatformInfo_GetOperatingSystemDescription, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetOperatingSystemDescription)},
1512     {SIP_MLNAME_CAST(sipName_GetOperatingSystemDirectory), meth_wxPlatformInfo_GetOperatingSystemDirectory, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetOperatingSystemDirectory)},
1513     {SIP_MLNAME_CAST(sipName_GetOperatingSystemFamilyName), meth_wxPlatformInfo_GetOperatingSystemFamilyName, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetOperatingSystemFamilyName)},
1514     {SIP_MLNAME_CAST(sipName_GetOperatingSystemId), meth_wxPlatformInfo_GetOperatingSystemId, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetOperatingSystemId)},
1515     {SIP_MLNAME_CAST(sipName_GetOperatingSystemIdName), meth_wxPlatformInfo_GetOperatingSystemIdName, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetOperatingSystemIdName)},
1516     {SIP_MLNAME_CAST(sipName_GetPortId), meth_wxPlatformInfo_GetPortId, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetPortId)},
1517     {SIP_MLNAME_CAST(sipName_GetPortIdName), meth_wxPlatformInfo_GetPortIdName, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetPortIdName)},
1518     {SIP_MLNAME_CAST(sipName_GetPortIdShortName), meth_wxPlatformInfo_GetPortIdShortName, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetPortIdShortName)},
1519     {SIP_MLNAME_CAST(sipName_GetToolkitMajorVersion), meth_wxPlatformInfo_GetToolkitMajorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetToolkitMajorVersion)},
1520     {SIP_MLNAME_CAST(sipName_GetToolkitMinorVersion), meth_wxPlatformInfo_GetToolkitMinorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_GetToolkitMinorVersion)},
1521     {SIP_MLNAME_CAST(sipName_IsOk), meth_wxPlatformInfo_IsOk, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_IsOk)},
1522     {SIP_MLNAME_CAST(sipName_IsUsingUniversalWidgets), meth_wxPlatformInfo_IsUsingUniversalWidgets, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPlatformInfo_IsUsingUniversalWidgets)},
1523     {SIP_MLNAME_CAST(sipName_SetArchitecture), SIP_MLMETH_CAST(meth_wxPlatformInfo_SetArchitecture), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_SetArchitecture)},
1524     {SIP_MLNAME_CAST(sipName_SetDesktopEnvironment), SIP_MLMETH_CAST(meth_wxPlatformInfo_SetDesktopEnvironment), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_SetDesktopEnvironment)},
1525     {SIP_MLNAME_CAST(sipName_SetEndianness), SIP_MLMETH_CAST(meth_wxPlatformInfo_SetEndianness), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_SetEndianness)},
1526     {SIP_MLNAME_CAST(sipName_SetLinuxDistributionInfo), SIP_MLMETH_CAST(meth_wxPlatformInfo_SetLinuxDistributionInfo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_SetLinuxDistributionInfo)},
1527     {SIP_MLNAME_CAST(sipName_SetOSVersion), SIP_MLMETH_CAST(meth_wxPlatformInfo_SetOSVersion), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_SetOSVersion)},
1528     {SIP_MLNAME_CAST(sipName_SetOperatingSystemDescription), SIP_MLMETH_CAST(meth_wxPlatformInfo_SetOperatingSystemDescription), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_SetOperatingSystemDescription)},
1529     {SIP_MLNAME_CAST(sipName_SetOperatingSystemId), SIP_MLMETH_CAST(meth_wxPlatformInfo_SetOperatingSystemId), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_SetOperatingSystemId)},
1530     {SIP_MLNAME_CAST(sipName_SetPortId), SIP_MLMETH_CAST(meth_wxPlatformInfo_SetPortId), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_SetPortId)},
1531     {SIP_MLNAME_CAST(sipName_SetToolkitVersion), SIP_MLMETH_CAST(meth_wxPlatformInfo_SetToolkitVersion), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPlatformInfo_SetToolkitVersion)}
1532 };
1533 
1534 sipVariableDef variables_wxPlatformInfo[] = {
1535     {PropertyVariable, sipName_ToolkitMinorVersion, &methods_wxPlatformInfo[21], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1536     {PropertyVariable, sipName_ToolkitMajorVersion, &methods_wxPlatformInfo[20], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1537     {PropertyVariable, sipName_PortIdShortName, &methods_wxPlatformInfo[19], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1538     {PropertyVariable, sipName_PortIdName, &methods_wxPlatformInfo[18], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1539     {PropertyVariable, sipName_PortId, &methods_wxPlatformInfo[17], &methods_wxPlatformInfo[31], SIP_NULLPTR, SIP_NULLPTR},
1540     {PropertyVariable, sipName_OperatingSystemIdName, &methods_wxPlatformInfo[16], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1541     {PropertyVariable, sipName_OperatingSystemId, &methods_wxPlatformInfo[15], &methods_wxPlatformInfo[30], SIP_NULLPTR, SIP_NULLPTR},
1542     {PropertyVariable, sipName_OperatingSystemFamilyName, &methods_wxPlatformInfo[14], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1543     {PropertyVariable, sipName_OperatingSystemDescription, &methods_wxPlatformInfo[12], &methods_wxPlatformInfo[29], SIP_NULLPTR, SIP_NULLPTR},
1544     {PropertyVariable, sipName_OSMinorVersion, &methods_wxPlatformInfo[11], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1545     {PropertyVariable, sipName_OSMajorVersion, &methods_wxPlatformInfo[10], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1546     {PropertyVariable, sipName_LinuxDistributionInfo, &methods_wxPlatformInfo[9], &methods_wxPlatformInfo[27], SIP_NULLPTR, SIP_NULLPTR},
1547     {PropertyVariable, sipName_EndiannessName, &methods_wxPlatformInfo[8], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1548     {PropertyVariable, sipName_Endianness, &methods_wxPlatformInfo[7], &methods_wxPlatformInfo[26], SIP_NULLPTR, SIP_NULLPTR},
1549     {PropertyVariable, sipName_DesktopEnvironment, &methods_wxPlatformInfo[6], &methods_wxPlatformInfo[25], SIP_NULLPTR, SIP_NULLPTR},
1550     {PropertyVariable, sipName_Architecture, &methods_wxPlatformInfo[5], &methods_wxPlatformInfo[24], SIP_NULLPTR, SIP_NULLPTR},
1551     {PropertyVariable, sipName_ArchName, &methods_wxPlatformInfo[4], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1552 };
1553 
1554 PyDoc_STRVAR(doc_wxPlatformInfo, "PlatformInfo()\n"
1555 "PlatformInfo(pid, tkMajor=-1, tkMinor=-1, id=OS_UNKNOWN, osMajor=-1, osMinor=-1, arch=ARCH_INVALID, endian=ENDIAN_INVALID)\n"
1556 "\n"
1557 "This class holds information about the operating system, the toolkit\n"
1558 "and the basic architecture of the machine where the application is\n"
1559 "currently running.");
1560 
1561 
1562 sipClassTypeDef sipTypeDef__core_wxPlatformInfo = {
1563     {
1564         -1,
1565         SIP_NULLPTR,
1566         SIP_NULLPTR,
1567         SIP_TYPE_CLASS,
1568         sipNameNr_wxPlatformInfo,
1569         {SIP_NULLPTR},
1570         SIP_NULLPTR
1571     },
1572     {
1573         sipNameNr_PlatformInformation,
1574         {0, 0, 1},
1575         33, methods_wxPlatformInfo,
1576         0, SIP_NULLPTR,
1577         17, variables_wxPlatformInfo,
1578         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1579     },
1580     doc_wxPlatformInfo,
1581     -1,
1582     -1,
1583     SIP_NULLPTR,
1584     slots_wxPlatformInfo,
1585     init_type_wxPlatformInfo,
1586     SIP_NULLPTR,
1587     SIP_NULLPTR,
1588 #if PY_MAJOR_VERSION >= 3
1589     SIP_NULLPTR,
1590     SIP_NULLPTR,
1591 #else
1592     SIP_NULLPTR,
1593     SIP_NULLPTR,
1594     SIP_NULLPTR,
1595     SIP_NULLPTR,
1596 #endif
1597     dealloc_wxPlatformInfo,
1598     assign_wxPlatformInfo,
1599     array_wxPlatformInfo,
1600     copy_wxPlatformInfo,
1601     release_wxPlatformInfo,
1602     SIP_NULLPTR,
1603     SIP_NULLPTR,
1604     SIP_NULLPTR,
1605     SIP_NULLPTR,
1606     SIP_NULLPTR,
1607     SIP_NULLPTR,
1608     SIP_NULLPTR
1609 };
1610