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/treectrl.h>
13 
14         #include <wx/treectrl.h>
15         #include <wx/treebase.h>
16         #include <wx/event.h>
17         #include <wx/gdicmn.h>
18         #include <wx/event.h>
19         #include <wx/object.h>
20         #include <wx/object.h>
21         #include <wx/object.h>
22 
23 
24 class sipwxTreeEvent : public  ::wxTreeEvent
25 {
26 public:
27     sipwxTreeEvent( ::wxEventType, ::wxTreeCtrl*,const  ::wxTreeItemId&);
28     sipwxTreeEvent(const  ::wxTreeEvent&);
29     virtual ~sipwxTreeEvent();
30 
31     /*
32      * There is a protected method for every virtual method visible from
33      * this class.
34      */
35 protected:
36      ::wxEvent* Clone() const SIP_OVERRIDE;
37      ::wxEventCategory GetEventCategory() const SIP_OVERRIDE;
38 
39 public:
40     sipSimpleWrapper *sipPySelf;
41 
42 private:
43     sipwxTreeEvent(const sipwxTreeEvent &);
44     sipwxTreeEvent &operator = (const sipwxTreeEvent &);
45 
46     char sipPyMethods[2];
47 };
48 
sipwxTreeEvent(::wxEventType commandType,::wxTreeCtrl * tree,const::wxTreeItemId & item)49 sipwxTreeEvent::sipwxTreeEvent( ::wxEventType commandType, ::wxTreeCtrl*tree,const  ::wxTreeItemId& item):  ::wxTreeEvent(commandType,tree,item), sipPySelf(SIP_NULLPTR)
50 {
51     memset(sipPyMethods, 0, sizeof (sipPyMethods));
52 }
53 
sipwxTreeEvent(const::wxTreeEvent & a0)54 sipwxTreeEvent::sipwxTreeEvent(const  ::wxTreeEvent& a0):  ::wxTreeEvent(a0), sipPySelf(SIP_NULLPTR)
55 {
56     memset(sipPyMethods, 0, sizeof (sipPyMethods));
57 }
58 
~sipwxTreeEvent()59 sipwxTreeEvent::~sipwxTreeEvent()
60 {
61     sipInstanceDestroyedEx(&sipPySelf);
62 }
63 
Clone() const64  ::wxEvent* sipwxTreeEvent::Clone() const
65 {
66     sip_gilstate_t sipGILState;
67     PyObject *sipMeth;
68 
69     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,SIP_NULLPTR,sipName_Clone);
70 
71     if (!sipMeth)
72         return  ::wxTreeEvent::Clone();
73 
74     extern  ::wxEvent* sipVH__core_91(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
75 
76     return sipVH__core_91(sipGILState, 0, sipPySelf, sipMeth);
77 }
78 
GetEventCategory() const79  ::wxEventCategory sipwxTreeEvent::GetEventCategory() const
80 {
81     sip_gilstate_t sipGILState;
82     PyObject *sipMeth;
83 
84     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,SIP_NULLPTR,sipName_GetEventCategory);
85 
86     if (!sipMeth)
87         return  ::wxTreeEvent::GetEventCategory();
88 
89     extern  ::wxEventCategory sipVH__core_92(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
90 
91     return sipVH__core_92(sipGILState, 0, sipPySelf, sipMeth);
92 }
93 
94 
95 PyDoc_STRVAR(doc_wxTreeEvent_GetItem, "GetItem() -> TreeItemId\n"
96 "\n"
97 "Returns the item (valid for all events).");
98 
99 extern "C" {static PyObject *meth_wxTreeEvent_GetItem(PyObject *, PyObject *);}
meth_wxTreeEvent_GetItem(PyObject * sipSelf,PyObject * sipArgs)100 static PyObject *meth_wxTreeEvent_GetItem(PyObject *sipSelf, PyObject *sipArgs)
101 {
102     PyObject *sipParseErr = SIP_NULLPTR;
103 
104     {
105         const  ::wxTreeEvent *sipCpp;
106 
107         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreeEvent, &sipCpp))
108         {
109              ::wxTreeItemId*sipRes;
110 
111             PyErr_Clear();
112 
113             Py_BEGIN_ALLOW_THREADS
114             sipRes = new  ::wxTreeItemId(sipCpp->GetItem());
115             Py_END_ALLOW_THREADS
116 
117             if (PyErr_Occurred())
118                 return 0;
119 
120             return sipConvertFromNewType(sipRes,sipType_wxTreeItemId,SIP_NULLPTR);
121         }
122     }
123 
124     /* Raise an exception if the arguments couldn't be parsed. */
125     sipNoMethod(sipParseErr, sipName_TreeEvent, sipName_GetItem, SIP_NULLPTR);
126 
127     return SIP_NULLPTR;
128 }
129 
130 
131 PyDoc_STRVAR(doc_wxTreeEvent_GetKeyCode, "GetKeyCode() -> int\n"
132 "\n"
133 "Returns the key code if the event is a key event.");
134 
135 extern "C" {static PyObject *meth_wxTreeEvent_GetKeyCode(PyObject *, PyObject *);}
meth_wxTreeEvent_GetKeyCode(PyObject * sipSelf,PyObject * sipArgs)136 static PyObject *meth_wxTreeEvent_GetKeyCode(PyObject *sipSelf, PyObject *sipArgs)
137 {
138     PyObject *sipParseErr = SIP_NULLPTR;
139 
140     {
141         const  ::wxTreeEvent *sipCpp;
142 
143         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreeEvent, &sipCpp))
144         {
145             int sipRes;
146 
147             PyErr_Clear();
148 
149             Py_BEGIN_ALLOW_THREADS
150             sipRes = sipCpp->GetKeyCode();
151             Py_END_ALLOW_THREADS
152 
153             if (PyErr_Occurred())
154                 return 0;
155 
156             return SIPLong_FromLong(sipRes);
157         }
158     }
159 
160     /* Raise an exception if the arguments couldn't be parsed. */
161     sipNoMethod(sipParseErr, sipName_TreeEvent, sipName_GetKeyCode, SIP_NULLPTR);
162 
163     return SIP_NULLPTR;
164 }
165 
166 
167 PyDoc_STRVAR(doc_wxTreeEvent_GetKeyEvent, "GetKeyEvent() -> KeyEvent\n"
168 "\n"
169 "Returns the key event for EVT_TREE_KEY_DOWN events.");
170 
171 extern "C" {static PyObject *meth_wxTreeEvent_GetKeyEvent(PyObject *, PyObject *);}
meth_wxTreeEvent_GetKeyEvent(PyObject * sipSelf,PyObject * sipArgs)172 static PyObject *meth_wxTreeEvent_GetKeyEvent(PyObject *sipSelf, PyObject *sipArgs)
173 {
174     PyObject *sipParseErr = SIP_NULLPTR;
175 
176     {
177         const  ::wxTreeEvent *sipCpp;
178 
179         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreeEvent, &sipCpp))
180         {
181              ::wxKeyEvent*sipRes;
182 
183             PyErr_Clear();
184 
185             Py_BEGIN_ALLOW_THREADS
186             sipRes = new  ::wxKeyEvent(sipCpp->GetKeyEvent());
187             Py_END_ALLOW_THREADS
188 
189             if (PyErr_Occurred())
190                 return 0;
191 
192             return sipConvertFromNewType(sipRes,sipType_wxKeyEvent,SIP_NULLPTR);
193         }
194     }
195 
196     /* Raise an exception if the arguments couldn't be parsed. */
197     sipNoMethod(sipParseErr, sipName_TreeEvent, sipName_GetKeyEvent, SIP_NULLPTR);
198 
199     return SIP_NULLPTR;
200 }
201 
202 
203 PyDoc_STRVAR(doc_wxTreeEvent_GetLabel, "GetLabel() -> String\n"
204 "\n"
205 "Returns the label if the event is a begin or end edit label event.");
206 
207 extern "C" {static PyObject *meth_wxTreeEvent_GetLabel(PyObject *, PyObject *);}
meth_wxTreeEvent_GetLabel(PyObject * sipSelf,PyObject * sipArgs)208 static PyObject *meth_wxTreeEvent_GetLabel(PyObject *sipSelf, PyObject *sipArgs)
209 {
210     PyObject *sipParseErr = SIP_NULLPTR;
211 
212     {
213         const  ::wxTreeEvent *sipCpp;
214 
215         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreeEvent, &sipCpp))
216         {
217              ::wxString*sipRes;
218 
219             PyErr_Clear();
220 
221             Py_BEGIN_ALLOW_THREADS
222             sipRes = new  ::wxString(sipCpp->GetLabel());
223             Py_END_ALLOW_THREADS
224 
225             if (PyErr_Occurred())
226                 return 0;
227 
228             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
229         }
230     }
231 
232     /* Raise an exception if the arguments couldn't be parsed. */
233     sipNoMethod(sipParseErr, sipName_TreeEvent, sipName_GetLabel, SIP_NULLPTR);
234 
235     return SIP_NULLPTR;
236 }
237 
238 
239 PyDoc_STRVAR(doc_wxTreeEvent_GetOldItem, "GetOldItem() -> TreeItemId\n"
240 "\n"
241 "Returns the old item index (valid for EVT_TREE_ITEM_CHANGING and\n"
242 "EVT_TREE_ITEM_CHANGED events).");
243 
244 extern "C" {static PyObject *meth_wxTreeEvent_GetOldItem(PyObject *, PyObject *);}
meth_wxTreeEvent_GetOldItem(PyObject * sipSelf,PyObject * sipArgs)245 static PyObject *meth_wxTreeEvent_GetOldItem(PyObject *sipSelf, PyObject *sipArgs)
246 {
247     PyObject *sipParseErr = SIP_NULLPTR;
248 
249     {
250         const  ::wxTreeEvent *sipCpp;
251 
252         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreeEvent, &sipCpp))
253         {
254              ::wxTreeItemId*sipRes;
255 
256             PyErr_Clear();
257 
258             Py_BEGIN_ALLOW_THREADS
259             sipRes = new  ::wxTreeItemId(sipCpp->GetOldItem());
260             Py_END_ALLOW_THREADS
261 
262             if (PyErr_Occurred())
263                 return 0;
264 
265             return sipConvertFromNewType(sipRes,sipType_wxTreeItemId,SIP_NULLPTR);
266         }
267     }
268 
269     /* Raise an exception if the arguments couldn't be parsed. */
270     sipNoMethod(sipParseErr, sipName_TreeEvent, sipName_GetOldItem, SIP_NULLPTR);
271 
272     return SIP_NULLPTR;
273 }
274 
275 
276 PyDoc_STRVAR(doc_wxTreeEvent_GetPoint, "GetPoint() -> Point\n"
277 "\n"
278 "Returns the position of the mouse pointer if the event is a drag or\n"
279 "menu-context event.");
280 
281 extern "C" {static PyObject *meth_wxTreeEvent_GetPoint(PyObject *, PyObject *);}
meth_wxTreeEvent_GetPoint(PyObject * sipSelf,PyObject * sipArgs)282 static PyObject *meth_wxTreeEvent_GetPoint(PyObject *sipSelf, PyObject *sipArgs)
283 {
284     PyObject *sipParseErr = SIP_NULLPTR;
285 
286     {
287         const  ::wxTreeEvent *sipCpp;
288 
289         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreeEvent, &sipCpp))
290         {
291              ::wxPoint*sipRes;
292 
293             PyErr_Clear();
294 
295             Py_BEGIN_ALLOW_THREADS
296             sipRes = new  ::wxPoint(sipCpp->GetPoint());
297             Py_END_ALLOW_THREADS
298 
299             if (PyErr_Occurred())
300                 return 0;
301 
302             return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
303         }
304     }
305 
306     /* Raise an exception if the arguments couldn't be parsed. */
307     sipNoMethod(sipParseErr, sipName_TreeEvent, sipName_GetPoint, SIP_NULLPTR);
308 
309     return SIP_NULLPTR;
310 }
311 
312 
313 PyDoc_STRVAR(doc_wxTreeEvent_IsEditCancelled, "IsEditCancelled() -> bool\n"
314 "\n"
315 "Returns true if the label edit was cancelled.");
316 
317 extern "C" {static PyObject *meth_wxTreeEvent_IsEditCancelled(PyObject *, PyObject *);}
meth_wxTreeEvent_IsEditCancelled(PyObject * sipSelf,PyObject * sipArgs)318 static PyObject *meth_wxTreeEvent_IsEditCancelled(PyObject *sipSelf, PyObject *sipArgs)
319 {
320     PyObject *sipParseErr = SIP_NULLPTR;
321 
322     {
323         const  ::wxTreeEvent *sipCpp;
324 
325         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreeEvent, &sipCpp))
326         {
327             bool sipRes;
328 
329             PyErr_Clear();
330 
331             Py_BEGIN_ALLOW_THREADS
332             sipRes = sipCpp->IsEditCancelled();
333             Py_END_ALLOW_THREADS
334 
335             if (PyErr_Occurred())
336                 return 0;
337 
338             return PyBool_FromLong(sipRes);
339         }
340     }
341 
342     /* Raise an exception if the arguments couldn't be parsed. */
343     sipNoMethod(sipParseErr, sipName_TreeEvent, sipName_IsEditCancelled, SIP_NULLPTR);
344 
345     return SIP_NULLPTR;
346 }
347 
348 
349 PyDoc_STRVAR(doc_wxTreeEvent_SetToolTip, "SetToolTip(tooltip)\n"
350 "\n"
351 "Set the tooltip for the item (valid for EVT_TREE_ITEM_GETTOOLTIP\n"
352 "events).");
353 
354 extern "C" {static PyObject *meth_wxTreeEvent_SetToolTip(PyObject *, PyObject *, PyObject *);}
meth_wxTreeEvent_SetToolTip(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)355 static PyObject *meth_wxTreeEvent_SetToolTip(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
356 {
357     PyObject *sipParseErr = SIP_NULLPTR;
358 
359     {
360         const  ::wxString* tooltip;
361         int tooltipState = 0;
362          ::wxTreeEvent *sipCpp;
363 
364         static const char *sipKwdList[] = {
365             sipName_tooltip,
366         };
367 
368         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxTreeEvent, &sipCpp, sipType_wxString,&tooltip, &tooltipState))
369         {
370             PyErr_Clear();
371 
372             Py_BEGIN_ALLOW_THREADS
373             sipCpp->SetToolTip(*tooltip);
374             Py_END_ALLOW_THREADS
375             sipReleaseType(const_cast< ::wxString *>(tooltip),sipType_wxString,tooltipState);
376 
377             if (PyErr_Occurred())
378                 return 0;
379 
380             Py_INCREF(Py_None);
381             return Py_None;
382         }
383     }
384 
385     /* Raise an exception if the arguments couldn't be parsed. */
386     sipNoMethod(sipParseErr, sipName_TreeEvent, sipName_SetToolTip, SIP_NULLPTR);
387 
388     return SIP_NULLPTR;
389 }
390 
391 
392 PyDoc_STRVAR(doc_wxTreeEvent_Clone, "Clone(self) -> Event");
393 
394 extern "C" {static PyObject *meth_wxTreeEvent_Clone(PyObject *, PyObject *);}
meth_wxTreeEvent_Clone(PyObject * sipSelf,PyObject * sipArgs)395 static PyObject *meth_wxTreeEvent_Clone(PyObject *sipSelf, PyObject *sipArgs)
396 {
397     PyObject *sipParseErr = SIP_NULLPTR;
398     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
399 
400     {
401         const  ::wxTreeEvent *sipCpp;
402 
403         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreeEvent, &sipCpp))
404         {
405              ::wxEvent*sipRes;
406 
407             PyErr_Clear();
408 
409             Py_BEGIN_ALLOW_THREADS
410             sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreeEvent::Clone() : sipCpp->Clone());
411             Py_END_ALLOW_THREADS
412 
413             if (PyErr_Occurred())
414                 return 0;
415 
416             return sipConvertFromNewType(sipRes,sipType_wxEvent,SIP_NULLPTR);
417         }
418     }
419 
420     /* Raise an exception if the arguments couldn't be parsed. */
421     sipNoMethod(sipParseErr, sipName_TreeEvent, sipName_Clone, doc_wxTreeEvent_Clone);
422 
423     return SIP_NULLPTR;
424 }
425 
426 
427 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
428 extern "C" {static void *cast_wxTreeEvent(void *, const sipTypeDef *);}
cast_wxTreeEvent(void * sipCppV,const sipTypeDef * targetType)429 static void *cast_wxTreeEvent(void *sipCppV, const sipTypeDef *targetType)
430 {
431      ::wxTreeEvent *sipCpp = reinterpret_cast< ::wxTreeEvent *>(sipCppV);
432 
433     if (targetType == sipType_wxNotifyEvent)
434         return static_cast< ::wxNotifyEvent *>(sipCpp);
435 
436     if (targetType == sipType_wxCommandEvent)
437         return static_cast< ::wxCommandEvent *>(sipCpp);
438 
439     if (targetType == sipType_wxEvent)
440         return static_cast< ::wxEvent *>(sipCpp);
441 
442     if (targetType == sipType_wxObject)
443         return static_cast< ::wxObject *>(sipCpp);
444 
445     return sipCppV;
446 }
447 
448 
449 /* Call the instance's destructor. */
450 extern "C" {static void release_wxTreeEvent(void *, int);}
release_wxTreeEvent(void * sipCppV,int sipState)451 static void release_wxTreeEvent(void *sipCppV, int sipState)
452 {
453     Py_BEGIN_ALLOW_THREADS
454 
455     if (sipState & SIP_DERIVED_CLASS)
456         delete reinterpret_cast<sipwxTreeEvent *>(sipCppV);
457     else
458         delete reinterpret_cast< ::wxTreeEvent *>(sipCppV);
459 
460     Py_END_ALLOW_THREADS
461 }
462 
463 
464 extern "C" {static void dealloc_wxTreeEvent(sipSimpleWrapper *);}
dealloc_wxTreeEvent(sipSimpleWrapper * sipSelf)465 static void dealloc_wxTreeEvent(sipSimpleWrapper *sipSelf)
466 {
467     if (sipIsDerivedClass(sipSelf))
468         reinterpret_cast<sipwxTreeEvent *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
469 
470     if (sipIsOwnedByPython(sipSelf))
471     {
472         release_wxTreeEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
473     }
474 }
475 
476 
477 extern "C" {static void *init_type_wxTreeEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxTreeEvent(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)478 static void *init_type_wxTreeEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
479 {
480     sipwxTreeEvent *sipCpp = SIP_NULLPTR;
481 
482     {
483          ::wxEventType commandType;
484          ::wxTreeCtrl* tree;
485         const  ::wxTreeItemId& itemdef = wxTreeItemId();
486         const  ::wxTreeItemId* item = &itemdef;
487 
488         static const char *sipKwdList[] = {
489             sipName_commandType,
490             sipName_tree,
491             sipName_item,
492         };
493 
494         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "iJ8|J9", &commandType, sipType_wxTreeCtrl, &tree, sipType_wxTreeItemId, &item))
495         {
496             PyErr_Clear();
497 
498             Py_BEGIN_ALLOW_THREADS
499             sipCpp = new sipwxTreeEvent(commandType,tree,*item);
500             Py_END_ALLOW_THREADS
501 
502             if (PyErr_Occurred())
503             {
504                 delete sipCpp;
505                 return SIP_NULLPTR;
506             }
507 
508             sipCpp->sipPySelf = sipSelf;
509 
510             return sipCpp;
511         }
512     }
513 
514     {
515         const  ::wxTreeEvent* a0;
516 
517         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_wxTreeEvent, &a0))
518         {
519             Py_BEGIN_ALLOW_THREADS
520             sipCpp = new sipwxTreeEvent(*a0);
521             Py_END_ALLOW_THREADS
522 
523             sipCpp->sipPySelf = sipSelf;
524 
525             return sipCpp;
526         }
527     }
528 
529     return SIP_NULLPTR;
530 }
531 
532 
533 /* Define this type's super-types. */
534 static sipEncodedTypeDef supers_wxTreeEvent[] = {{356, 255, 1}};
535 
536 
537 static PyMethodDef methods_wxTreeEvent[] = {
538     {SIP_MLNAME_CAST(sipName_Clone), meth_wxTreeEvent_Clone, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreeEvent_Clone)},
539     {SIP_MLNAME_CAST(sipName_GetItem), meth_wxTreeEvent_GetItem, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreeEvent_GetItem)},
540     {SIP_MLNAME_CAST(sipName_GetKeyCode), meth_wxTreeEvent_GetKeyCode, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreeEvent_GetKeyCode)},
541     {SIP_MLNAME_CAST(sipName_GetKeyEvent), meth_wxTreeEvent_GetKeyEvent, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreeEvent_GetKeyEvent)},
542     {SIP_MLNAME_CAST(sipName_GetLabel), meth_wxTreeEvent_GetLabel, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreeEvent_GetLabel)},
543     {SIP_MLNAME_CAST(sipName_GetOldItem), meth_wxTreeEvent_GetOldItem, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreeEvent_GetOldItem)},
544     {SIP_MLNAME_CAST(sipName_GetPoint), meth_wxTreeEvent_GetPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreeEvent_GetPoint)},
545     {SIP_MLNAME_CAST(sipName_IsEditCancelled), meth_wxTreeEvent_IsEditCancelled, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreeEvent_IsEditCancelled)},
546     {SIP_MLNAME_CAST(sipName_SetToolTip), SIP_MLMETH_CAST(meth_wxTreeEvent_SetToolTip), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreeEvent_SetToolTip)}
547 };
548 
549 sipVariableDef variables_wxTreeEvent[] = {
550     {PropertyVariable, sipName_Point, &methods_wxTreeEvent[6], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
551     {PropertyVariable, sipName_OldItem, &methods_wxTreeEvent[5], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
552     {PropertyVariable, sipName_Label, &methods_wxTreeEvent[4], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
553     {PropertyVariable, sipName_KeyEvent, &methods_wxTreeEvent[3], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
554     {PropertyVariable, sipName_KeyCode, &methods_wxTreeEvent[2], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
555     {PropertyVariable, sipName_Item, &methods_wxTreeEvent[1], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
556 };
557 
558 PyDoc_STRVAR(doc_wxTreeEvent, "TreeEvent(commandType, tree, item=TreeItemId())\n"
559 "\n"
560 "A tree event holds information about events associated with wxTreeCtrl\n"
561 "objects.");
562 
563 
564 sipClassTypeDef sipTypeDef__core_wxTreeEvent = {
565     {
566         -1,
567         SIP_NULLPTR,
568         SIP_NULLPTR,
569         SIP_TYPE_SCC|SIP_TYPE_CLASS,
570         sipNameNr_wxTreeEvent,
571         {SIP_NULLPTR},
572         SIP_NULLPTR
573     },
574     {
575         sipNameNr_TreeEvent,
576         {0, 0, 1},
577         9, methods_wxTreeEvent,
578         0, SIP_NULLPTR,
579         6, variables_wxTreeEvent,
580         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
581     },
582     doc_wxTreeEvent,
583     -1,
584     -1,
585     supers_wxTreeEvent,
586     SIP_NULLPTR,
587     init_type_wxTreeEvent,
588     SIP_NULLPTR,
589     SIP_NULLPTR,
590 #if PY_MAJOR_VERSION >= 3
591     SIP_NULLPTR,
592     SIP_NULLPTR,
593 #else
594     SIP_NULLPTR,
595     SIP_NULLPTR,
596     SIP_NULLPTR,
597     SIP_NULLPTR,
598 #endif
599     dealloc_wxTreeEvent,
600     SIP_NULLPTR,
601     SIP_NULLPTR,
602     SIP_NULLPTR,
603     release_wxTreeEvent,
604     cast_wxTreeEvent,
605     SIP_NULLPTR,
606     SIP_NULLPTR,
607     SIP_NULLPTR,
608     SIP_NULLPTR,
609     SIP_NULLPTR,
610     SIP_NULLPTR
611 };
612