Added correct PATH and SBOX_REDIRECT_IGNORE and PERL5LIB envs in rules for libwx...
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / Event.c
1 /*
2  * This file was generated automatically by ExtUtils::ParseXS version 2.2202 from the
3  * contents of Event.xs. Do not edit this file, edit Event.xs instead.
4  *
5  *      ANY CHANGES MADE HERE WILL BE LOST! 
6  *
7  */
8
9 /////////////////////////////////////////////////////////////////////////////
10 // Name:        Event.xs
11 // Purpose:     XS for Wx::EvtHandler, Wx::Event and derived classes
12 // Author:      Mattia Barbon
13 // Modified by:
14 // Created:     29/10/2000
15 // RCS-ID:      $Id: Event.xs 2700 2009-12-13 11:25:50Z mbarbon $
16 // Copyright:   (c) 2000-2009 Mattia Barbon
17 // Licence:     This program is free software; you can redistribute it and/or
18 //              modify it under the same terms as Perl itself
19 /////////////////////////////////////////////////////////////////////////////
20
21 #define PERL_NO_GET_CONTEXT
22
23 #include "cpp/wxapi.h"
24
25 #include <wx/event.h>
26 #include <wx/window.h>
27 #include <wx/dc.h>
28 #include <wx/menu.h>
29 #include <stdarg.h>
30
31 #include <wx/clntdata.h>
32
33 // re-include for client data
34 #include "cpp/helpers.h"
35
36 #undef THIS
37
38 #include "cpp/e_cback.h"
39 #include "cpp/e_cback.cpp"
40
41 #include "cpp/event.h"
42
43 WXPLI_BOOT_ONCE(Wx_Evt);
44 #define boot_Wx_Evt wxPli_boot_Wx_Evt
45
46 #ifndef PERL_UNUSED_VAR
47 #  define PERL_UNUSED_VAR(var) if (0) var = var
48 #endif
49
50 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
51 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
52
53 /* prototype to pass -Wmissing-prototypes */
54 STATIC void
55 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);
56
57 STATIC void
58 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
59 {
60     const GV *const gv = CvGV(cv);
61
62     PERL_ARGS_ASSERT_CROAK_XS_USAGE;
63
64     if (gv) {
65         const char *const gvname = GvNAME(gv);
66         const HV *const stash = GvSTASH(gv);
67         const char *const hvname = stash ? HvNAME(stash) : NULL;
68
69         if (hvname)
70             Perl_croak(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
71         else
72             Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
73     } else {
74         /* Pants. I don't think that it should be possible to get here. */
75         Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
76     }
77 }
78 #undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE
79
80 #ifdef PERL_IMPLICIT_CONTEXT
81 #define croak_xs_usage(a,b)     S_croak_xs_usage(aTHX_ a,b)
82 #else
83 #define croak_xs_usage          S_croak_xs_usage
84 #endif
85
86 #endif
87
88 /* NOTE: the prototype of newXSproto() is different in versions of perls,
89  * so we define a portable version of newXSproto()
90  */
91 #ifdef newXS_flags
92 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
93 #else
94 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
95 #endif /* !defined(newXS_flags) */
96
97
98 /* INCLUDE:  Including 'XS/EvtHandler.xs' from 'Event.xs' */
99
100
101 XS(XS_Wx__EvtHandler_new); /* prototype to pass -Wmissing-prototypes */
102 XS(XS_Wx__EvtHandler_new)
103 {
104 #ifdef dVAR
105     dVAR; dXSARGS;
106 #else
107     dXSARGS;
108 #endif
109     if (items != 1)
110        croak_xs_usage(cv,  "CLASS");
111     {
112         char *  CLASS = (char *)SvPV_nolen(ST(0));
113         wxEvtHandler *  RETVAL;
114     RETVAL = new wxEvtHandler();
115     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
116         ST(0) = sv_newmortal();
117     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
118
119     }
120     XSRETURN(1);
121 }
122
123
124 XS(XS_Wx__EvtHandler_AddPendingEvent); /* prototype to pass -Wmissing-prototypes */
125 XS(XS_Wx__EvtHandler_AddPendingEvent)
126 {
127 #ifdef dVAR
128     dVAR; dXSARGS;
129 #else
130     dXSARGS;
131 #endif
132     if (items != 2)
133        croak_xs_usage(cv,  "THIS, event");
134     {
135         wxEvent*    event = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Event" );
136         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
137     THIS->AddPendingEvent( *event );
138     }
139     XSRETURN_EMPTY;
140 }
141
142
143 XS(XS_Wx__EvtHandler_Connect); /* prototype to pass -Wmissing-prototypes */
144 XS(XS_Wx__EvtHandler_Connect)
145 {
146 #ifdef dVAR
147     dVAR; dXSARGS;
148 #else
149     dXSARGS;
150 #endif
151     if (items != 5)
152        croak_xs_usage(cv,  "THIS, id, lastid, type, method");
153     {
154         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(1) );
155         int     lastid = (int)SvIV(ST(2));
156         wxEventType     type = (wxEventType)SvIV(ST(3));
157         SV*     method = ST(4);
158         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
159     if( SvOK( method ) )
160     {
161         THIS->Connect( id, lastid, type,
162                        wxPliCastEvtHandler( &wxPliEventCallback::Handler ),
163                        new wxPliEventCallback( method, ST(0) ) );
164     }
165     else
166     {
167         THIS->Disconnect( id, lastid, type,
168                           wxPliCastEvtHandler( &wxPliEventCallback::Handler ),
169                           0 );
170     }
171     }
172     XSRETURN_EMPTY;
173 }
174
175
176 XS(XS_Wx__EvtHandler_Destroy); /* prototype to pass -Wmissing-prototypes */
177 XS(XS_Wx__EvtHandler_Destroy)
178 {
179 #ifdef dVAR
180     dVAR; dXSARGS;
181 #else
182     dXSARGS;
183 #endif
184     if (items != 1)
185        croak_xs_usage(cv,  "THIS");
186     {
187         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
188     delete THIS;
189     }
190     XSRETURN_EMPTY;
191 }
192
193
194 XS(XS_Wx__EvtHandler_Disconnect); /* prototype to pass -Wmissing-prototypes */
195 XS(XS_Wx__EvtHandler_Disconnect)
196 {
197 #ifdef dVAR
198     dVAR; dXSARGS;
199 #else
200     dXSARGS;
201 #endif
202     if (items != 4)
203        croak_xs_usage(cv,  "THIS, id, lastid, type");
204     {
205         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(1) );
206         int     lastid = (int)SvIV(ST(2));
207         wxEventType     type = (wxEventType)SvIV(ST(3));
208         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
209         bool    RETVAL;
210     RETVAL = THIS->Disconnect( id, lastid, type,
211         wxPliCastEvtHandler( &wxPliEventCallback::Handler ) );
212         ST(0) = boolSV(RETVAL);
213         sv_2mortal(ST(0));
214     }
215     XSRETURN(1);
216 }
217
218
219 XS(XS_Wx__EvtHandler_GetEvtHandlerEnabled); /* prototype to pass -Wmissing-prototypes */
220 XS(XS_Wx__EvtHandler_GetEvtHandlerEnabled)
221 {
222 #ifdef dVAR
223     dVAR; dXSARGS;
224 #else
225     dXSARGS;
226 #endif
227     if (items != 1)
228        croak_xs_usage(cv,  "THIS");
229     {
230         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
231         bool    RETVAL;
232
233         RETVAL = THIS->GetEvtHandlerEnabled();
234         ST(0) = boolSV(RETVAL);
235         sv_2mortal(ST(0));
236     }
237     XSRETURN(1);
238 }
239
240
241 XS(XS_Wx__EvtHandler_GetNextHandler); /* prototype to pass -Wmissing-prototypes */
242 XS(XS_Wx__EvtHandler_GetNextHandler)
243 {
244 #ifdef dVAR
245     dVAR; dXSARGS;
246 #else
247     dXSARGS;
248 #endif
249     if (items != 1)
250        croak_xs_usage(cv,  "THIS");
251     {
252         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
253         wxEvtHandler *  RETVAL;
254
255         RETVAL = THIS->GetNextHandler();
256         ST(0) = sv_newmortal();
257     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
258
259     }
260     XSRETURN(1);
261 }
262
263
264 XS(XS_Wx__EvtHandler_GetPreviousHandler); /* prototype to pass -Wmissing-prototypes */
265 XS(XS_Wx__EvtHandler_GetPreviousHandler)
266 {
267 #ifdef dVAR
268     dVAR; dXSARGS;
269 #else
270     dXSARGS;
271 #endif
272     if (items != 1)
273        croak_xs_usage(cv,  "THIS");
274     {
275         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
276         wxEvtHandler *  RETVAL;
277
278         RETVAL = THIS->GetPreviousHandler();
279         ST(0) = sv_newmortal();
280     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
281
282     }
283     XSRETURN(1);
284 }
285
286
287 XS(XS_Wx__EvtHandler_ProcessEvent); /* prototype to pass -Wmissing-prototypes */
288 XS(XS_Wx__EvtHandler_ProcessEvent)
289 {
290 #ifdef dVAR
291     dVAR; dXSARGS;
292 #else
293     dXSARGS;
294 #endif
295     if (items != 2)
296        croak_xs_usage(cv,  "THIS, event");
297     {
298         wxEvent*    event = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Event" );
299         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
300         bool    RETVAL;
301
302         RETVAL = THIS->ProcessEvent(*event);
303         ST(0) = boolSV(RETVAL);
304         sv_2mortal(ST(0));
305     }
306     XSRETURN(1);
307 }
308
309 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
310 #define XSubPPtmpAAAA 1
311
312
313 XS(XS_Wx__EvtHandler_SafelyProcessEvent); /* prototype to pass -Wmissing-prototypes */
314 XS(XS_Wx__EvtHandler_SafelyProcessEvent)
315 {
316 #ifdef dVAR
317     dVAR; dXSARGS;
318 #else
319     dXSARGS;
320 #endif
321     if (items != 2)
322        croak_xs_usage(cv,  "THIS, event");
323     {
324         wxEvent*    event = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Event" );
325         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
326         bool    RETVAL;
327
328         RETVAL = THIS->SafelyProcessEvent(*event);
329         ST(0) = boolSV(RETVAL);
330         sv_2mortal(ST(0));
331     }
332     XSRETURN(1);
333 }
334
335 #endif
336
337 XS(XS_Wx__EvtHandler_SetEvtHandlerEnabled); /* prototype to pass -Wmissing-prototypes */
338 XS(XS_Wx__EvtHandler_SetEvtHandlerEnabled)
339 {
340 #ifdef dVAR
341     dVAR; dXSARGS;
342 #else
343     dXSARGS;
344 #endif
345     if (items != 2)
346        croak_xs_usage(cv,  "THIS, enabled");
347     {
348         bool    enabled = (bool)SvTRUE(ST(1));
349         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
350
351         THIS->SetEvtHandlerEnabled(enabled);
352     }
353     XSRETURN_EMPTY;
354 }
355
356
357 XS(XS_Wx__EvtHandler_SetNextHandler); /* prototype to pass -Wmissing-prototypes */
358 XS(XS_Wx__EvtHandler_SetNextHandler)
359 {
360 #ifdef dVAR
361     dVAR; dXSARGS;
362 #else
363     dXSARGS;
364 #endif
365     if (items != 2)
366        croak_xs_usage(cv,  "THIS, handler");
367     {
368         wxEvtHandler*    handler = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::EvtHandler" );
369         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
370
371         THIS->SetNextHandler(handler);
372     }
373     XSRETURN_EMPTY;
374 }
375
376
377 XS(XS_Wx__EvtHandler_SetPreviousHandler); /* prototype to pass -Wmissing-prototypes */
378 XS(XS_Wx__EvtHandler_SetPreviousHandler)
379 {
380 #ifdef dVAR
381     dVAR; dXSARGS;
382 #else
383     dXSARGS;
384 #endif
385     if (items != 2)
386        croak_xs_usage(cv,  "THIS, handler");
387     {
388         wxEvtHandler*    handler = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::EvtHandler" );
389         wxEvtHandler *    THIS = (wxEvtHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EvtHandler" );
390
391         THIS->SetPreviousHandler(handler);
392     }
393     XSRETURN_EMPTY;
394 }
395
396
397 /* INCLUDE: Returning to 'Event.xs' from 'XS/EvtHandler.xs' */
398
399
400 XS(XS_Wx__Event_CLONE); /* prototype to pass -Wmissing-prototypes */
401 XS(XS_Wx__Event_CLONE)
402 {
403 #ifdef dVAR
404     dVAR; dXSARGS;
405 #else
406     dXSARGS;
407 #endif
408     if (items != 1)
409        croak_xs_usage(cv,  "CLASS");
410     {
411         char *  CLASS = (char *)SvPV_nolen(ST(0));
412     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
413     }
414     XSRETURN_EMPTY;
415 }
416
417
418 XS(XS_Wx__Event_DESTROY); /* prototype to pass -Wmissing-prototypes */
419 XS(XS_Wx__Event_DESTROY)
420 {
421 #ifdef dVAR
422     dVAR; dXSARGS;
423 #else
424     dXSARGS;
425 #endif
426     if (items != 1)
427        croak_xs_usage(cv,  "THIS");
428     {
429         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
430     wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ), THIS, ST(0) );
431     delete THIS;
432     }
433     XSRETURN_EMPTY;
434 }
435
436
437 XS(XS_Wx__Event_GetEventObject); /* prototype to pass -Wmissing-prototypes */
438 XS(XS_Wx__Event_GetEventObject)
439 {
440 #ifdef dVAR
441     dVAR; dXSARGS;
442 #else
443     dXSARGS;
444 #endif
445     if (items != 1)
446        croak_xs_usage(cv,  "THIS");
447     PERL_UNUSED_VAR(ax); /* -Wall */
448     SP -= items;
449     {
450         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
451     // to avoid problems with deletion, only windows are supported
452     wxObject* obj = THIS->GetEventObject();
453     wxWindow* win = wxDynamicCast( obj, wxWindow );
454
455     EXTEND( SP, 1 );
456     if(win == NULL)
457         PUSHs( &PL_sv_undef );
458     else
459         PUSHs( wxPli_object_2_sv( aTHX_ NEWSV( 0, 0 ), win ) );
460         PUTBACK;
461         return;
462     }
463 }
464
465
466 XS(XS_Wx__Event_GetEventType); /* prototype to pass -Wmissing-prototypes */
467 XS(XS_Wx__Event_GetEventType)
468 {
469 #ifdef dVAR
470     dVAR; dXSARGS;
471 #else
472     dXSARGS;
473 #endif
474     if (items != 1)
475        croak_xs_usage(cv,  "THIS");
476     {
477         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
478         wxEventType     RETVAL;
479         dXSTARG;
480
481         RETVAL = THIS->GetEventType();
482         XSprePUSH; PUSHi((IV)RETVAL);
483     }
484     XSRETURN(1);
485 }
486
487
488 XS(XS_Wx__Event_GetId); /* prototype to pass -Wmissing-prototypes */
489 XS(XS_Wx__Event_GetId)
490 {
491 #ifdef dVAR
492     dVAR; dXSARGS;
493 #else
494     dXSARGS;
495 #endif
496     if (items != 1)
497        croak_xs_usage(cv,  "THIS");
498     {
499         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
500         int     RETVAL;
501         dXSTARG;
502
503         RETVAL = THIS->GetId();
504         XSprePUSH; PUSHi((IV)RETVAL);
505     }
506     XSRETURN(1);
507 }
508
509
510 XS(XS_Wx__Event_GetSkipped); /* prototype to pass -Wmissing-prototypes */
511 XS(XS_Wx__Event_GetSkipped)
512 {
513 #ifdef dVAR
514     dVAR; dXSARGS;
515 #else
516     dXSARGS;
517 #endif
518     if (items != 1)
519        croak_xs_usage(cv,  "THIS");
520     {
521         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
522         bool    RETVAL;
523
524         RETVAL = THIS->GetSkipped();
525         ST(0) = boolSV(RETVAL);
526         sv_2mortal(ST(0));
527     }
528     XSRETURN(1);
529 }
530
531
532 XS(XS_Wx__Event_GetTimestamp); /* prototype to pass -Wmissing-prototypes */
533 XS(XS_Wx__Event_GetTimestamp)
534 {
535 #ifdef dVAR
536     dVAR; dXSARGS;
537 #else
538     dXSARGS;
539 #endif
540     if (items != 1)
541        croak_xs_usage(cv,  "THIS");
542     {
543         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
544         long    RETVAL;
545         dXSTARG;
546
547         RETVAL = THIS->GetTimestamp();
548         XSprePUSH; PUSHi((IV)RETVAL);
549     }
550     XSRETURN(1);
551 }
552
553
554 XS(XS_Wx__Event_SetEventType); /* prototype to pass -Wmissing-prototypes */
555 XS(XS_Wx__Event_SetEventType)
556 {
557 #ifdef dVAR
558     dVAR; dXSARGS;
559 #else
560     dXSARGS;
561 #endif
562     if (items != 2)
563        croak_xs_usage(cv,  "THIS, type");
564     {
565         wxEventType     type = (wxEventType)SvIV(ST(1));
566         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
567
568         THIS->SetEventType(type);
569     }
570     XSRETURN_EMPTY;
571 }
572
573
574 XS(XS_Wx__Event_SetEventObject); /* prototype to pass -Wmissing-prototypes */
575 XS(XS_Wx__Event_SetEventObject)
576 {
577 #ifdef dVAR
578     dVAR; dXSARGS;
579 #else
580     dXSARGS;
581 #endif
582     if (items != 2)
583        croak_xs_usage(cv,  "THIS, object");
584     {
585         wxObject*    object = (wxObject *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Object" );
586         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
587
588         THIS->SetEventObject(object);
589     }
590     XSRETURN_EMPTY;
591 }
592
593
594 XS(XS_Wx__Event_SetId); /* prototype to pass -Wmissing-prototypes */
595 XS(XS_Wx__Event_SetId)
596 {
597 #ifdef dVAR
598     dVAR; dXSARGS;
599 #else
600     dXSARGS;
601 #endif
602     if (items != 2)
603        croak_xs_usage(cv,  "THIS, id");
604     {
605         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(1) );
606         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
607
608         THIS->SetId(id);
609     }
610     XSRETURN_EMPTY;
611 }
612
613
614 XS(XS_Wx__Event_SetTimestamp); /* prototype to pass -Wmissing-prototypes */
615 XS(XS_Wx__Event_SetTimestamp)
616 {
617 #ifdef dVAR
618     dVAR; dXSARGS;
619 #else
620     dXSARGS;
621 #endif
622     if (items != 2)
623        croak_xs_usage(cv,  "THIS, timeStamp");
624     {
625         long    timeStamp = (long)SvIV(ST(1));
626         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
627
628         THIS->SetTimestamp(timeStamp);
629     }
630     XSRETURN_EMPTY;
631 }
632
633
634 XS(XS_Wx__Event_Skip); /* prototype to pass -Wmissing-prototypes */
635 XS(XS_Wx__Event_Skip)
636 {
637 #ifdef dVAR
638     dVAR; dXSARGS;
639 #else
640     dXSARGS;
641 #endif
642     if (items < 1 || items > 2)
643        croak_xs_usage(cv,  "THIS, skip = true");
644     {
645         bool    skip;
646         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
647
648         if (items < 2)
649             skip = true;
650         else {
651             skip = (bool)SvTRUE(ST(1));
652         }
653
654         THIS->Skip(skip);
655     }
656     XSRETURN_EMPTY;
657 }
658
659 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
660 #define XSubPPtmpAAAB 1
661
662
663 XS(XS_Wx__Event_ShouldPropagate); /* prototype to pass -Wmissing-prototypes */
664 XS(XS_Wx__Event_ShouldPropagate)
665 {
666 #ifdef dVAR
667     dVAR; dXSARGS;
668 #else
669     dXSARGS;
670 #endif
671     if (items != 1)
672        croak_xs_usage(cv,  "THIS");
673     {
674         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
675         bool    RETVAL;
676
677         RETVAL = THIS->ShouldPropagate();
678         ST(0) = boolSV(RETVAL);
679         sv_2mortal(ST(0));
680     }
681     XSRETURN(1);
682 }
683
684 #endif
685 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
686 #define XSubPPtmpAAAC 1
687
688
689 XS(XS_Wx__Event_StopPropagation); /* prototype to pass -Wmissing-prototypes */
690 XS(XS_Wx__Event_StopPropagation)
691 {
692 #ifdef dVAR
693     dVAR; dXSARGS;
694 #else
695     dXSARGS;
696 #endif
697     if (items != 1)
698        croak_xs_usage(cv,  "THIS");
699     {
700         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
701         int     RETVAL;
702         dXSTARG;
703
704         RETVAL = THIS->StopPropagation();
705         XSprePUSH; PUSHi((IV)RETVAL);
706     }
707     XSRETURN(1);
708 }
709
710
711 XS(XS_Wx__Event_ResumePropagation); /* prototype to pass -Wmissing-prototypes */
712 XS(XS_Wx__Event_ResumePropagation)
713 {
714 #ifdef dVAR
715     dVAR; dXSARGS;
716 #else
717     dXSARGS;
718 #endif
719     if (items != 2)
720        croak_xs_usage(cv,  "THIS, propagationLevel");
721     {
722         int     propagationLevel = (int)SvIV(ST(1));
723         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
724
725         THIS->ResumePropagation(propagationLevel);
726     }
727     XSRETURN_EMPTY;
728 }
729
730 #else
731 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
732 #define XSubPPtmpAAAD 1
733
734
735 XS(XS_Wx__Event_SetPropagate); /* prototype to pass -Wmissing-prototypes */
736 XS(XS_Wx__Event_SetPropagate)
737 {
738 #ifdef dVAR
739     dVAR; dXSARGS;
740 #else
741     dXSARGS;
742 #endif
743     if (items != 2)
744        croak_xs_usage(cv,  "THIS, doIt");
745     {
746         bool    doIt = (bool)SvTRUE(ST(1));
747         wxEvent *    THIS = (wxEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Event" );
748
749         THIS->SetPropagate(doIt);
750     }
751     XSRETURN_EMPTY;
752 }
753
754 #endif
755 #endif
756
757 XS(XS_Wx__CommandEvent_new); /* prototype to pass -Wmissing-prototypes */
758 XS(XS_Wx__CommandEvent_new)
759 {
760 #ifdef dVAR
761     dVAR; dXSARGS;
762 #else
763     dXSARGS;
764 #endif
765     if (items < 1 || items > 3)
766        croak_xs_usage(cv,  "CLASS, type = 0, id = 0");
767     {
768         wxEventType     type;
769         wxWindowID      id;
770         char *  CLASS = (char *)SvPV_nolen(ST(0));
771         wxCommandEvent *        RETVAL;
772
773         if (items < 2)
774             type = 0;
775         else {
776             type = (wxEventType)SvIV(ST(1));
777         }
778
779         if (items < 3)
780             id = 0;
781         else {
782     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
783         }
784
785         RETVAL = new wxCommandEvent(type, id);
786         ST(0) = sv_newmortal();
787     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
788     wxPli_thread_sv_register( aTHX_ "Wx::CommandEvent", RETVAL, ST(0) );
789
790     }
791     XSRETURN(1);
792 }
793
794
795 XS(XS_Wx__CommandEvent_GetClientData); /* prototype to pass -Wmissing-prototypes */
796 XS(XS_Wx__CommandEvent_GetClientData)
797 {
798 #ifdef dVAR
799     dVAR; dXSARGS;
800 #else
801     dXSARGS;
802 #endif
803     if (items != 1)
804        croak_xs_usage(cv,  "THIS");
805     {
806         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
807         Wx_UserDataCD * RETVAL;
808     RETVAL = (wxPliUserDataCD*)THIS->GetClientObject();
809     ST(0) = ( RETVAL == 0 ) ? &PL_sv_undef : RETVAL->GetData();
810     SvREFCNT_inc( ST(0) ); // xsubpp mortalizes it...
811
812         sv_2mortal(ST(0));
813     }
814     XSRETURN(1);
815 }
816
817
818 XS(XS_Wx__CommandEvent_GetExtraLong); /* prototype to pass -Wmissing-prototypes */
819 XS(XS_Wx__CommandEvent_GetExtraLong)
820 {
821 #ifdef dVAR
822     dVAR; dXSARGS;
823 #else
824     dXSARGS;
825 #endif
826     if (items != 1)
827        croak_xs_usage(cv,  "THIS");
828     {
829         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
830         long    RETVAL;
831         dXSTARG;
832
833         RETVAL = THIS->GetExtraLong();
834         XSprePUSH; PUSHi((IV)RETVAL);
835     }
836     XSRETURN(1);
837 }
838
839
840 XS(XS_Wx__CommandEvent_GetInt); /* prototype to pass -Wmissing-prototypes */
841 XS(XS_Wx__CommandEvent_GetInt)
842 {
843 #ifdef dVAR
844     dVAR; dXSARGS;
845 #else
846     dXSARGS;
847 #endif
848     if (items != 1)
849        croak_xs_usage(cv,  "THIS");
850     {
851         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
852         int     RETVAL;
853         dXSTARG;
854
855         RETVAL = THIS->GetInt();
856         XSprePUSH; PUSHi((IV)RETVAL);
857     }
858     XSRETURN(1);
859 }
860
861
862 XS(XS_Wx__CommandEvent_GetSelection); /* prototype to pass -Wmissing-prototypes */
863 XS(XS_Wx__CommandEvent_GetSelection)
864 {
865 #ifdef dVAR
866     dVAR; dXSARGS;
867 #else
868     dXSARGS;
869 #endif
870     if (items != 1)
871        croak_xs_usage(cv,  "THIS");
872     {
873         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
874         int     RETVAL;
875         dXSTARG;
876
877         RETVAL = THIS->GetSelection();
878         XSprePUSH; PUSHi((IV)RETVAL);
879     }
880     XSRETURN(1);
881 }
882
883
884 XS(XS_Wx__CommandEvent_GetString); /* prototype to pass -Wmissing-prototypes */
885 XS(XS_Wx__CommandEvent_GetString)
886 {
887 #ifdef dVAR
888     dVAR; dXSARGS;
889 #else
890     dXSARGS;
891 #endif
892     if (items != 1)
893        croak_xs_usage(cv,  "THIS");
894     {
895         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
896         wxString        RETVAL;
897
898         RETVAL = THIS->GetString();
899         ST(0) = sv_newmortal();
900     WXSTRING_OUTPUT( RETVAL, ST(0) );
901
902     }
903     XSRETURN(1);
904 }
905
906
907 XS(XS_Wx__CommandEvent_IsChecked); /* prototype to pass -Wmissing-prototypes */
908 XS(XS_Wx__CommandEvent_IsChecked)
909 {
910 #ifdef dVAR
911     dVAR; dXSARGS;
912 #else
913     dXSARGS;
914 #endif
915     if (items != 1)
916        croak_xs_usage(cv,  "THIS");
917     {
918         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
919         bool    RETVAL;
920
921         RETVAL = THIS->IsChecked();
922         ST(0) = boolSV(RETVAL);
923         sv_2mortal(ST(0));
924     }
925     XSRETURN(1);
926 }
927
928
929 XS(XS_Wx__CommandEvent_IsSelection); /* prototype to pass -Wmissing-prototypes */
930 XS(XS_Wx__CommandEvent_IsSelection)
931 {
932 #ifdef dVAR
933     dVAR; dXSARGS;
934 #else
935     dXSARGS;
936 #endif
937     if (items != 1)
938        croak_xs_usage(cv,  "THIS");
939     {
940         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
941         bool    RETVAL;
942
943         RETVAL = THIS->IsSelection();
944         ST(0) = boolSV(RETVAL);
945         sv_2mortal(ST(0));
946     }
947     XSRETURN(1);
948 }
949
950
951 XS(XS_Wx__CommandEvent_SetClientData); /* prototype to pass -Wmissing-prototypes */
952 XS(XS_Wx__CommandEvent_SetClientData)
953 {
954 #ifdef dVAR
955     dVAR; dXSARGS;
956 #else
957     dXSARGS;
958 #endif
959     if (items != 2)
960        croak_xs_usage(cv,  "THIS, data");
961     {
962         Wx_UserDataCD*  data;
963         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
964
965     if( SvOK( ST(1) ) )
966     {
967         data = new wxPliUserDataCD( ST(1) );
968     }
969     else
970         data = 0;
971     THIS->SetClientObject( data );
972     }
973     XSRETURN_EMPTY;
974 }
975
976
977 XS(XS_Wx__CommandEvent_SetExtraLong); /* prototype to pass -Wmissing-prototypes */
978 XS(XS_Wx__CommandEvent_SetExtraLong)
979 {
980 #ifdef dVAR
981     dVAR; dXSARGS;
982 #else
983     dXSARGS;
984 #endif
985     if (items != 2)
986        croak_xs_usage(cv,  "THIS, extraLong");
987     {
988         long    extraLong = (long)SvIV(ST(1));
989         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
990
991         THIS->SetExtraLong(extraLong);
992     }
993     XSRETURN_EMPTY;
994 }
995
996
997 XS(XS_Wx__CommandEvent_SetInt); /* prototype to pass -Wmissing-prototypes */
998 XS(XS_Wx__CommandEvent_SetInt)
999 {
1000 #ifdef dVAR
1001     dVAR; dXSARGS;
1002 #else
1003     dXSARGS;
1004 #endif
1005     if (items != 2)
1006        croak_xs_usage(cv,  "THIS, intCommand");
1007     {
1008         int     intCommand = (int)SvIV(ST(1));
1009         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
1010
1011         THIS->SetInt(intCommand);
1012     }
1013     XSRETURN_EMPTY;
1014 }
1015
1016
1017 XS(XS_Wx__CommandEvent_SetString); /* prototype to pass -Wmissing-prototypes */
1018 XS(XS_Wx__CommandEvent_SetString)
1019 {
1020 #ifdef dVAR
1021     dVAR; dXSARGS;
1022 #else
1023     dXSARGS;
1024 #endif
1025     if (items != 2)
1026        croak_xs_usage(cv,  "THIS, string");
1027     {
1028         wxString        string;
1029         wxCommandEvent *    THIS = (wxCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CommandEvent" );
1030
1031     WXSTRING_INPUT( string, wxString, ST(1) );
1032
1033         THIS->SetString(string);
1034     }
1035     XSRETURN_EMPTY;
1036 }
1037
1038
1039 XS(XS_Wx__ContextMenuEvent_new); /* prototype to pass -Wmissing-prototypes */
1040 XS(XS_Wx__ContextMenuEvent_new)
1041 {
1042 #ifdef dVAR
1043     dVAR; dXSARGS;
1044 #else
1045     dXSARGS;
1046 #endif
1047     if (items < 1 || items > 4)
1048        croak_xs_usage(cv,  "CLASS, type = 0, id = 0, pos = wxDefaultPosition");
1049     {
1050         wxEventType     type;
1051         wxWindowID      id;
1052         wxPoint pos;
1053         char *  CLASS = (char *)SvPV_nolen(ST(0));
1054         wxContextMenuEvent *    RETVAL;
1055
1056         if (items < 2)
1057             type = 0;
1058         else {
1059             type = (wxEventType)SvIV(ST(1));
1060         }
1061
1062         if (items < 3)
1063             id = 0;
1064         else {
1065     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
1066         }
1067
1068         if (items < 4)
1069             pos = wxDefaultPosition;
1070         else {
1071     pos = wxPli_sv_2_wxpoint( aTHX_ ST(3) );
1072         }
1073
1074         RETVAL = new wxContextMenuEvent(type, id, pos);
1075         ST(0) = sv_newmortal();
1076     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1077     wxPli_thread_sv_register( aTHX_ "Wx::ContextMenuEvent", RETVAL, ST(0) );
1078
1079     }
1080     XSRETURN(1);
1081 }
1082
1083
1084 XS(XS_Wx__ContextMenuEvent_GetPosition); /* prototype to pass -Wmissing-prototypes */
1085 XS(XS_Wx__ContextMenuEvent_GetPosition)
1086 {
1087 #ifdef dVAR
1088     dVAR; dXSARGS;
1089 #else
1090     dXSARGS;
1091 #endif
1092     if (items != 1)
1093        croak_xs_usage(cv,  "THIS");
1094     {
1095         wxContextMenuEvent *    THIS = (wxContextMenuEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ContextMenuEvent" );
1096         wxPoint RETVAL;
1097
1098         RETVAL = THIS->GetPosition();
1099         ST(0) = sv_newmortal();
1100     wxPli_non_object_2_sv( aTHX_ ST(0), new wxPoint(RETVAL), "Wx::Point" );
1101
1102     }
1103     XSRETURN(1);
1104 }
1105
1106
1107 XS(XS_Wx__ContextMenuEvent_SetPosition); /* prototype to pass -Wmissing-prototypes */
1108 XS(XS_Wx__ContextMenuEvent_SetPosition)
1109 {
1110 #ifdef dVAR
1111     dVAR; dXSARGS;
1112 #else
1113     dXSARGS;
1114 #endif
1115     if (items != 2)
1116        croak_xs_usage(cv,  "THIS, pos");
1117     {
1118         wxPoint    pos = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
1119         wxContextMenuEvent *    THIS = (wxContextMenuEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ContextMenuEvent" );
1120
1121         THIS->SetPosition(pos);
1122     }
1123     XSRETURN_EMPTY;
1124 }
1125
1126
1127 XS(XS_Wx__PlEvent_new); /* prototype to pass -Wmissing-prototypes */
1128 XS(XS_Wx__PlEvent_new)
1129 {
1130 #ifdef dVAR
1131     dVAR; dXSARGS;
1132 #else
1133     dXSARGS;
1134 #endif
1135     if (items != 3)
1136        croak_xs_usage(cv,  "CLASS, type, id");
1137     {
1138         wxEventType     type = (wxEventType)SvIV(ST(1));
1139         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(2) );
1140         char *  CLASS = (char *)SvPV_nolen(ST(0));
1141         SV *    RETVAL;
1142     wxPlEvent* THIS = new wxPlEvent( CLASS, type, id );
1143     RETVAL = newRV_noinc( SvRV( THIS->m_callback.GetSelf() ) );
1144     wxPli_thread_sv_register( aTHX_ "Wx::PlEvent", THIS, RETVAL );
1145         ST(0) = RETVAL;
1146         sv_2mortal(ST(0));
1147     }
1148     XSRETURN(1);
1149 }
1150
1151
1152 XS(XS_Wx__PlEvent_DESTROY); /* prototype to pass -Wmissing-prototypes */
1153 XS(XS_Wx__PlEvent_DESTROY)
1154 {
1155 #ifdef dVAR
1156     dVAR; dXSARGS;
1157 #else
1158     dXSARGS;
1159 #endif
1160     if (items != 1)
1161        croak_xs_usage(cv,  "THIS");
1162     {
1163         wxPlEvent *    THIS = (wxPlEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlEvent" );
1164     wxPli_thread_sv_unregister( aTHX_ "Wx::PlEvent", THIS, ST(0) );
1165     if( THIS && wxPli_object_is_deleteable( aTHX_ ST(0) ) )
1166     {
1167         THIS->m_callback.DeleteSelf( true );
1168         delete THIS;
1169     }
1170     }
1171     XSRETURN_EMPTY;
1172 }
1173
1174
1175 XS(XS_Wx__PlCommandEvent_new); /* prototype to pass -Wmissing-prototypes */
1176 XS(XS_Wx__PlCommandEvent_new)
1177 {
1178 #ifdef dVAR
1179     dVAR; dXSARGS;
1180 #else
1181     dXSARGS;
1182 #endif
1183     if (items != 3)
1184        croak_xs_usage(cv,  "CLASS, type, id");
1185     {
1186         wxEventType     type = (wxEventType)SvIV(ST(1));
1187         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(2) );
1188         char *  CLASS = (char *)SvPV_nolen(ST(0));
1189         SV *    RETVAL;
1190     wxPlCommandEvent* THIS = new wxPlCommandEvent( CLASS, type, id );
1191     RETVAL = newRV_noinc( SvRV( THIS->m_callback.GetSelf() ) );
1192     wxPli_thread_sv_register( aTHX_ "Wx::PlCommandEvent", THIS, RETVAL );
1193         ST(0) = RETVAL;
1194         sv_2mortal(ST(0));
1195     }
1196     XSRETURN(1);
1197 }
1198
1199
1200 XS(XS_Wx__PlCommandEvent_DESTROY); /* prototype to pass -Wmissing-prototypes */
1201 XS(XS_Wx__PlCommandEvent_DESTROY)
1202 {
1203 #ifdef dVAR
1204     dVAR; dXSARGS;
1205 #else
1206     dXSARGS;
1207 #endif
1208     if (items != 1)
1209        croak_xs_usage(cv,  "THIS");
1210     {
1211         wxPlCommandEvent *    THIS = (wxPlCommandEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlCommandEvent" );
1212     wxPli_thread_sv_unregister( aTHX_ "Wx::PlCommandEvent", THIS, ST(0) );
1213     if( THIS && wxPli_object_is_deleteable( aTHX_ ST(0) ) )
1214     {
1215         THIS->m_callback.DeleteSelf( true );
1216         delete THIS;
1217     }
1218     }
1219     XSRETURN_EMPTY;
1220 }
1221
1222
1223 XS(XS_Wx__PlThreadEvent_new); /* prototype to pass -Wmissing-prototypes */
1224 XS(XS_Wx__PlThreadEvent_new)
1225 {
1226 #ifdef dVAR
1227     dVAR; dXSARGS;
1228 #else
1229     dXSARGS;
1230 #endif
1231     if (items != 4)
1232        croak_xs_usage(cv,  "CLASS, type, id, data");
1233     {
1234         wxEventType     type = (wxEventType)SvIV(ST(1));
1235         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(2) );
1236         SV*     data = ST(3);
1237         char *  CLASS = (char *)SvPV_nolen(ST(0));
1238         wxPlThreadEvent *       RETVAL;
1239     RETVAL = new wxPlThreadEvent( aTHX_ CLASS, type, id, data );
1240         ST(0) = sv_newmortal();
1241     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1242     wxPli_thread_sv_register( aTHX_ "Wx::PlThreadEvent", RETVAL, ST(0) );
1243
1244     }
1245     XSRETURN(1);
1246 }
1247
1248
1249 XS(XS_Wx__PlThreadEvent__GetData); /* prototype to pass -Wmissing-prototypes */
1250 XS(XS_Wx__PlThreadEvent__GetData)
1251 {
1252 #ifdef dVAR
1253     dVAR; dXSARGS;
1254 #else
1255     dXSARGS;
1256 #endif
1257     if (items != 1)
1258        croak_xs_usage(cv,  "THIS");
1259     {
1260         wxPlThreadEvent *    THIS = (wxPlThreadEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlThreadEvent" );
1261         int     RETVAL;
1262         dXSTARG;
1263     RETVAL = THIS ? THIS->_GetData() : 0;
1264         XSprePUSH; PUSHi((IV)RETVAL);
1265     }
1266     XSRETURN(1);
1267 }
1268
1269
1270 XS(XS_Wx__PlThreadEvent_GetData); /* prototype to pass -Wmissing-prototypes */
1271 XS(XS_Wx__PlThreadEvent_GetData)
1272 {
1273 #ifdef dVAR
1274     dVAR; dXSARGS;
1275 #else
1276     dXSARGS;
1277 #endif
1278     if (items != 1)
1279        croak_xs_usage(cv,  "THIS");
1280     {
1281         wxPlThreadEvent *    THIS = (wxPlThreadEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlThreadEvent" );
1282         SV *    RETVAL;
1283     RETVAL = THIS ? THIS->GetData() : &PL_sv_undef;
1284         ST(0) = RETVAL;
1285         sv_2mortal(ST(0));
1286     }
1287     XSRETURN(1);
1288 }
1289
1290
1291 XS(XS_Wx__PlThreadEvent_SetStash); /* prototype to pass -Wmissing-prototypes */
1292 XS(XS_Wx__PlThreadEvent_SetStash)
1293 {
1294 #ifdef dVAR
1295     dVAR; dXSARGS;
1296 #else
1297     dXSARGS;
1298 #endif
1299     if (items != 1)
1300        croak_xs_usage(cv,  "hv_ref");
1301     {
1302         SV*     hv_ref = ST(0);
1303     wxPlThreadEvent::SetStash( hv_ref );
1304     }
1305     XSRETURN_EMPTY;
1306 }
1307
1308
1309 XS(XS_Wx__ActivateEvent_new); /* prototype to pass -Wmissing-prototypes */
1310 XS(XS_Wx__ActivateEvent_new)
1311 {
1312 #ifdef dVAR
1313     dVAR; dXSARGS;
1314 #else
1315     dXSARGS;
1316 #endif
1317     if (items < 1 || items > 4)
1318        croak_xs_usage(cv,  "CLASS, type = 0, active = true, id = 0");
1319     {
1320         wxEventType     type;
1321         bool    active;
1322         wxWindowID      id;
1323         char *  CLASS = (char *)SvPV_nolen(ST(0));
1324         wxActivateEvent *       RETVAL;
1325
1326         if (items < 2)
1327             type = 0;
1328         else {
1329             type = (wxEventType)SvIV(ST(1));
1330         }
1331
1332         if (items < 3)
1333             active = true;
1334         else {
1335             active = (bool)SvTRUE(ST(2));
1336         }
1337
1338         if (items < 4)
1339             id = 0;
1340         else {
1341     id = wxPli_get_wxwindowid( aTHX_ ST(3) );
1342         }
1343
1344         RETVAL = new wxActivateEvent(type, active, id);
1345         ST(0) = sv_newmortal();
1346     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1347     wxPli_thread_sv_register( aTHX_ "Wx::ActivateEvent", RETVAL, ST(0) );
1348
1349     }
1350     XSRETURN(1);
1351 }
1352
1353
1354 XS(XS_Wx__ActivateEvent_GetActive); /* prototype to pass -Wmissing-prototypes */
1355 XS(XS_Wx__ActivateEvent_GetActive)
1356 {
1357 #ifdef dVAR
1358     dVAR; dXSARGS;
1359 #else
1360     dXSARGS;
1361 #endif
1362     if (items != 1)
1363        croak_xs_usage(cv,  "THIS");
1364     {
1365         wxActivateEvent *    THIS = (wxActivateEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ActivateEvent" );
1366         bool    RETVAL;
1367
1368         RETVAL = THIS->GetActive();
1369         ST(0) = boolSV(RETVAL);
1370         sv_2mortal(ST(0));
1371     }
1372     XSRETURN(1);
1373 }
1374
1375
1376 XS(XS_Wx__CloseEvent_new); /* prototype to pass -Wmissing-prototypes */
1377 XS(XS_Wx__CloseEvent_new)
1378 {
1379 #ifdef dVAR
1380     dVAR; dXSARGS;
1381 #else
1382     dXSARGS;
1383 #endif
1384     if (items < 1 || items > 3)
1385        croak_xs_usage(cv,  "CLASS, commandEventType = 0, id = 0");
1386     {
1387         wxEventType     commandEventType;
1388         wxWindowID      id;
1389         char *  CLASS = (char *)SvPV_nolen(ST(0));
1390         wxCloseEvent *  RETVAL;
1391
1392         if (items < 2)
1393             commandEventType = 0;
1394         else {
1395             commandEventType = (wxEventType)SvIV(ST(1));
1396         }
1397
1398         if (items < 3)
1399             id = 0;
1400         else {
1401     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
1402         }
1403
1404         RETVAL = new wxCloseEvent(commandEventType, id);
1405         ST(0) = sv_newmortal();
1406     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1407     wxPli_thread_sv_register( aTHX_ "Wx::CloseEvent", RETVAL, ST(0) );
1408
1409     }
1410     XSRETURN(1);
1411 }
1412
1413
1414 XS(XS_Wx__CloseEvent_CanVeto); /* prototype to pass -Wmissing-prototypes */
1415 XS(XS_Wx__CloseEvent_CanVeto)
1416 {
1417 #ifdef dVAR
1418     dVAR; dXSARGS;
1419 #else
1420     dXSARGS;
1421 #endif
1422     if (items != 1)
1423        croak_xs_usage(cv,  "THIS");
1424     {
1425         wxCloseEvent *    THIS = (wxCloseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CloseEvent" );
1426         bool    RETVAL;
1427
1428         RETVAL = THIS->CanVeto();
1429         ST(0) = boolSV(RETVAL);
1430         sv_2mortal(ST(0));
1431     }
1432     XSRETURN(1);
1433 }
1434
1435
1436 XS(XS_Wx__CloseEvent_GetLoggingOff); /* prototype to pass -Wmissing-prototypes */
1437 XS(XS_Wx__CloseEvent_GetLoggingOff)
1438 {
1439 #ifdef dVAR
1440     dVAR; dXSARGS;
1441 #else
1442     dXSARGS;
1443 #endif
1444     if (items != 1)
1445        croak_xs_usage(cv,  "THIS");
1446     {
1447         wxCloseEvent *    THIS = (wxCloseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CloseEvent" );
1448         bool    RETVAL;
1449
1450         RETVAL = THIS->GetLoggingOff();
1451         ST(0) = boolSV(RETVAL);
1452         sv_2mortal(ST(0));
1453     }
1454     XSRETURN(1);
1455 }
1456
1457
1458 XS(XS_Wx__CloseEvent_SetCanVeto); /* prototype to pass -Wmissing-prototypes */
1459 XS(XS_Wx__CloseEvent_SetCanVeto)
1460 {
1461 #ifdef dVAR
1462     dVAR; dXSARGS;
1463 #else
1464     dXSARGS;
1465 #endif
1466     if (items != 2)
1467        croak_xs_usage(cv,  "THIS, canVeto");
1468     {
1469         bool    canVeto = (bool)SvTRUE(ST(1));
1470         wxCloseEvent *    THIS = (wxCloseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CloseEvent" );
1471
1472         THIS->SetCanVeto(canVeto);
1473     }
1474     XSRETURN_EMPTY;
1475 }
1476
1477
1478 XS(XS_Wx__CloseEvent_SetLoggingOff); /* prototype to pass -Wmissing-prototypes */
1479 XS(XS_Wx__CloseEvent_SetLoggingOff)
1480 {
1481 #ifdef dVAR
1482     dVAR; dXSARGS;
1483 #else
1484     dXSARGS;
1485 #endif
1486     if (items != 2)
1487        croak_xs_usage(cv,  "THIS, loggingOff");
1488     {
1489         bool    loggingOff = (bool)SvTRUE(ST(1));
1490         wxCloseEvent *    THIS = (wxCloseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CloseEvent" );
1491
1492         THIS->SetLoggingOff(loggingOff);
1493     }
1494     XSRETURN_EMPTY;
1495 }
1496
1497
1498 XS(XS_Wx__CloseEvent_Veto); /* prototype to pass -Wmissing-prototypes */
1499 XS(XS_Wx__CloseEvent_Veto)
1500 {
1501 #ifdef dVAR
1502     dVAR; dXSARGS;
1503 #else
1504     dXSARGS;
1505 #endif
1506     if (items < 1 || items > 2)
1507        croak_xs_usage(cv,  "THIS, veto = true");
1508     {
1509         bool    veto;
1510         wxCloseEvent *    THIS = (wxCloseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::CloseEvent" );
1511
1512         if (items < 2)
1513             veto = true;
1514         else {
1515             veto = (bool)SvTRUE(ST(1));
1516         }
1517
1518         THIS->Veto(veto);
1519     }
1520     XSRETURN_EMPTY;
1521 }
1522
1523
1524 XS(XS_Wx__EraseEvent_new); /* prototype to pass -Wmissing-prototypes */
1525 XS(XS_Wx__EraseEvent_new)
1526 {
1527 #ifdef dVAR
1528     dVAR; dXSARGS;
1529 #else
1530     dXSARGS;
1531 #endif
1532     if (items < 1 || items > 3)
1533        croak_xs_usage(cv,  "CLASS, id = 0, dc = 0");
1534     {
1535         wxWindowID      id;
1536         wxDC*   dc;
1537         char *  CLASS = (char *)SvPV_nolen(ST(0));
1538         wxEraseEvent *  RETVAL;
1539
1540         if (items < 2)
1541             id = 0;
1542         else {
1543     id = wxPli_get_wxwindowid( aTHX_ ST(1) );
1544         }
1545
1546         if (items < 3)
1547             dc = 0;
1548         else {
1549     dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::DC" );
1550         }
1551
1552         RETVAL = new wxEraseEvent(id, dc);
1553         ST(0) = sv_newmortal();
1554     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1555     wxPli_thread_sv_register( aTHX_ "Wx::EraseEvent", RETVAL, ST(0) );
1556
1557     }
1558     XSRETURN(1);
1559 }
1560
1561
1562 XS(XS_Wx__EraseEvent_GetDC); /* prototype to pass -Wmissing-prototypes */
1563 XS(XS_Wx__EraseEvent_GetDC)
1564 {
1565 #ifdef dVAR
1566     dVAR; dXSARGS;
1567 #else
1568     dXSARGS;
1569 #endif
1570     if (items != 1)
1571        croak_xs_usage(cv,  "THIS");
1572     {
1573         wxEraseEvent *    THIS = (wxEraseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::EraseEvent" );
1574         wxDC *  RETVAL;
1575
1576         RETVAL = THIS->GetDC();
1577         ST(0) = sv_newmortal();
1578     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1579     wxPli_thread_sv_register( aTHX_ "Wx::DC", RETVAL, ST(0) );
1580
1581     wxPli_object_set_deleteable( aTHX_ ST(0), false );
1582     }
1583     XSRETURN(1);
1584 }
1585
1586
1587 XS(XS_Wx__FocusEvent_new); /* prototype to pass -Wmissing-prototypes */
1588 XS(XS_Wx__FocusEvent_new)
1589 {
1590 #ifdef dVAR
1591     dVAR; dXSARGS;
1592 #else
1593     dXSARGS;
1594 #endif
1595     if (items < 1 || items > 3)
1596        croak_xs_usage(cv,  "CLASS, eventType = 0, id = 0");
1597     {
1598         wxEventType     eventType;
1599         wxWindowID      id;
1600         char *  CLASS = (char *)SvPV_nolen(ST(0));
1601         wxFocusEvent *  RETVAL;
1602
1603         if (items < 2)
1604             eventType = 0;
1605         else {
1606             eventType = (wxEventType)SvIV(ST(1));
1607         }
1608
1609         if (items < 3)
1610             id = 0;
1611         else {
1612     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
1613         }
1614
1615         RETVAL = new wxFocusEvent(eventType, id);
1616         ST(0) = sv_newmortal();
1617     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1618     wxPli_thread_sv_register( aTHX_ "Wx::FocusEvent", RETVAL, ST(0) );
1619
1620     }
1621     XSRETURN(1);
1622 }
1623
1624
1625 XS(XS_Wx__FocusEvent_GetWindow); /* prototype to pass -Wmissing-prototypes */
1626 XS(XS_Wx__FocusEvent_GetWindow)
1627 {
1628 #ifdef dVAR
1629     dVAR; dXSARGS;
1630 #else
1631     dXSARGS;
1632 #endif
1633     if (items != 1)
1634        croak_xs_usage(cv,  "THIS");
1635     {
1636         wxFocusEvent *    THIS = (wxFocusEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FocusEvent" );
1637         wxWindow *      RETVAL;
1638
1639         RETVAL = THIS->GetWindow();
1640         ST(0) = sv_newmortal();
1641     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1642
1643     }
1644     XSRETURN(1);
1645 }
1646
1647
1648 XS(XS_Wx__IconizeEvent_Iconized); /* prototype to pass -Wmissing-prototypes */
1649 XS(XS_Wx__IconizeEvent_Iconized)
1650 {
1651 #ifdef dVAR
1652     dVAR; dXSARGS;
1653 #else
1654     dXSARGS;
1655 #endif
1656     if (items != 1)
1657        croak_xs_usage(cv,  "THIS");
1658     {
1659         wxIconizeEvent *    THIS = (wxIconizeEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::IconizeEvent" );
1660         bool    RETVAL;
1661 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
1662     RETVAL = THIS->Iconized();
1663 #else
1664     RETVAL = THIS->IsIconized();
1665 #endif
1666         ST(0) = boolSV(RETVAL);
1667         sv_2mortal(ST(0));
1668     }
1669     XSRETURN(1);
1670 }
1671
1672
1673 XS(XS_Wx__IconizeEvent_IsIconized); /* prototype to pass -Wmissing-prototypes */
1674 XS(XS_Wx__IconizeEvent_IsIconized)
1675 {
1676 #ifdef dVAR
1677     dVAR; dXSARGS;
1678 #else
1679     dXSARGS;
1680 #endif
1681     if (items != 1)
1682        croak_xs_usage(cv,  "THIS");
1683     {
1684         wxIconizeEvent *    THIS = (wxIconizeEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::IconizeEvent" );
1685         bool    RETVAL;
1686 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
1687     RETVAL = THIS->Iconized();
1688 #else
1689     RETVAL = THIS->IsIconized();
1690 #endif
1691         ST(0) = boolSV(RETVAL);
1692         sv_2mortal(ST(0));
1693     }
1694     XSRETURN(1);
1695 }
1696
1697
1698 XS(XS_Wx__KeyEvent_new); /* prototype to pass -Wmissing-prototypes */
1699 XS(XS_Wx__KeyEvent_new)
1700 {
1701 #ifdef dVAR
1702     dVAR; dXSARGS;
1703 #else
1704     dXSARGS;
1705 #endif
1706     if (items != 2)
1707        croak_xs_usage(cv,  "CLASS, keyEventType");
1708     {
1709         wxEventType     keyEventType = (wxEventType)SvIV(ST(1));
1710         char *  CLASS = (char *)SvPV_nolen(ST(0));
1711         wxKeyEvent *    RETVAL;
1712
1713         RETVAL = new wxKeyEvent(keyEventType);
1714         ST(0) = sv_newmortal();
1715     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1716     wxPli_thread_sv_register( aTHX_ "Wx::KeyEvent", RETVAL, ST(0) );
1717
1718     }
1719     XSRETURN(1);
1720 }
1721
1722
1723 XS(XS_Wx__KeyEvent_AltDown); /* prototype to pass -Wmissing-prototypes */
1724 XS(XS_Wx__KeyEvent_AltDown)
1725 {
1726 #ifdef dVAR
1727     dVAR; dXSARGS;
1728 #else
1729     dXSARGS;
1730 #endif
1731     if (items != 1)
1732        croak_xs_usage(cv,  "THIS");
1733     {
1734         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1735         bool    RETVAL;
1736
1737         RETVAL = THIS->AltDown();
1738         ST(0) = boolSV(RETVAL);
1739         sv_2mortal(ST(0));
1740     }
1741     XSRETURN(1);
1742 }
1743
1744 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
1745 #define XSubPPtmpAAAE 1
1746
1747
1748 XS(XS_Wx__KeyEvent_CmdDown); /* prototype to pass -Wmissing-prototypes */
1749 XS(XS_Wx__KeyEvent_CmdDown)
1750 {
1751 #ifdef dVAR
1752     dVAR; dXSARGS;
1753 #else
1754     dXSARGS;
1755 #endif
1756     if (items != 1)
1757        croak_xs_usage(cv,  "THIS");
1758     {
1759         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1760         bool    RETVAL;
1761
1762         RETVAL = THIS->CmdDown();
1763         ST(0) = boolSV(RETVAL);
1764         sv_2mortal(ST(0));
1765     }
1766     XSRETURN(1);
1767 }
1768
1769 #endif
1770
1771 XS(XS_Wx__KeyEvent_ControlDown); /* prototype to pass -Wmissing-prototypes */
1772 XS(XS_Wx__KeyEvent_ControlDown)
1773 {
1774 #ifdef dVAR
1775     dVAR; dXSARGS;
1776 #else
1777     dXSARGS;
1778 #endif
1779     if (items != 1)
1780        croak_xs_usage(cv,  "THIS");
1781     {
1782         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1783         bool    RETVAL;
1784
1785         RETVAL = THIS->ControlDown();
1786         ST(0) = boolSV(RETVAL);
1787         sv_2mortal(ST(0));
1788     }
1789     XSRETURN(1);
1790 }
1791
1792
1793 XS(XS_Wx__KeyEvent_GetKeyCode); /* prototype to pass -Wmissing-prototypes */
1794 XS(XS_Wx__KeyEvent_GetKeyCode)
1795 {
1796 #ifdef dVAR
1797     dVAR; dXSARGS;
1798 #else
1799     dXSARGS;
1800 #endif
1801     if (items != 1)
1802        croak_xs_usage(cv,  "THIS");
1803     {
1804         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1805         int     RETVAL;
1806         dXSTARG;
1807
1808         RETVAL = THIS->GetKeyCode();
1809         XSprePUSH; PUSHi((IV)RETVAL);
1810     }
1811     XSRETURN(1);
1812 }
1813
1814 #ifdef wxHAS_RAW_KEY_CODES
1815 #define XSubPPtmpAAAF 1
1816
1817
1818 XS(XS_Wx__KeyEvent_GetRawKeyCode); /* prototype to pass -Wmissing-prototypes */
1819 XS(XS_Wx__KeyEvent_GetRawKeyCode)
1820 {
1821 #ifdef dVAR
1822     dVAR; dXSARGS;
1823 #else
1824     dXSARGS;
1825 #endif
1826     if (items != 1)
1827        croak_xs_usage(cv,  "THIS");
1828     {
1829         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1830         int     RETVAL;
1831         dXSTARG;
1832
1833         RETVAL = THIS->GetRawKeyCode();
1834         XSprePUSH; PUSHi((IV)RETVAL);
1835     }
1836     XSRETURN(1);
1837 }
1838
1839 #endif
1840 #if wxUSE_UNICODE && WXPERL_W_VERSION_GE( 2, 5, 3 )
1841 #define XSubPPtmpAAAG 1
1842
1843
1844 XS(XS_Wx__KeyEvent_GetUnicodeKey); /* prototype to pass -Wmissing-prototypes */
1845 XS(XS_Wx__KeyEvent_GetUnicodeKey)
1846 {
1847 #ifdef dVAR
1848     dVAR; dXSARGS;
1849 #else
1850     dXSARGS;
1851 #endif
1852     if (items != 1)
1853        croak_xs_usage(cv,  "THIS");
1854     {
1855         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1856         wxChar  RETVAL;
1857         dXSTARG;
1858
1859         RETVAL = THIS->GetUnicodeKey();
1860         XSprePUSH; PUSHi((IV)RETVAL);
1861     }
1862     XSRETURN(1);
1863 }
1864
1865 #endif 
1866 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
1867 #define XSubPPtmpAAAH 1
1868
1869
1870 XS(XS_Wx__KeyEvent_GetModifiers); /* prototype to pass -Wmissing-prototypes */
1871 XS(XS_Wx__KeyEvent_GetModifiers)
1872 {
1873 #ifdef dVAR
1874     dVAR; dXSARGS;
1875 #else
1876     dXSARGS;
1877 #endif
1878     if (items != 1)
1879        croak_xs_usage(cv,  "THIS");
1880     {
1881         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1882         int     RETVAL;
1883         dXSTARG;
1884
1885         RETVAL = THIS->GetModifiers();
1886         XSprePUSH; PUSHi((IV)RETVAL);
1887     }
1888     XSRETURN(1);
1889 }
1890
1891 #endif
1892
1893 XS(XS_Wx__KeyEvent_GetX); /* prototype to pass -Wmissing-prototypes */
1894 XS(XS_Wx__KeyEvent_GetX)
1895 {
1896 #ifdef dVAR
1897     dVAR; dXSARGS;
1898 #else
1899     dXSARGS;
1900 #endif
1901     if (items != 1)
1902        croak_xs_usage(cv,  "THIS");
1903     {
1904         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1905         long    RETVAL;
1906         dXSTARG;
1907
1908         RETVAL = THIS->GetX();
1909         XSprePUSH; PUSHi((IV)RETVAL);
1910     }
1911     XSRETURN(1);
1912 }
1913
1914
1915 XS(XS_Wx__KeyEvent_GetY); /* prototype to pass -Wmissing-prototypes */
1916 XS(XS_Wx__KeyEvent_GetY)
1917 {
1918 #ifdef dVAR
1919     dVAR; dXSARGS;
1920 #else
1921     dXSARGS;
1922 #endif
1923     if (items != 1)
1924        croak_xs_usage(cv,  "THIS");
1925     {
1926         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1927         long    RETVAL;
1928         dXSTARG;
1929
1930         RETVAL = THIS->GetY();
1931         XSprePUSH; PUSHi((IV)RETVAL);
1932     }
1933     XSRETURN(1);
1934 }
1935
1936
1937 XS(XS_Wx__KeyEvent_MetaDown); /* prototype to pass -Wmissing-prototypes */
1938 XS(XS_Wx__KeyEvent_MetaDown)
1939 {
1940 #ifdef dVAR
1941     dVAR; dXSARGS;
1942 #else
1943     dXSARGS;
1944 #endif
1945     if (items != 1)
1946        croak_xs_usage(cv,  "THIS");
1947     {
1948         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1949         bool    RETVAL;
1950
1951         RETVAL = THIS->MetaDown();
1952         ST(0) = boolSV(RETVAL);
1953         sv_2mortal(ST(0));
1954     }
1955     XSRETURN(1);
1956 }
1957
1958
1959 XS(XS_Wx__KeyEvent_HasModifiers); /* prototype to pass -Wmissing-prototypes */
1960 XS(XS_Wx__KeyEvent_HasModifiers)
1961 {
1962 #ifdef dVAR
1963     dVAR; dXSARGS;
1964 #else
1965     dXSARGS;
1966 #endif
1967     if (items != 1)
1968        croak_xs_usage(cv,  "THIS");
1969     {
1970         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1971         bool    RETVAL;
1972
1973         RETVAL = THIS->HasModifiers();
1974         ST(0) = boolSV(RETVAL);
1975         sv_2mortal(ST(0));
1976     }
1977     XSRETURN(1);
1978 }
1979
1980
1981 XS(XS_Wx__KeyEvent_ShiftDown); /* prototype to pass -Wmissing-prototypes */
1982 XS(XS_Wx__KeyEvent_ShiftDown)
1983 {
1984 #ifdef dVAR
1985     dVAR; dXSARGS;
1986 #else
1987     dXSARGS;
1988 #endif
1989     if (items != 1)
1990        croak_xs_usage(cv,  "THIS");
1991     {
1992         wxKeyEvent *    THIS = (wxKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::KeyEvent" );
1993         bool    RETVAL;
1994
1995         RETVAL = THIS->ShiftDown();
1996         ST(0) = boolSV(RETVAL);
1997         sv_2mortal(ST(0));
1998     }
1999     XSRETURN(1);
2000 }
2001
2002
2003 XS(XS_Wx__HelpEvent_new); /* prototype to pass -Wmissing-prototypes */
2004 XS(XS_Wx__HelpEvent_new)
2005 {
2006 #ifdef dVAR
2007     dVAR; dXSARGS;
2008 #else
2009     dXSARGS;
2010 #endif
2011     if (items != 1)
2012        croak_xs_usage(cv,  "CLASS");
2013     {
2014         char *  CLASS = (char *)SvPV_nolen(ST(0));
2015         wxHelpEvent *   RETVAL;
2016
2017         RETVAL = new wxHelpEvent();
2018         ST(0) = sv_newmortal();
2019     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2020     wxPli_thread_sv_register( aTHX_ "Wx::HelpEvent", RETVAL, ST(0) );
2021
2022     }
2023     XSRETURN(1);
2024 }
2025
2026
2027 XS(XS_Wx__HelpEvent_GetPosition); /* prototype to pass -Wmissing-prototypes */
2028 XS(XS_Wx__HelpEvent_GetPosition)
2029 {
2030 #ifdef dVAR
2031     dVAR; dXSARGS;
2032 #else
2033     dXSARGS;
2034 #endif
2035     if (items != 1)
2036        croak_xs_usage(cv,  "THIS");
2037     {
2038         wxHelpEvent *    THIS = (wxHelpEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpEvent" );
2039         wxPoint *       RETVAL;
2040     RETVAL = new wxPoint( THIS->GetPosition() );
2041         ST(0) = sv_newmortal();
2042     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
2043     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
2044
2045     }
2046     XSRETURN(1);
2047 }
2048
2049
2050 XS(XS_Wx__HelpEvent_GetLink); /* prototype to pass -Wmissing-prototypes */
2051 XS(XS_Wx__HelpEvent_GetLink)
2052 {
2053 #ifdef dVAR
2054     dVAR; dXSARGS;
2055 #else
2056     dXSARGS;
2057 #endif
2058     if (items != 1)
2059        croak_xs_usage(cv,  "THIS");
2060     {
2061         wxHelpEvent *    THIS = (wxHelpEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpEvent" );
2062         wxString        RETVAL;
2063
2064         RETVAL = THIS->GetLink();
2065         ST(0) = sv_newmortal();
2066     WXSTRING_OUTPUT( RETVAL, ST(0) );
2067
2068     }
2069     XSRETURN(1);
2070 }
2071
2072
2073 XS(XS_Wx__HelpEvent_GetTarget); /* prototype to pass -Wmissing-prototypes */
2074 XS(XS_Wx__HelpEvent_GetTarget)
2075 {
2076 #ifdef dVAR
2077     dVAR; dXSARGS;
2078 #else
2079     dXSARGS;
2080 #endif
2081     if (items != 1)
2082        croak_xs_usage(cv,  "THIS");
2083     {
2084         wxHelpEvent *    THIS = (wxHelpEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpEvent" );
2085         wxString        RETVAL;
2086
2087         RETVAL = THIS->GetTarget();
2088         ST(0) = sv_newmortal();
2089     WXSTRING_OUTPUT( RETVAL, ST(0) );
2090
2091     }
2092     XSRETURN(1);
2093 }
2094
2095
2096 XS(XS_Wx__HelpEvent_SetPosition); /* prototype to pass -Wmissing-prototypes */
2097 XS(XS_Wx__HelpEvent_SetPosition)
2098 {
2099 #ifdef dVAR
2100     dVAR; dXSARGS;
2101 #else
2102     dXSARGS;
2103 #endif
2104     if (items != 2)
2105        croak_xs_usage(cv,  "THIS, point");
2106     {
2107         wxPoint    point = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
2108         wxHelpEvent *    THIS = (wxHelpEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpEvent" );
2109
2110         THIS->SetPosition(point);
2111     }
2112     XSRETURN_EMPTY;
2113 }
2114
2115
2116 XS(XS_Wx__HelpEvent_SetLink); /* prototype to pass -Wmissing-prototypes */
2117 XS(XS_Wx__HelpEvent_SetLink)
2118 {
2119 #ifdef dVAR
2120     dVAR; dXSARGS;
2121 #else
2122     dXSARGS;
2123 #endif
2124     if (items != 2)
2125        croak_xs_usage(cv,  "THIS, link");
2126     {
2127         wxString        link;
2128         wxHelpEvent *    THIS = (wxHelpEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpEvent" );
2129
2130     WXSTRING_INPUT( link, wxString, ST(1) );
2131
2132         THIS->SetLink(link);
2133     }
2134     XSRETURN_EMPTY;
2135 }
2136
2137
2138 XS(XS_Wx__HelpEvent_SetTarget); /* prototype to pass -Wmissing-prototypes */
2139 XS(XS_Wx__HelpEvent_SetTarget)
2140 {
2141 #ifdef dVAR
2142     dVAR; dXSARGS;
2143 #else
2144     dXSARGS;
2145 #endif
2146     if (items != 2)
2147        croak_xs_usage(cv,  "THIS, target");
2148     {
2149         wxString        target;
2150         wxHelpEvent *    THIS = (wxHelpEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpEvent" );
2151
2152     WXSTRING_INPUT( target, wxString, ST(1) );
2153
2154         THIS->SetTarget(target);
2155     }
2156     XSRETURN_EMPTY;
2157 }
2158
2159
2160 XS(XS_Wx__IdleEvent_new); /* prototype to pass -Wmissing-prototypes */
2161 XS(XS_Wx__IdleEvent_new)
2162 {
2163 #ifdef dVAR
2164     dVAR; dXSARGS;
2165 #else
2166     dXSARGS;
2167 #endif
2168     if (items != 1)
2169        croak_xs_usage(cv,  "CLASS");
2170     {
2171         char *  CLASS = (char *)SvPV_nolen(ST(0));
2172         wxIdleEvent *   RETVAL;
2173
2174         RETVAL = new wxIdleEvent();
2175         ST(0) = sv_newmortal();
2176     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2177     wxPli_thread_sv_register( aTHX_ "Wx::IdleEvent", RETVAL, ST(0) );
2178
2179     }
2180     XSRETURN(1);
2181 }
2182
2183
2184 XS(XS_Wx__IdleEvent_MoreRequested); /* prototype to pass -Wmissing-prototypes */
2185 XS(XS_Wx__IdleEvent_MoreRequested)
2186 {
2187 #ifdef dVAR
2188     dVAR; dXSARGS;
2189 #else
2190     dXSARGS;
2191 #endif
2192     if (items != 1)
2193        croak_xs_usage(cv,  "THIS");
2194     {
2195         wxIdleEvent *    THIS = (wxIdleEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::IdleEvent" );
2196         bool    RETVAL;
2197
2198         RETVAL = THIS->MoreRequested();
2199         ST(0) = boolSV(RETVAL);
2200         sv_2mortal(ST(0));
2201     }
2202     XSRETURN(1);
2203 }
2204
2205
2206 XS(XS_Wx__IdleEvent_RequestMore); /* prototype to pass -Wmissing-prototypes */
2207 XS(XS_Wx__IdleEvent_RequestMore)
2208 {
2209 #ifdef dVAR
2210     dVAR; dXSARGS;
2211 #else
2212     dXSARGS;
2213 #endif
2214     if (items < 1 || items > 2)
2215        croak_xs_usage(cv,  "THIS, needMore = true");
2216     {
2217         bool    needMore;
2218         wxIdleEvent *    THIS = (wxIdleEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::IdleEvent" );
2219
2220         if (items < 2)
2221             needMore = true;
2222         else {
2223             needMore = (bool)SvTRUE(ST(1));
2224         }
2225
2226         THIS->RequestMore(needMore);
2227     }
2228     XSRETURN_EMPTY;
2229 }
2230
2231 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
2232 #define XSubPPtmpAAAI 1
2233
2234
2235 XS(XS_Wx__IdleEvent_CanSend); /* prototype to pass -Wmissing-prototypes */
2236 XS(XS_Wx__IdleEvent_CanSend)
2237 {
2238 #ifdef dVAR
2239     dVAR; dXSARGS;
2240 #else
2241     dXSARGS;
2242 #endif
2243     if (items != 1)
2244        croak_xs_usage(cv,  "window");
2245     {
2246         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Window" );
2247         bool    RETVAL;
2248     RETVAL = wxIdleEvent::CanSend( window );
2249         ST(0) = boolSV(RETVAL);
2250         sv_2mortal(ST(0));
2251     }
2252     XSRETURN(1);
2253 }
2254
2255 #endif
2256
2257 XS(XS_Wx__IdleEvent_SetMode); /* prototype to pass -Wmissing-prototypes */
2258 XS(XS_Wx__IdleEvent_SetMode)
2259 {
2260 #ifdef dVAR
2261     dVAR; dXSARGS;
2262 #else
2263     dXSARGS;
2264 #endif
2265     if (items != 1)
2266        croak_xs_usage(cv,  "mode");
2267     {
2268         wxIdleMode      mode = (wxIdleMode)SvIV(ST(0));
2269     wxIdleEvent::SetMode( mode );
2270     }
2271     XSRETURN_EMPTY;
2272 }
2273
2274
2275 XS(XS_Wx__IdleEvent_GetMode); /* prototype to pass -Wmissing-prototypes */
2276 XS(XS_Wx__IdleEvent_GetMode)
2277 {
2278 #ifdef dVAR
2279     dVAR; dXSARGS;
2280 #else
2281     dXSARGS;
2282 #endif
2283     if (items != 0)
2284        croak_xs_usage(cv,  "");
2285     {
2286         wxIdleMode      RETVAL;
2287         dXSTARG;
2288     RETVAL = wxIdleEvent::GetMode();
2289         XSprePUSH; PUSHi((IV)RETVAL);
2290     }
2291     XSRETURN(1);
2292 }
2293
2294
2295 XS(XS_Wx__InitDialogEvent_new); /* prototype to pass -Wmissing-prototypes */
2296 XS(XS_Wx__InitDialogEvent_new)
2297 {
2298 #ifdef dVAR
2299     dVAR; dXSARGS;
2300 #else
2301     dXSARGS;
2302 #endif
2303     if (items < 1 || items > 2)
2304        croak_xs_usage(cv,  "CLASS, id = 0");
2305     {
2306         wxWindowID      id;
2307         char *  CLASS = (char *)SvPV_nolen(ST(0));
2308         wxInitDialogEvent *     RETVAL;
2309
2310         if (items < 2)
2311             id = 0;
2312         else {
2313     id = wxPli_get_wxwindowid( aTHX_ ST(1) );
2314         }
2315
2316         RETVAL = new wxInitDialogEvent(id);
2317         ST(0) = sv_newmortal();
2318     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2319     wxPli_thread_sv_register( aTHX_ "Wx::InitDialogEvent", RETVAL, ST(0) );
2320
2321     }
2322     XSRETURN(1);
2323 }
2324
2325
2326 XS(XS_Wx__JoystickEvent_new); /* prototype to pass -Wmissing-prototypes */
2327 XS(XS_Wx__JoystickEvent_new)
2328 {
2329 #ifdef dVAR
2330     dVAR; dXSARGS;
2331 #else
2332     dXSARGS;
2333 #endif
2334     if (items < 1 || items > 5)
2335        croak_xs_usage(cv,  "CLASS, eventType = 0, state = 0, joystick = wxJOYSTICK1, change = 0");
2336     {
2337         wxEventType     eventType;
2338         int     state;
2339         int     joystick;
2340         int     change;
2341         char *  CLASS = (char *)SvPV_nolen(ST(0));
2342         wxJoystickEvent *       RETVAL;
2343
2344         if (items < 2)
2345             eventType = 0;
2346         else {
2347             eventType = (wxEventType)SvIV(ST(1));
2348         }
2349
2350         if (items < 3)
2351             state = 0;
2352         else {
2353             state = (int)SvIV(ST(2));
2354         }
2355
2356         if (items < 4)
2357             joystick = wxJOYSTICK1;
2358         else {
2359             joystick = (int)SvIV(ST(3));
2360         }
2361
2362         if (items < 5)
2363             change = 0;
2364         else {
2365             change = (int)SvIV(ST(4));
2366         }
2367
2368         RETVAL = new wxJoystickEvent(eventType, state, joystick, change);
2369         ST(0) = sv_newmortal();
2370     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2371     wxPli_thread_sv_register( aTHX_ "Wx::JoystickEvent", RETVAL, ST(0) );
2372
2373     }
2374     XSRETURN(1);
2375 }
2376
2377
2378 XS(XS_Wx__JoystickEvent_ButtonDown); /* prototype to pass -Wmissing-prototypes */
2379 XS(XS_Wx__JoystickEvent_ButtonDown)
2380 {
2381 #ifdef dVAR
2382     dVAR; dXSARGS;
2383 #else
2384     dXSARGS;
2385 #endif
2386     if (items < 1 || items > 2)
2387        croak_xs_usage(cv,  "THIS, button = wxJOY_BUTTON_ANY");
2388     {
2389         int     button;
2390         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2391         bool    RETVAL;
2392
2393         if (items < 2)
2394             button = wxJOY_BUTTON_ANY;
2395         else {
2396             button = (int)SvIV(ST(1));
2397         }
2398
2399         RETVAL = THIS->ButtonDown(button);
2400         ST(0) = boolSV(RETVAL);
2401         sv_2mortal(ST(0));
2402     }
2403     XSRETURN(1);
2404 }
2405
2406
2407 XS(XS_Wx__JoystickEvent_ButtonIsDown); /* prototype to pass -Wmissing-prototypes */
2408 XS(XS_Wx__JoystickEvent_ButtonIsDown)
2409 {
2410 #ifdef dVAR
2411     dVAR; dXSARGS;
2412 #else
2413     dXSARGS;
2414 #endif
2415     if (items < 1 || items > 2)
2416        croak_xs_usage(cv,  "THIS, button = wxJOY_BUTTON_ANY");
2417     {
2418         int     button;
2419         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2420         bool    RETVAL;
2421
2422         if (items < 2)
2423             button = wxJOY_BUTTON_ANY;
2424         else {
2425             button = (int)SvIV(ST(1));
2426         }
2427
2428         RETVAL = THIS->ButtonIsDown(button);
2429         ST(0) = boolSV(RETVAL);
2430         sv_2mortal(ST(0));
2431     }
2432     XSRETURN(1);
2433 }
2434
2435
2436 XS(XS_Wx__JoystickEvent_ButtonUp); /* prototype to pass -Wmissing-prototypes */
2437 XS(XS_Wx__JoystickEvent_ButtonUp)
2438 {
2439 #ifdef dVAR
2440     dVAR; dXSARGS;
2441 #else
2442     dXSARGS;
2443 #endif
2444     if (items < 1 || items > 2)
2445        croak_xs_usage(cv,  "THIS, button = wxJOY_BUTTON_ANY");
2446     {
2447         int     button;
2448         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2449         bool    RETVAL;
2450
2451         if (items < 2)
2452             button = wxJOY_BUTTON_ANY;
2453         else {
2454             button = (int)SvIV(ST(1));
2455         }
2456
2457         RETVAL = THIS->ButtonUp(button);
2458         ST(0) = boolSV(RETVAL);
2459         sv_2mortal(ST(0));
2460     }
2461     XSRETURN(1);
2462 }
2463
2464
2465 XS(XS_Wx__JoystickEvent_GetButtonChange); /* prototype to pass -Wmissing-prototypes */
2466 XS(XS_Wx__JoystickEvent_GetButtonChange)
2467 {
2468 #ifdef dVAR
2469     dVAR; dXSARGS;
2470 #else
2471     dXSARGS;
2472 #endif
2473     if (items != 1)
2474        croak_xs_usage(cv,  "THIS");
2475     {
2476         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2477         int     RETVAL;
2478         dXSTARG;
2479
2480         RETVAL = THIS->GetButtonChange();
2481         XSprePUSH; PUSHi((IV)RETVAL);
2482     }
2483     XSRETURN(1);
2484 }
2485
2486
2487 XS(XS_Wx__JoystickEvent_GetButtonState); /* prototype to pass -Wmissing-prototypes */
2488 XS(XS_Wx__JoystickEvent_GetButtonState)
2489 {
2490 #ifdef dVAR
2491     dVAR; dXSARGS;
2492 #else
2493     dXSARGS;
2494 #endif
2495     if (items != 1)
2496        croak_xs_usage(cv,  "THIS");
2497     {
2498         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2499         int     RETVAL;
2500         dXSTARG;
2501
2502         RETVAL = THIS->GetButtonState();
2503         XSprePUSH; PUSHi((IV)RETVAL);
2504     }
2505     XSRETURN(1);
2506 }
2507
2508
2509 XS(XS_Wx__JoystickEvent_GetJoystick); /* prototype to pass -Wmissing-prototypes */
2510 XS(XS_Wx__JoystickEvent_GetJoystick)
2511 {
2512 #ifdef dVAR
2513     dVAR; dXSARGS;
2514 #else
2515     dXSARGS;
2516 #endif
2517     if (items != 1)
2518        croak_xs_usage(cv,  "THIS");
2519     {
2520         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2521         int     RETVAL;
2522         dXSTARG;
2523
2524         RETVAL = THIS->GetJoystick();
2525         XSprePUSH; PUSHi((IV)RETVAL);
2526     }
2527     XSRETURN(1);
2528 }
2529
2530
2531 XS(XS_Wx__JoystickEvent_GetPosition); /* prototype to pass -Wmissing-prototypes */
2532 XS(XS_Wx__JoystickEvent_GetPosition)
2533 {
2534 #ifdef dVAR
2535     dVAR; dXSARGS;
2536 #else
2537     dXSARGS;
2538 #endif
2539     if (items != 1)
2540        croak_xs_usage(cv,  "THIS");
2541     {
2542         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2543         wxPoint *       RETVAL;
2544     RETVAL = new wxPoint( THIS->GetPosition() );
2545         ST(0) = sv_newmortal();
2546     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
2547     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
2548
2549     }
2550     XSRETURN(1);
2551 }
2552
2553
2554 XS(XS_Wx__JoystickEvent_GetZPosition); /* prototype to pass -Wmissing-prototypes */
2555 XS(XS_Wx__JoystickEvent_GetZPosition)
2556 {
2557 #ifdef dVAR
2558     dVAR; dXSARGS;
2559 #else
2560     dXSARGS;
2561 #endif
2562     if (items != 1)
2563        croak_xs_usage(cv,  "THIS");
2564     {
2565         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2566         int     RETVAL;
2567         dXSTARG;
2568
2569         RETVAL = THIS->GetZPosition();
2570         XSprePUSH; PUSHi((IV)RETVAL);
2571     }
2572     XSRETURN(1);
2573 }
2574
2575
2576 XS(XS_Wx__JoystickEvent_IsButton); /* prototype to pass -Wmissing-prototypes */
2577 XS(XS_Wx__JoystickEvent_IsButton)
2578 {
2579 #ifdef dVAR
2580     dVAR; dXSARGS;
2581 #else
2582     dXSARGS;
2583 #endif
2584     if (items != 1)
2585        croak_xs_usage(cv,  "THIS");
2586     {
2587         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2588         bool    RETVAL;
2589
2590         RETVAL = THIS->IsButton();
2591         ST(0) = boolSV(RETVAL);
2592         sv_2mortal(ST(0));
2593     }
2594     XSRETURN(1);
2595 }
2596
2597
2598 XS(XS_Wx__JoystickEvent_IsMove); /* prototype to pass -Wmissing-prototypes */
2599 XS(XS_Wx__JoystickEvent_IsMove)
2600 {
2601 #ifdef dVAR
2602     dVAR; dXSARGS;
2603 #else
2604     dXSARGS;
2605 #endif
2606     if (items != 1)
2607        croak_xs_usage(cv,  "THIS");
2608     {
2609         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2610         bool    RETVAL;
2611
2612         RETVAL = THIS->IsMove();
2613         ST(0) = boolSV(RETVAL);
2614         sv_2mortal(ST(0));
2615     }
2616     XSRETURN(1);
2617 }
2618
2619
2620 XS(XS_Wx__JoystickEvent_IsZMove); /* prototype to pass -Wmissing-prototypes */
2621 XS(XS_Wx__JoystickEvent_IsZMove)
2622 {
2623 #ifdef dVAR
2624     dVAR; dXSARGS;
2625 #else
2626     dXSARGS;
2627 #endif
2628     if (items != 1)
2629        croak_xs_usage(cv,  "THIS");
2630     {
2631         wxJoystickEvent *    THIS = (wxJoystickEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::JoystickEvent" );
2632         bool    RETVAL;
2633
2634         RETVAL = THIS->IsZMove();
2635         ST(0) = boolSV(RETVAL);
2636         sv_2mortal(ST(0));
2637     }
2638     XSRETURN(1);
2639 }
2640
2641
2642 XS(XS_Wx__MenuEvent_new); /* prototype to pass -Wmissing-prototypes */
2643 XS(XS_Wx__MenuEvent_new)
2644 {
2645 #ifdef dVAR
2646     dVAR; dXSARGS;
2647 #else
2648     dXSARGS;
2649 #endif
2650     if (items < 1 || items > 3)
2651        croak_xs_usage(cv,  "CLASS, eventType = 0, id = 0");
2652     {
2653         wxEventType     eventType;
2654         wxWindowID      id;
2655         char *  CLASS = (char *)SvPV_nolen(ST(0));
2656         wxMenuEvent *   RETVAL;
2657
2658         if (items < 2)
2659             eventType = 0;
2660         else {
2661             eventType = (wxEventType)SvIV(ST(1));
2662         }
2663
2664         if (items < 3)
2665             id = 0;
2666         else {
2667     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
2668         }
2669
2670         RETVAL = new wxMenuEvent(eventType, id);
2671         ST(0) = sv_newmortal();
2672     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2673     wxPli_thread_sv_register( aTHX_ "Wx::MenuEvent", RETVAL, ST(0) );
2674
2675     }
2676     XSRETURN(1);
2677 }
2678
2679
2680 XS(XS_Wx__MenuEvent_GetMenuId); /* prototype to pass -Wmissing-prototypes */
2681 XS(XS_Wx__MenuEvent_GetMenuId)
2682 {
2683 #ifdef dVAR
2684     dVAR; dXSARGS;
2685 #else
2686     dXSARGS;
2687 #endif
2688     if (items != 1)
2689        croak_xs_usage(cv,  "THIS");
2690     {
2691         wxMenuEvent *    THIS = (wxMenuEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuEvent" );
2692         int     RETVAL;
2693         dXSTARG;
2694
2695         RETVAL = THIS->GetMenuId();
2696         XSprePUSH; PUSHi((IV)RETVAL);
2697     }
2698     XSRETURN(1);
2699 }
2700
2701
2702 XS(XS_Wx__MenuEvent_IsPopup); /* prototype to pass -Wmissing-prototypes */
2703 XS(XS_Wx__MenuEvent_IsPopup)
2704 {
2705 #ifdef dVAR
2706     dVAR; dXSARGS;
2707 #else
2708     dXSARGS;
2709 #endif
2710     if (items != 1)
2711        croak_xs_usage(cv,  "THIS");
2712     {
2713         wxMenuEvent *    THIS = (wxMenuEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuEvent" );
2714         bool    RETVAL;
2715
2716         RETVAL = THIS->IsPopup();
2717         ST(0) = boolSV(RETVAL);
2718         sv_2mortal(ST(0));
2719     }
2720     XSRETURN(1);
2721 }
2722
2723 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
2724 #define XSubPPtmpAAAJ 1
2725
2726
2727 XS(XS_Wx__MenuEvent_GetMenu); /* prototype to pass -Wmissing-prototypes */
2728 XS(XS_Wx__MenuEvent_GetMenu)
2729 {
2730 #ifdef dVAR
2731     dVAR; dXSARGS;
2732 #else
2733     dXSARGS;
2734 #endif
2735     if (items != 1)
2736        croak_xs_usage(cv,  "THIS");
2737     {
2738         wxMenuEvent *    THIS = (wxMenuEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MenuEvent" );
2739         wxMenu *        RETVAL;
2740
2741         RETVAL = THIS->GetMenu();
2742         ST(0) = sv_newmortal();
2743     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2744
2745     }
2746     XSRETURN(1);
2747 }
2748
2749 #endif
2750
2751 XS(XS_Wx__MaximizeEvent_new); /* prototype to pass -Wmissing-prototypes */
2752 XS(XS_Wx__MaximizeEvent_new)
2753 {
2754 #ifdef dVAR
2755     dVAR; dXSARGS;
2756 #else
2757     dXSARGS;
2758 #endif
2759     if (items < 1 || items > 2)
2760        croak_xs_usage(cv,  "CLASS, id = 0");
2761     {
2762         wxWindowID      id;
2763         char *  CLASS = (char *)SvPV_nolen(ST(0));
2764         wxMouseEvent *  RETVAL;
2765
2766         if (items < 2)
2767             id = 0;
2768         else {
2769     id = wxPli_get_wxwindowid( aTHX_ ST(1) );
2770         }
2771
2772         RETVAL = new wxMouseEvent(id);
2773         ST(0) = sv_newmortal();
2774     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2775     wxPli_thread_sv_register( aTHX_ "Wx::MouseEvent", RETVAL, ST(0) );
2776
2777     }
2778     XSRETURN(1);
2779 }
2780
2781
2782 XS(XS_Wx__MouseEvent_new); /* prototype to pass -Wmissing-prototypes */
2783 XS(XS_Wx__MouseEvent_new)
2784 {
2785 #ifdef dVAR
2786     dVAR; dXSARGS;
2787 #else
2788     dXSARGS;
2789 #endif
2790     if (items < 1 || items > 2)
2791        croak_xs_usage(cv,  "CLASS, eventType = 0");
2792     {
2793         wxEventType     eventType;
2794         char *  CLASS = (char *)SvPV_nolen(ST(0));
2795         wxMouseEvent *  RETVAL;
2796
2797         if (items < 2)
2798             eventType = 0;
2799         else {
2800             eventType = (wxEventType)SvIV(ST(1));
2801         }
2802
2803         RETVAL = new wxMouseEvent(eventType);
2804         ST(0) = sv_newmortal();
2805     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2806     wxPli_thread_sv_register( aTHX_ "Wx::MouseEvent", RETVAL, ST(0) );
2807
2808     }
2809     XSRETURN(1);
2810 }
2811
2812
2813 XS(XS_Wx__MouseEvent_AltDown); /* prototype to pass -Wmissing-prototypes */
2814 XS(XS_Wx__MouseEvent_AltDown)
2815 {
2816 #ifdef dVAR
2817     dVAR; dXSARGS;
2818 #else
2819     dXSARGS;
2820 #endif
2821     if (items != 1)
2822        croak_xs_usage(cv,  "THIS");
2823     {
2824         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
2825         bool    RETVAL;
2826
2827         RETVAL = THIS->AltDown();
2828         ST(0) = boolSV(RETVAL);
2829         sv_2mortal(ST(0));
2830     }
2831     XSRETURN(1);
2832 }
2833
2834
2835 XS(XS_Wx__MouseEvent_Button); /* prototype to pass -Wmissing-prototypes */
2836 XS(XS_Wx__MouseEvent_Button)
2837 {
2838 #ifdef dVAR
2839     dVAR; dXSARGS;
2840 #else
2841     dXSARGS;
2842 #endif
2843     if (items < 1 || items > 2)
2844        croak_xs_usage(cv,  "THIS, button = -1");
2845     {
2846         int     button;
2847         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
2848         bool    RETVAL;
2849
2850         if (items < 2)
2851             button = -1;
2852         else {
2853             button = (int)SvIV(ST(1));
2854         }
2855
2856         RETVAL = THIS->Button(button);
2857         ST(0) = boolSV(RETVAL);
2858         sv_2mortal(ST(0));
2859     }
2860     XSRETURN(1);
2861 }
2862
2863
2864 XS(XS_Wx__MouseEvent_ButtonDClick); /* prototype to pass -Wmissing-prototypes */
2865 XS(XS_Wx__MouseEvent_ButtonDClick)
2866 {
2867 #ifdef dVAR
2868     dVAR; dXSARGS;
2869 #else
2870     dXSARGS;
2871 #endif
2872     if (items < 1 || items > 2)
2873        croak_xs_usage(cv,  "THIS, button = -1");
2874     {
2875         int     button;
2876         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
2877         bool    RETVAL;
2878
2879         if (items < 2)
2880             button = -1;
2881         else {
2882             button = (int)SvIV(ST(1));
2883         }
2884
2885         RETVAL = THIS->ButtonDClick(button);
2886         ST(0) = boolSV(RETVAL);
2887         sv_2mortal(ST(0));
2888     }
2889     XSRETURN(1);
2890 }
2891
2892
2893 XS(XS_Wx__MouseEvent_ButtonDown); /* prototype to pass -Wmissing-prototypes */
2894 XS(XS_Wx__MouseEvent_ButtonDown)
2895 {
2896 #ifdef dVAR
2897     dVAR; dXSARGS;
2898 #else
2899     dXSARGS;
2900 #endif
2901     if (items < 1 || items > 2)
2902        croak_xs_usage(cv,  "THIS, button = -1");
2903     {
2904         int     button;
2905         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
2906         bool    RETVAL;
2907
2908         if (items < 2)
2909             button = -1;
2910         else {
2911             button = (int)SvIV(ST(1));
2912         }
2913
2914         RETVAL = THIS->ButtonDown(button);
2915         ST(0) = boolSV(RETVAL);
2916         sv_2mortal(ST(0));
2917     }
2918     XSRETURN(1);
2919 }
2920
2921
2922 XS(XS_Wx__MouseEvent_ButtonUp); /* prototype to pass -Wmissing-prototypes */
2923 XS(XS_Wx__MouseEvent_ButtonUp)
2924 {
2925 #ifdef dVAR
2926     dVAR; dXSARGS;
2927 #else
2928     dXSARGS;
2929 #endif
2930     if (items < 1 || items > 2)
2931        croak_xs_usage(cv,  "THIS, button = -1");
2932     {
2933         int     button;
2934         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
2935         bool    RETVAL;
2936
2937         if (items < 2)
2938             button = -1;
2939         else {
2940             button = (int)SvIV(ST(1));
2941         }
2942
2943         RETVAL = THIS->ButtonUp(button);
2944         ST(0) = boolSV(RETVAL);
2945         sv_2mortal(ST(0));
2946     }
2947     XSRETURN(1);
2948 }
2949
2950 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
2951 #define XSubPPtmpAAAK 1
2952
2953
2954 XS(XS_Wx__MouseEvent_CmdDown); /* prototype to pass -Wmissing-prototypes */
2955 XS(XS_Wx__MouseEvent_CmdDown)
2956 {
2957 #ifdef dVAR
2958     dVAR; dXSARGS;
2959 #else
2960     dXSARGS;
2961 #endif
2962     if (items != 1)
2963        croak_xs_usage(cv,  "THIS");
2964     {
2965         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
2966         bool    RETVAL;
2967
2968         RETVAL = THIS->CmdDown();
2969         ST(0) = boolSV(RETVAL);
2970         sv_2mortal(ST(0));
2971     }
2972     XSRETURN(1);
2973 }
2974
2975 #endif
2976
2977 XS(XS_Wx__MouseEvent_ControlDown); /* prototype to pass -Wmissing-prototypes */
2978 XS(XS_Wx__MouseEvent_ControlDown)
2979 {
2980 #ifdef dVAR
2981     dVAR; dXSARGS;
2982 #else
2983     dXSARGS;
2984 #endif
2985     if (items != 1)
2986        croak_xs_usage(cv,  "THIS");
2987     {
2988         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
2989         bool    RETVAL;
2990
2991         RETVAL = THIS->ControlDown();
2992         ST(0) = boolSV(RETVAL);
2993         sv_2mortal(ST(0));
2994     }
2995     XSRETURN(1);
2996 }
2997
2998
2999 XS(XS_Wx__MouseEvent_Dragging); /* prototype to pass -Wmissing-prototypes */
3000 XS(XS_Wx__MouseEvent_Dragging)
3001 {
3002 #ifdef dVAR
3003     dVAR; dXSARGS;
3004 #else
3005     dXSARGS;
3006 #endif
3007     if (items != 1)
3008        croak_xs_usage(cv,  "THIS");
3009     {
3010         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3011         bool    RETVAL;
3012
3013         RETVAL = THIS->Dragging();
3014         ST(0) = boolSV(RETVAL);
3015         sv_2mortal(ST(0));
3016     }
3017     XSRETURN(1);
3018 }
3019
3020
3021 XS(XS_Wx__MouseEvent_Entering); /* prototype to pass -Wmissing-prototypes */
3022 XS(XS_Wx__MouseEvent_Entering)
3023 {
3024 #ifdef dVAR
3025     dVAR; dXSARGS;
3026 #else
3027     dXSARGS;
3028 #endif
3029     if (items != 1)
3030        croak_xs_usage(cv,  "THIS");
3031     {
3032         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3033         bool    RETVAL;
3034
3035         RETVAL = THIS->Entering();
3036         ST(0) = boolSV(RETVAL);
3037         sv_2mortal(ST(0));
3038     }
3039     XSRETURN(1);
3040 }
3041
3042
3043 XS(XS_Wx__MouseEvent_GetPosition); /* prototype to pass -Wmissing-prototypes */
3044 XS(XS_Wx__MouseEvent_GetPosition)
3045 {
3046 #ifdef dVAR
3047     dVAR; dXSARGS;
3048 #else
3049     dXSARGS;
3050 #endif
3051     if (items != 1)
3052        croak_xs_usage(cv,  "THIS");
3053     {
3054         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3055         wxPoint *       RETVAL;
3056     RETVAL = new wxPoint( THIS->GetPosition() );
3057         ST(0) = sv_newmortal();
3058     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
3059     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
3060
3061     }
3062     XSRETURN(1);
3063 }
3064
3065
3066 XS(XS_Wx__MouseEvent_GetPositionXY); /* prototype to pass -Wmissing-prototypes */
3067 XS(XS_Wx__MouseEvent_GetPositionXY)
3068 {
3069 #ifdef dVAR
3070     dVAR; dXSARGS;
3071 #else
3072     dXSARGS;
3073 #endif
3074     if (items != 1)
3075        croak_xs_usage(cv,  "THIS");
3076     PERL_UNUSED_VAR(ax); /* -Wall */
3077     SP -= items;
3078     {
3079     long x;
3080     long y;
3081         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3082     THIS->GetPosition( &x, &y );
3083     EXTEND( SP, 2 );
3084     PUSHs( sv_2mortal( newSViv( x ) ) );
3085     PUSHs( sv_2mortal( newSViv( y ) ) );
3086         PUTBACK;
3087         return;
3088     }
3089 }
3090
3091
3092 XS(XS_Wx__MouseEvent_GetLogicalPosition); /* prototype to pass -Wmissing-prototypes */
3093 XS(XS_Wx__MouseEvent_GetLogicalPosition)
3094 {
3095 #ifdef dVAR
3096     dVAR; dXSARGS;
3097 #else
3098     dXSARGS;
3099 #endif
3100     if (items != 2)
3101        croak_xs_usage(cv,  "THIS, dc");
3102     {
3103         wxDC*    dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::DC" );
3104         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3105         wxPoint *       RETVAL;
3106     RETVAL = new wxPoint( THIS->GetLogicalPosition( *dc ) );
3107         ST(0) = sv_newmortal();
3108     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
3109     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
3110
3111     }
3112     XSRETURN(1);
3113 }
3114
3115
3116 XS(XS_Wx__MouseEvent_GetX); /* prototype to pass -Wmissing-prototypes */
3117 XS(XS_Wx__MouseEvent_GetX)
3118 {
3119 #ifdef dVAR
3120     dVAR; dXSARGS;
3121 #else
3122     dXSARGS;
3123 #endif
3124     if (items != 1)
3125        croak_xs_usage(cv,  "THIS");
3126     {
3127         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3128         long    RETVAL;
3129         dXSTARG;
3130
3131         RETVAL = THIS->GetX();
3132         XSprePUSH; PUSHi((IV)RETVAL);
3133     }
3134     XSRETURN(1);
3135 }
3136
3137
3138 XS(XS_Wx__MouseEvent_GetY); /* prototype to pass -Wmissing-prototypes */
3139 XS(XS_Wx__MouseEvent_GetY)
3140 {
3141 #ifdef dVAR
3142     dVAR; dXSARGS;
3143 #else
3144     dXSARGS;
3145 #endif
3146     if (items != 1)
3147        croak_xs_usage(cv,  "THIS");
3148     {
3149         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3150         long    RETVAL;
3151         dXSTARG;
3152
3153         RETVAL = THIS->GetY();
3154         XSprePUSH; PUSHi((IV)RETVAL);
3155     }
3156     XSRETURN(1);
3157 }
3158
3159
3160 XS(XS_Wx__MouseEvent_GetWheelRotation); /* prototype to pass -Wmissing-prototypes */
3161 XS(XS_Wx__MouseEvent_GetWheelRotation)
3162 {
3163 #ifdef dVAR
3164     dVAR; dXSARGS;
3165 #else
3166     dXSARGS;
3167 #endif
3168     if (items != 1)
3169        croak_xs_usage(cv,  "THIS");
3170     {
3171         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3172         int     RETVAL;
3173         dXSTARG;
3174
3175         RETVAL = THIS->GetWheelRotation();
3176         XSprePUSH; PUSHi((IV)RETVAL);
3177     }
3178     XSRETURN(1);
3179 }
3180
3181
3182 XS(XS_Wx__MouseEvent_GetWheelDelta); /* prototype to pass -Wmissing-prototypes */
3183 XS(XS_Wx__MouseEvent_GetWheelDelta)
3184 {
3185 #ifdef dVAR
3186     dVAR; dXSARGS;
3187 #else
3188     dXSARGS;
3189 #endif
3190     if (items != 1)
3191        croak_xs_usage(cv,  "THIS");
3192     {
3193         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3194         int     RETVAL;
3195         dXSTARG;
3196
3197         RETVAL = THIS->GetWheelDelta();
3198         XSprePUSH; PUSHi((IV)RETVAL);
3199     }
3200     XSRETURN(1);
3201 }
3202
3203
3204 XS(XS_Wx__MouseEvent_GetLinesPerAction); /* prototype to pass -Wmissing-prototypes */
3205 XS(XS_Wx__MouseEvent_GetLinesPerAction)
3206 {
3207 #ifdef dVAR
3208     dVAR; dXSARGS;
3209 #else
3210     dXSARGS;
3211 #endif
3212     if (items != 1)
3213        croak_xs_usage(cv,  "THIS");
3214     {
3215         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3216         int     RETVAL;
3217         dXSTARG;
3218
3219         RETVAL = THIS->GetLinesPerAction();
3220         XSprePUSH; PUSHi((IV)RETVAL);
3221     }
3222     XSRETURN(1);
3223 }
3224
3225 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
3226 #define XSubPPtmpAAAL 1
3227
3228
3229 XS(XS_Wx__MouseEvent_GetWheelAxis); /* prototype to pass -Wmissing-prototypes */
3230 XS(XS_Wx__MouseEvent_GetWheelAxis)
3231 {
3232 #ifdef dVAR
3233     dVAR; dXSARGS;
3234 #else
3235     dXSARGS;
3236 #endif
3237     if (items != 1)
3238        croak_xs_usage(cv,  "THIS");
3239     {
3240         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3241         int     RETVAL;
3242         dXSTARG;
3243
3244         RETVAL = THIS->GetWheelAxis();
3245         XSprePUSH; PUSHi((IV)RETVAL);
3246     }
3247     XSRETURN(1);
3248 }
3249
3250 #endif
3251
3252 XS(XS_Wx__MouseEvent_IsButton); /* prototype to pass -Wmissing-prototypes */
3253 XS(XS_Wx__MouseEvent_IsButton)
3254 {
3255 #ifdef dVAR
3256     dVAR; dXSARGS;
3257 #else
3258     dXSARGS;
3259 #endif
3260     if (items != 1)
3261        croak_xs_usage(cv,  "THIS");
3262     {
3263         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3264         bool    RETVAL;
3265
3266         RETVAL = THIS->IsButton();
3267         ST(0) = boolSV(RETVAL);
3268         sv_2mortal(ST(0));
3269     }
3270     XSRETURN(1);
3271 }
3272
3273
3274 XS(XS_Wx__MouseEvent_IsPageScroll); /* prototype to pass -Wmissing-prototypes */
3275 XS(XS_Wx__MouseEvent_IsPageScroll)
3276 {
3277 #ifdef dVAR
3278     dVAR; dXSARGS;
3279 #else
3280     dXSARGS;
3281 #endif
3282     if (items != 1)
3283        croak_xs_usage(cv,  "THIS");
3284     {
3285         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3286         bool    RETVAL;
3287
3288         RETVAL = THIS->IsPageScroll();
3289         ST(0) = boolSV(RETVAL);
3290         sv_2mortal(ST(0));
3291     }
3292     XSRETURN(1);
3293 }
3294
3295
3296 XS(XS_Wx__MouseEvent_Leaving); /* prototype to pass -Wmissing-prototypes */
3297 XS(XS_Wx__MouseEvent_Leaving)
3298 {
3299 #ifdef dVAR
3300     dVAR; dXSARGS;
3301 #else
3302     dXSARGS;
3303 #endif
3304     if (items != 1)
3305        croak_xs_usage(cv,  "THIS");
3306     {
3307         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3308         bool    RETVAL;
3309
3310         RETVAL = THIS->Leaving();
3311         ST(0) = boolSV(RETVAL);
3312         sv_2mortal(ST(0));
3313     }
3314     XSRETURN(1);
3315 }
3316
3317
3318 XS(XS_Wx__MouseEvent_LeftDClick); /* prototype to pass -Wmissing-prototypes */
3319 XS(XS_Wx__MouseEvent_LeftDClick)
3320 {
3321 #ifdef dVAR
3322     dVAR; dXSARGS;
3323 #else
3324     dXSARGS;
3325 #endif
3326     if (items != 1)
3327        croak_xs_usage(cv,  "THIS");
3328     {
3329         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3330         bool    RETVAL;
3331
3332         RETVAL = THIS->LeftDClick();
3333         ST(0) = boolSV(RETVAL);
3334         sv_2mortal(ST(0));
3335     }
3336     XSRETURN(1);
3337 }
3338
3339
3340 XS(XS_Wx__MouseEvent_LeftDown); /* prototype to pass -Wmissing-prototypes */
3341 XS(XS_Wx__MouseEvent_LeftDown)
3342 {
3343 #ifdef dVAR
3344     dVAR; dXSARGS;
3345 #else
3346     dXSARGS;
3347 #endif
3348     if (items != 1)
3349        croak_xs_usage(cv,  "THIS");
3350     {
3351         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3352         bool    RETVAL;
3353
3354         RETVAL = THIS->LeftDown();
3355         ST(0) = boolSV(RETVAL);
3356         sv_2mortal(ST(0));
3357     }
3358     XSRETURN(1);
3359 }
3360
3361
3362 XS(XS_Wx__MouseEvent_LeftIsDown); /* prototype to pass -Wmissing-prototypes */
3363 XS(XS_Wx__MouseEvent_LeftIsDown)
3364 {
3365 #ifdef dVAR
3366     dVAR; dXSARGS;
3367 #else
3368     dXSARGS;
3369 #endif
3370     if (items != 1)
3371        croak_xs_usage(cv,  "THIS");
3372     {
3373         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3374         bool    RETVAL;
3375
3376         RETVAL = THIS->LeftIsDown();
3377         ST(0) = boolSV(RETVAL);
3378         sv_2mortal(ST(0));
3379     }
3380     XSRETURN(1);
3381 }
3382
3383
3384 XS(XS_Wx__MouseEvent_LeftUp); /* prototype to pass -Wmissing-prototypes */
3385 XS(XS_Wx__MouseEvent_LeftUp)
3386 {
3387 #ifdef dVAR
3388     dVAR; dXSARGS;
3389 #else
3390     dXSARGS;
3391 #endif
3392     if (items != 1)
3393        croak_xs_usage(cv,  "THIS");
3394     {
3395         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3396         bool    RETVAL;
3397
3398         RETVAL = THIS->LeftUp();
3399         ST(0) = boolSV(RETVAL);
3400         sv_2mortal(ST(0));
3401     }
3402     XSRETURN(1);
3403 }
3404
3405
3406 XS(XS_Wx__MouseEvent_MetaDown); /* prototype to pass -Wmissing-prototypes */
3407 XS(XS_Wx__MouseEvent_MetaDown)
3408 {
3409 #ifdef dVAR
3410     dVAR; dXSARGS;
3411 #else
3412     dXSARGS;
3413 #endif
3414     if (items != 1)
3415        croak_xs_usage(cv,  "THIS");
3416     {
3417         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3418         bool    RETVAL;
3419
3420         RETVAL = THIS->MetaDown();
3421         ST(0) = boolSV(RETVAL);
3422         sv_2mortal(ST(0));
3423     }
3424     XSRETURN(1);
3425 }
3426
3427
3428 XS(XS_Wx__MouseEvent_MiddleDClick); /* prototype to pass -Wmissing-prototypes */
3429 XS(XS_Wx__MouseEvent_MiddleDClick)
3430 {
3431 #ifdef dVAR
3432     dVAR; dXSARGS;
3433 #else
3434     dXSARGS;
3435 #endif
3436     if (items != 1)
3437        croak_xs_usage(cv,  "THIS");
3438     {
3439         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3440         bool    RETVAL;
3441
3442         RETVAL = THIS->MiddleDClick();
3443         ST(0) = boolSV(RETVAL);
3444         sv_2mortal(ST(0));
3445     }
3446     XSRETURN(1);
3447 }
3448
3449
3450 XS(XS_Wx__MouseEvent_MiddleDown); /* prototype to pass -Wmissing-prototypes */
3451 XS(XS_Wx__MouseEvent_MiddleDown)
3452 {
3453 #ifdef dVAR
3454     dVAR; dXSARGS;
3455 #else
3456     dXSARGS;
3457 #endif
3458     if (items != 1)
3459        croak_xs_usage(cv,  "THIS");
3460     {
3461         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3462         bool    RETVAL;
3463
3464         RETVAL = THIS->MiddleDown();
3465         ST(0) = boolSV(RETVAL);
3466         sv_2mortal(ST(0));
3467     }
3468     XSRETURN(1);
3469 }
3470
3471
3472 XS(XS_Wx__MouseEvent_MiddleIsDown); /* prototype to pass -Wmissing-prototypes */
3473 XS(XS_Wx__MouseEvent_MiddleIsDown)
3474 {
3475 #ifdef dVAR
3476     dVAR; dXSARGS;
3477 #else
3478     dXSARGS;
3479 #endif
3480     if (items != 1)
3481        croak_xs_usage(cv,  "THIS");
3482     {
3483         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3484         bool    RETVAL;
3485
3486         RETVAL = THIS->MiddleIsDown();
3487         ST(0) = boolSV(RETVAL);
3488         sv_2mortal(ST(0));
3489     }
3490     XSRETURN(1);
3491 }
3492
3493
3494 XS(XS_Wx__MouseEvent_MiddleUp); /* prototype to pass -Wmissing-prototypes */
3495 XS(XS_Wx__MouseEvent_MiddleUp)
3496 {
3497 #ifdef dVAR
3498     dVAR; dXSARGS;
3499 #else
3500     dXSARGS;
3501 #endif
3502     if (items != 1)
3503        croak_xs_usage(cv,  "THIS");
3504     {
3505         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3506         bool    RETVAL;
3507
3508         RETVAL = THIS->MiddleUp();
3509         ST(0) = boolSV(RETVAL);
3510         sv_2mortal(ST(0));
3511     }
3512     XSRETURN(1);
3513 }
3514
3515
3516 XS(XS_Wx__MouseEvent_Moving); /* prototype to pass -Wmissing-prototypes */
3517 XS(XS_Wx__MouseEvent_Moving)
3518 {
3519 #ifdef dVAR
3520     dVAR; dXSARGS;
3521 #else
3522     dXSARGS;
3523 #endif
3524     if (items != 1)
3525        croak_xs_usage(cv,  "THIS");
3526     {
3527         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3528         bool    RETVAL;
3529
3530         RETVAL = THIS->Moving();
3531         ST(0) = boolSV(RETVAL);
3532         sv_2mortal(ST(0));
3533     }
3534     XSRETURN(1);
3535 }
3536
3537
3538 XS(XS_Wx__MouseEvent_RightDClick); /* prototype to pass -Wmissing-prototypes */
3539 XS(XS_Wx__MouseEvent_RightDClick)
3540 {
3541 #ifdef dVAR
3542     dVAR; dXSARGS;
3543 #else
3544     dXSARGS;
3545 #endif
3546     if (items != 1)
3547        croak_xs_usage(cv,  "THIS");
3548     {
3549         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3550         bool    RETVAL;
3551
3552         RETVAL = THIS->RightDClick();
3553         ST(0) = boolSV(RETVAL);
3554         sv_2mortal(ST(0));
3555     }
3556     XSRETURN(1);
3557 }
3558
3559
3560 XS(XS_Wx__MouseEvent_RightDown); /* prototype to pass -Wmissing-prototypes */
3561 XS(XS_Wx__MouseEvent_RightDown)
3562 {
3563 #ifdef dVAR
3564     dVAR; dXSARGS;
3565 #else
3566     dXSARGS;
3567 #endif
3568     if (items != 1)
3569        croak_xs_usage(cv,  "THIS");
3570     {
3571         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3572         bool    RETVAL;
3573
3574         RETVAL = THIS->RightDown();
3575         ST(0) = boolSV(RETVAL);
3576         sv_2mortal(ST(0));
3577     }
3578     XSRETURN(1);
3579 }
3580
3581
3582 XS(XS_Wx__MouseEvent_RightIsDown); /* prototype to pass -Wmissing-prototypes */
3583 XS(XS_Wx__MouseEvent_RightIsDown)
3584 {
3585 #ifdef dVAR
3586     dVAR; dXSARGS;
3587 #else
3588     dXSARGS;
3589 #endif
3590     if (items != 1)
3591        croak_xs_usage(cv,  "THIS");
3592     {
3593         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3594         bool    RETVAL;
3595
3596         RETVAL = THIS->RightIsDown();
3597         ST(0) = boolSV(RETVAL);
3598         sv_2mortal(ST(0));
3599     }
3600     XSRETURN(1);
3601 }
3602
3603
3604 XS(XS_Wx__MouseEvent_RightUp); /* prototype to pass -Wmissing-prototypes */
3605 XS(XS_Wx__MouseEvent_RightUp)
3606 {
3607 #ifdef dVAR
3608     dVAR; dXSARGS;
3609 #else
3610     dXSARGS;
3611 #endif
3612     if (items != 1)
3613        croak_xs_usage(cv,  "THIS");
3614     {
3615         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3616         bool    RETVAL;
3617
3618         RETVAL = THIS->RightUp();
3619         ST(0) = boolSV(RETVAL);
3620         sv_2mortal(ST(0));
3621     }
3622     XSRETURN(1);
3623 }
3624
3625 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
3626 #define XSubPPtmpAAAM 1
3627
3628
3629 XS(XS_Wx__MouseEvent_Aux1DClick); /* prototype to pass -Wmissing-prototypes */
3630 XS(XS_Wx__MouseEvent_Aux1DClick)
3631 {
3632 #ifdef dVAR
3633     dVAR; dXSARGS;
3634 #else
3635     dXSARGS;
3636 #endif
3637     if (items != 1)
3638        croak_xs_usage(cv,  "THIS");
3639     {
3640         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3641         bool    RETVAL;
3642
3643         RETVAL = THIS->Aux1DClick();
3644         ST(0) = boolSV(RETVAL);
3645         sv_2mortal(ST(0));
3646     }
3647     XSRETURN(1);
3648 }
3649
3650
3651 XS(XS_Wx__MouseEvent_Aux1Down); /* prototype to pass -Wmissing-prototypes */
3652 XS(XS_Wx__MouseEvent_Aux1Down)
3653 {
3654 #ifdef dVAR
3655     dVAR; dXSARGS;
3656 #else
3657     dXSARGS;
3658 #endif
3659     if (items != 1)
3660        croak_xs_usage(cv,  "THIS");
3661     {
3662         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3663         bool    RETVAL;
3664
3665         RETVAL = THIS->Aux1Down();
3666         ST(0) = boolSV(RETVAL);
3667         sv_2mortal(ST(0));
3668     }
3669     XSRETURN(1);
3670 }
3671
3672
3673 XS(XS_Wx__MouseEvent_Aux1IsDown); /* prototype to pass -Wmissing-prototypes */
3674 XS(XS_Wx__MouseEvent_Aux1IsDown)
3675 {
3676 #ifdef dVAR
3677     dVAR; dXSARGS;
3678 #else
3679     dXSARGS;
3680 #endif
3681     if (items != 1)
3682        croak_xs_usage(cv,  "THIS");
3683     {
3684         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3685         bool    RETVAL;
3686
3687         RETVAL = THIS->Aux1IsDown();
3688         ST(0) = boolSV(RETVAL);
3689         sv_2mortal(ST(0));
3690     }
3691     XSRETURN(1);
3692 }
3693
3694
3695 XS(XS_Wx__MouseEvent_Aux1Up); /* prototype to pass -Wmissing-prototypes */
3696 XS(XS_Wx__MouseEvent_Aux1Up)
3697 {
3698 #ifdef dVAR
3699     dVAR; dXSARGS;
3700 #else
3701     dXSARGS;
3702 #endif
3703     if (items != 1)
3704        croak_xs_usage(cv,  "THIS");
3705     {
3706         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3707         bool    RETVAL;
3708
3709         RETVAL = THIS->Aux1Up();
3710         ST(0) = boolSV(RETVAL);
3711         sv_2mortal(ST(0));
3712     }
3713     XSRETURN(1);
3714 }
3715
3716
3717 XS(XS_Wx__MouseEvent_Aux2DClick); /* prototype to pass -Wmissing-prototypes */
3718 XS(XS_Wx__MouseEvent_Aux2DClick)
3719 {
3720 #ifdef dVAR
3721     dVAR; dXSARGS;
3722 #else
3723     dXSARGS;
3724 #endif
3725     if (items != 1)
3726        croak_xs_usage(cv,  "THIS");
3727     {
3728         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3729         bool    RETVAL;
3730
3731         RETVAL = THIS->Aux2DClick();
3732         ST(0) = boolSV(RETVAL);
3733         sv_2mortal(ST(0));
3734     }
3735     XSRETURN(1);
3736 }
3737
3738
3739 XS(XS_Wx__MouseEvent_Aux2Down); /* prototype to pass -Wmissing-prototypes */
3740 XS(XS_Wx__MouseEvent_Aux2Down)
3741 {
3742 #ifdef dVAR
3743     dVAR; dXSARGS;
3744 #else
3745     dXSARGS;
3746 #endif
3747     if (items != 1)
3748        croak_xs_usage(cv,  "THIS");
3749     {
3750         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3751         bool    RETVAL;
3752
3753         RETVAL = THIS->Aux2Down();
3754         ST(0) = boolSV(RETVAL);
3755         sv_2mortal(ST(0));
3756     }
3757     XSRETURN(1);
3758 }
3759
3760
3761 XS(XS_Wx__MouseEvent_Aux2IsDown); /* prototype to pass -Wmissing-prototypes */
3762 XS(XS_Wx__MouseEvent_Aux2IsDown)
3763 {
3764 #ifdef dVAR
3765     dVAR; dXSARGS;
3766 #else
3767     dXSARGS;
3768 #endif
3769     if (items != 1)
3770        croak_xs_usage(cv,  "THIS");
3771     {
3772         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3773         bool    RETVAL;
3774
3775         RETVAL = THIS->Aux2IsDown();
3776         ST(0) = boolSV(RETVAL);
3777         sv_2mortal(ST(0));
3778     }
3779     XSRETURN(1);
3780 }
3781
3782
3783 XS(XS_Wx__MouseEvent_Aux2Up); /* prototype to pass -Wmissing-prototypes */
3784 XS(XS_Wx__MouseEvent_Aux2Up)
3785 {
3786 #ifdef dVAR
3787     dVAR; dXSARGS;
3788 #else
3789     dXSARGS;
3790 #endif
3791     if (items != 1)
3792        croak_xs_usage(cv,  "THIS");
3793     {
3794         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3795         bool    RETVAL;
3796
3797         RETVAL = THIS->Aux2Up();
3798         ST(0) = boolSV(RETVAL);
3799         sv_2mortal(ST(0));
3800     }
3801     XSRETURN(1);
3802 }
3803
3804 #endif
3805
3806 XS(XS_Wx__MouseEvent_ShiftDown); /* prototype to pass -Wmissing-prototypes */
3807 XS(XS_Wx__MouseEvent_ShiftDown)
3808 {
3809 #ifdef dVAR
3810     dVAR; dXSARGS;
3811 #else
3812     dXSARGS;
3813 #endif
3814     if (items != 1)
3815        croak_xs_usage(cv,  "THIS");
3816     {
3817         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3818         bool    RETVAL;
3819
3820         RETVAL = THIS->ShiftDown();
3821         ST(0) = boolSV(RETVAL);
3822         sv_2mortal(ST(0));
3823     }
3824     XSRETURN(1);
3825 }
3826
3827
3828 XS(XS_Wx__MouseEvent_GetButton); /* prototype to pass -Wmissing-prototypes */
3829 XS(XS_Wx__MouseEvent_GetButton)
3830 {
3831 #ifdef dVAR
3832     dVAR; dXSARGS;
3833 #else
3834     dXSARGS;
3835 #endif
3836     if (items != 1)
3837        croak_xs_usage(cv,  "THIS");
3838     {
3839         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3840         int     RETVAL;
3841         dXSTARG;
3842
3843         RETVAL = THIS->GetButton();
3844         XSprePUSH; PUSHi((IV)RETVAL);
3845     }
3846     XSRETURN(1);
3847 }
3848
3849 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
3850 #define XSubPPtmpAAAN 1
3851
3852
3853 XS(XS_Wx__MouseEvent_GetClickCount); /* prototype to pass -Wmissing-prototypes */
3854 XS(XS_Wx__MouseEvent_GetClickCount)
3855 {
3856 #ifdef dVAR
3857     dVAR; dXSARGS;
3858 #else
3859     dXSARGS;
3860 #endif
3861     if (items != 1)
3862        croak_xs_usage(cv,  "THIS");
3863     {
3864         wxMouseEvent *    THIS = (wxMouseEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseEvent" );
3865         int     RETVAL;
3866         dXSTARG;
3867
3868         RETVAL = THIS->GetClickCount();
3869         XSprePUSH; PUSHi((IV)RETVAL);
3870     }
3871     XSRETURN(1);
3872 }
3873
3874 #endif
3875
3876 XS(XS_Wx__MoveEvent_new); /* prototype to pass -Wmissing-prototypes */
3877 XS(XS_Wx__MoveEvent_new)
3878 {
3879 #ifdef dVAR
3880     dVAR; dXSARGS;
3881 #else
3882     dXSARGS;
3883 #endif
3884     if (items < 2 || items > 3)
3885        croak_xs_usage(cv,  "CLASS, point, id = 0");
3886     {
3887         wxPoint    point = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
3888         wxWindowID      id;
3889         char *  CLASS = (char *)SvPV_nolen(ST(0));
3890         wxMoveEvent *   RETVAL;
3891
3892         if (items < 3)
3893             id = 0;
3894         else {
3895     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
3896         }
3897
3898         RETVAL = new wxMoveEvent(point, id);
3899         ST(0) = sv_newmortal();
3900     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3901     wxPli_thread_sv_register( aTHX_ "Wx::MoveEvent", RETVAL, ST(0) );
3902
3903     }
3904     XSRETURN(1);
3905 }
3906
3907
3908 XS(XS_Wx__MoveEvent_GetPosition); /* prototype to pass -Wmissing-prototypes */
3909 XS(XS_Wx__MoveEvent_GetPosition)
3910 {
3911 #ifdef dVAR
3912     dVAR; dXSARGS;
3913 #else
3914     dXSARGS;
3915 #endif
3916     if (items != 1)
3917        croak_xs_usage(cv,  "THIS");
3918     {
3919         wxMoveEvent *    THIS = (wxMoveEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MoveEvent" );
3920         wxPoint *       RETVAL;
3921     RETVAL = new wxPoint( THIS->GetPosition() );
3922         ST(0) = sv_newmortal();
3923     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
3924     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
3925
3926     }
3927     XSRETURN(1);
3928 }
3929
3930 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
3931 #define XSubPPtmpAAAO 1
3932
3933
3934 XS(XS_Wx__MoveEvent_GetRect); /* prototype to pass -Wmissing-prototypes */
3935 XS(XS_Wx__MoveEvent_GetRect)
3936 {
3937 #ifdef dVAR
3938     dVAR; dXSARGS;
3939 #else
3940     dXSARGS;
3941 #endif
3942     if (items != 1)
3943        croak_xs_usage(cv,  "THIS");
3944     {
3945         wxMoveEvent *    THIS = (wxMoveEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MoveEvent" );
3946         wxRect *        RETVAL;
3947     RETVAL = new wxRect( THIS->GetRect() );
3948         ST(0) = sv_newmortal();
3949     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
3950     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
3951
3952     }
3953     XSRETURN(1);
3954 }
3955
3956 #endif
3957
3958 XS(XS_Wx__NotifyEvent_new); /* prototype to pass -Wmissing-prototypes */
3959 XS(XS_Wx__NotifyEvent_new)
3960 {
3961 #ifdef dVAR
3962     dVAR; dXSARGS;
3963 #else
3964     dXSARGS;
3965 #endif
3966     if (items < 1 || items > 3)
3967        croak_xs_usage(cv,  "CLASS, eventType = wxEVT_NULL, id = 0");
3968     {
3969         wxEventType     eventType;
3970         wxWindowID      id;
3971         char *  CLASS = (char *)SvPV_nolen(ST(0));
3972         wxNotifyEvent * RETVAL;
3973
3974         if (items < 2)
3975             eventType = wxEVT_NULL;
3976         else {
3977             eventType = (wxEventType)SvIV(ST(1));
3978         }
3979
3980         if (items < 3)
3981             id = 0;
3982         else {
3983     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
3984         }
3985
3986         RETVAL = new wxNotifyEvent(eventType, id);
3987         ST(0) = sv_newmortal();
3988     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3989     wxPli_thread_sv_register( aTHX_ "Wx::NotifyEvent", RETVAL, ST(0) );
3990
3991     }
3992     XSRETURN(1);
3993 }
3994
3995
3996 XS(XS_Wx__NotifyEvent_IsAllowed); /* prototype to pass -Wmissing-prototypes */
3997 XS(XS_Wx__NotifyEvent_IsAllowed)
3998 {
3999 #ifdef dVAR
4000     dVAR; dXSARGS;
4001 #else
4002     dXSARGS;
4003 #endif
4004     if (items != 1)
4005        croak_xs_usage(cv,  "THIS");
4006     {
4007         wxNotifyEvent *    THIS = (wxNotifyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NotifyEvent" );
4008         bool    RETVAL;
4009
4010         RETVAL = THIS->IsAllowed();
4011         ST(0) = boolSV(RETVAL);
4012         sv_2mortal(ST(0));
4013     }
4014     XSRETURN(1);
4015 }
4016
4017
4018 XS(XS_Wx__NotifyEvent_Veto); /* prototype to pass -Wmissing-prototypes */
4019 XS(XS_Wx__NotifyEvent_Veto)
4020 {
4021 #ifdef dVAR
4022     dVAR; dXSARGS;
4023 #else
4024     dXSARGS;
4025 #endif
4026     if (items != 1)
4027        croak_xs_usage(cv,  "THIS");
4028     {
4029         wxNotifyEvent *    THIS = (wxNotifyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NotifyEvent" );
4030
4031         THIS->Veto();
4032     }
4033     XSRETURN_EMPTY;
4034 }
4035
4036
4037 XS(XS_Wx__NotifyEvent_Allow); /* prototype to pass -Wmissing-prototypes */
4038 XS(XS_Wx__NotifyEvent_Allow)
4039 {
4040 #ifdef dVAR
4041     dVAR; dXSARGS;
4042 #else
4043     dXSARGS;
4044 #endif
4045     if (items != 1)
4046        croak_xs_usage(cv,  "THIS");
4047     {
4048         wxNotifyEvent *    THIS = (wxNotifyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NotifyEvent" );
4049
4050         THIS->Allow();
4051     }
4052     XSRETURN_EMPTY;
4053 }
4054
4055
4056 XS(XS_Wx__PaintEvent_new); /* prototype to pass -Wmissing-prototypes */
4057 XS(XS_Wx__PaintEvent_new)
4058 {
4059 #ifdef dVAR
4060     dVAR; dXSARGS;
4061 #else
4062     dXSARGS;
4063 #endif
4064     if (items < 1 || items > 2)
4065        croak_xs_usage(cv,  "CLASS, id = 0");
4066     {
4067         wxWindowID      id;
4068         char *  CLASS = (char *)SvPV_nolen(ST(0));
4069         wxPaintEvent *  RETVAL;
4070
4071         if (items < 2)
4072             id = 0;
4073         else {
4074     id = wxPli_get_wxwindowid( aTHX_ ST(1) );
4075         }
4076
4077         RETVAL = new wxPaintEvent(id);
4078         ST(0) = sv_newmortal();
4079     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4080     wxPli_thread_sv_register( aTHX_ "Wx::PaintEvent", RETVAL, ST(0) );
4081
4082     }
4083     XSRETURN(1);
4084 }
4085
4086
4087 XS(XS_Wx__SizeEvent_new); /* prototype to pass -Wmissing-prototypes */
4088 XS(XS_Wx__SizeEvent_new)
4089 {
4090 #ifdef dVAR
4091     dVAR; dXSARGS;
4092 #else
4093     dXSARGS;
4094 #endif
4095     if (items < 2 || items > 3)
4096        croak_xs_usage(cv,  "CLASS, size, id = 0");
4097     {
4098         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(1) );
4099         wxWindowID      id;
4100         char *  CLASS = (char *)SvPV_nolen(ST(0));
4101         wxSizeEvent *   RETVAL;
4102
4103         if (items < 3)
4104             id = 0;
4105         else {
4106     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
4107         }
4108
4109         RETVAL = new wxSizeEvent(size, id);
4110         ST(0) = sv_newmortal();
4111     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4112     wxPli_thread_sv_register( aTHX_ "Wx::SizeEvent", RETVAL, ST(0) );
4113
4114     }
4115     XSRETURN(1);
4116 }
4117
4118
4119 XS(XS_Wx__SizeEvent_GetSize); /* prototype to pass -Wmissing-prototypes */
4120 XS(XS_Wx__SizeEvent_GetSize)
4121 {
4122 #ifdef dVAR
4123     dVAR; dXSARGS;
4124 #else
4125     dXSARGS;
4126 #endif
4127     if (items != 1)
4128        croak_xs_usage(cv,  "THIS");
4129     {
4130         wxSizeEvent *    THIS = (wxSizeEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SizeEvent" );
4131         wxSize *        RETVAL;
4132     RETVAL = new wxSize( THIS->GetSize() );
4133         ST(0) = sv_newmortal();
4134     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
4135     wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
4136
4137     }
4138     XSRETURN(1);
4139 }
4140
4141 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
4142 #define XSubPPtmpAAAP 1
4143
4144
4145 XS(XS_Wx__SizeEvent_GetRect); /* prototype to pass -Wmissing-prototypes */
4146 XS(XS_Wx__SizeEvent_GetRect)
4147 {
4148 #ifdef dVAR
4149     dVAR; dXSARGS;
4150 #else
4151     dXSARGS;
4152 #endif
4153     if (items != 1)
4154        croak_xs_usage(cv,  "THIS");
4155     {
4156         wxSizeEvent *    THIS = (wxSizeEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SizeEvent" );
4157         wxRect *        RETVAL;
4158     RETVAL = new wxRect( THIS->GetRect() );
4159         ST(0) = sv_newmortal();
4160     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
4161     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
4162
4163     }
4164     XSRETURN(1);
4165 }
4166
4167 #endif
4168
4169 XS(XS_Wx__ScrollEvent_GetOrientation); /* prototype to pass -Wmissing-prototypes */
4170 XS(XS_Wx__ScrollEvent_GetOrientation)
4171 {
4172 #ifdef dVAR
4173     dVAR; dXSARGS;
4174 #else
4175     dXSARGS;
4176 #endif
4177     if (items != 1)
4178        croak_xs_usage(cv,  "THIS");
4179     {
4180         wxScrollEvent *    THIS = (wxScrollEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ScrollEvent" );
4181         int     RETVAL;
4182         dXSTARG;
4183
4184         RETVAL = THIS->GetOrientation();
4185         XSprePUSH; PUSHi((IV)RETVAL);
4186     }
4187     XSRETURN(1);
4188 }
4189
4190
4191 XS(XS_Wx__ScrollEvent_GetPosition); /* prototype to pass -Wmissing-prototypes */
4192 XS(XS_Wx__ScrollEvent_GetPosition)
4193 {
4194 #ifdef dVAR
4195     dVAR; dXSARGS;
4196 #else
4197     dXSARGS;
4198 #endif
4199     if (items != 1)
4200        croak_xs_usage(cv,  "THIS");
4201     {
4202         wxScrollEvent *    THIS = (wxScrollEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ScrollEvent" );
4203         int     RETVAL;
4204         dXSTARG;
4205
4206         RETVAL = THIS->GetPosition();
4207         XSprePUSH; PUSHi((IV)RETVAL);
4208     }
4209     XSRETURN(1);
4210 }
4211
4212
4213 XS(XS_Wx__ScrollWinEvent_new); /* prototype to pass -Wmissing-prototypes */
4214 XS(XS_Wx__ScrollWinEvent_new)
4215 {
4216 #ifdef dVAR
4217     dVAR; dXSARGS;
4218 #else
4219     dXSARGS;
4220 #endif
4221     if (items < 1 || items > 4)
4222        croak_xs_usage(cv,  "CLASS, eventType = 0, pos = 0, orientation = 0");
4223     {
4224         wxEventType     eventType;
4225         int     pos;
4226         int     orientation;
4227         char *  CLASS = (char *)SvPV_nolen(ST(0));
4228         wxScrollWinEvent *      RETVAL;
4229
4230         if (items < 2)
4231             eventType = 0;
4232         else {
4233             eventType = (wxEventType)SvIV(ST(1));
4234         }
4235
4236         if (items < 3)
4237             pos = 0;
4238         else {
4239             pos = (int)SvIV(ST(2));
4240         }
4241
4242         if (items < 4)
4243             orientation = 0;
4244         else {
4245             orientation = (int)SvIV(ST(3));
4246         }
4247
4248         RETVAL = new wxScrollWinEvent(eventType, pos, orientation);
4249         ST(0) = sv_newmortal();
4250     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4251     wxPli_thread_sv_register( aTHX_ "Wx::ScrollWinEvent", RETVAL, ST(0) );
4252
4253     }
4254     XSRETURN(1);
4255 }
4256
4257
4258 XS(XS_Wx__ScrollWinEvent_GetOrientation); /* prototype to pass -Wmissing-prototypes */
4259 XS(XS_Wx__ScrollWinEvent_GetOrientation)
4260 {
4261 #ifdef dVAR
4262     dVAR; dXSARGS;
4263 #else
4264     dXSARGS;
4265 #endif
4266     if (items != 1)
4267        croak_xs_usage(cv,  "THIS");
4268     {
4269         wxScrollWinEvent *    THIS = (wxScrollWinEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ScrollWinEvent" );
4270         int     RETVAL;
4271         dXSTARG;
4272
4273         RETVAL = THIS->GetOrientation();
4274         XSprePUSH; PUSHi((IV)RETVAL);
4275     }
4276     XSRETURN(1);
4277 }
4278
4279
4280 XS(XS_Wx__ScrollWinEvent_GetPosition); /* prototype to pass -Wmissing-prototypes */
4281 XS(XS_Wx__ScrollWinEvent_GetPosition)
4282 {
4283 #ifdef dVAR
4284     dVAR; dXSARGS;
4285 #else
4286     dXSARGS;
4287 #endif
4288     if (items != 1)
4289        croak_xs_usage(cv,  "THIS");
4290     {
4291         wxScrollWinEvent *    THIS = (wxScrollWinEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ScrollWinEvent" );
4292         int     RETVAL;
4293         dXSTARG;
4294
4295         RETVAL = THIS->GetPosition();
4296         XSprePUSH; PUSHi((IV)RETVAL);
4297     }
4298     XSRETURN(1);
4299 }
4300
4301
4302 XS(XS_Wx__SetCursorEvent_new); /* prototype to pass -Wmissing-prototypes */
4303 XS(XS_Wx__SetCursorEvent_new)
4304 {
4305 #ifdef dVAR
4306     dVAR; dXSARGS;
4307 #else
4308     dXSARGS;
4309 #endif
4310     if (items < 1 || items > 3)
4311        croak_xs_usage(cv,  "CLASS, x = 0, y = 0");
4312     {
4313         wxCoord x;
4314         wxCoord y;
4315         char *  CLASS = (char *)SvPV_nolen(ST(0));
4316         wxSetCursorEvent *      RETVAL;
4317
4318         if (items < 2)
4319             x = 0;
4320         else {
4321             x = (wxCoord)SvIV(ST(1));
4322         }
4323
4324         if (items < 3)
4325             y = 0;
4326         else {
4327             y = (wxCoord)SvIV(ST(2));
4328         }
4329
4330         RETVAL = new wxSetCursorEvent(x, y);
4331         ST(0) = sv_newmortal();
4332     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4333     wxPli_thread_sv_register( aTHX_ "Wx::SetCursorEvent", RETVAL, ST(0) );
4334
4335     }
4336     XSRETURN(1);
4337 }
4338
4339
4340 XS(XS_Wx__SetCursorEvent_GetX); /* prototype to pass -Wmissing-prototypes */
4341 XS(XS_Wx__SetCursorEvent_GetX)
4342 {
4343 #ifdef dVAR
4344     dVAR; dXSARGS;
4345 #else
4346     dXSARGS;
4347 #endif
4348     if (items != 1)
4349        croak_xs_usage(cv,  "THIS");
4350     {
4351         wxSetCursorEvent *    THIS = (wxSetCursorEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SetCursorEvent" );
4352         wxCoord RETVAL;
4353         dXSTARG;
4354
4355         RETVAL = THIS->GetX();
4356         XSprePUSH; PUSHi((IV)RETVAL);
4357     }
4358     XSRETURN(1);
4359 }
4360
4361
4362 XS(XS_Wx__SetCursorEvent_GetY); /* prototype to pass -Wmissing-prototypes */
4363 XS(XS_Wx__SetCursorEvent_GetY)
4364 {
4365 #ifdef dVAR
4366     dVAR; dXSARGS;
4367 #else
4368     dXSARGS;
4369 #endif
4370     if (items != 1)
4371        croak_xs_usage(cv,  "THIS");
4372     {
4373         wxSetCursorEvent *    THIS = (wxSetCursorEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SetCursorEvent" );
4374         wxCoord RETVAL;
4375         dXSTARG;
4376
4377         RETVAL = THIS->GetY();
4378         XSprePUSH; PUSHi((IV)RETVAL);
4379     }
4380     XSRETURN(1);
4381 }
4382
4383
4384 XS(XS_Wx__SetCursorEvent_SetCursor); /* prototype to pass -Wmissing-prototypes */
4385 XS(XS_Wx__SetCursorEvent_SetCursor)
4386 {
4387 #ifdef dVAR
4388     dVAR; dXSARGS;
4389 #else
4390     dXSARGS;
4391 #endif
4392     if (items != 2)
4393        croak_xs_usage(cv,  "THIS, cursor");
4394     {
4395         wxCursor*    cursor = (wxCursor *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Cursor" );
4396         wxSetCursorEvent *    THIS = (wxSetCursorEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SetCursorEvent" );
4397
4398         THIS->SetCursor(*cursor);
4399     }
4400     XSRETURN_EMPTY;
4401 }
4402
4403
4404 XS(XS_Wx__SetCursorEvent_GetCursor); /* prototype to pass -Wmissing-prototypes */
4405 XS(XS_Wx__SetCursorEvent_GetCursor)
4406 {
4407 #ifdef dVAR
4408     dVAR; dXSARGS;
4409 #else
4410     dXSARGS;
4411 #endif
4412     if (items != 1)
4413        croak_xs_usage(cv,  "THIS");
4414     {
4415         wxSetCursorEvent *    THIS = (wxSetCursorEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SetCursorEvent" );
4416         wxCursor *      RETVAL;
4417     RETVAL = new wxCursor( THIS->GetCursor() );
4418         ST(0) = sv_newmortal();
4419     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4420     wxPli_thread_sv_register( aTHX_ "Wx::Cursor", RETVAL, ST(0) );
4421
4422     }
4423     XSRETURN(1);
4424 }
4425
4426
4427 XS(XS_Wx__SetCursorEvent_HasCursor); /* prototype to pass -Wmissing-prototypes */
4428 XS(XS_Wx__SetCursorEvent_HasCursor)
4429 {
4430 #ifdef dVAR
4431     dVAR; dXSARGS;
4432 #else
4433     dXSARGS;
4434 #endif
4435     if (items != 1)
4436        croak_xs_usage(cv,  "THIS");
4437     {
4438         wxSetCursorEvent *    THIS = (wxSetCursorEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::SetCursorEvent" );
4439         bool    RETVAL;
4440
4441         RETVAL = THIS->HasCursor();
4442         ST(0) = boolSV(RETVAL);
4443         sv_2mortal(ST(0));
4444     }
4445     XSRETURN(1);
4446 }
4447
4448
4449 XS(XS_Wx__SysColourChangedEvent_new); /* prototype to pass -Wmissing-prototypes */
4450 XS(XS_Wx__SysColourChangedEvent_new)
4451 {
4452 #ifdef dVAR
4453     dVAR; dXSARGS;
4454 #else
4455     dXSARGS;
4456 #endif
4457     if (items != 1)
4458        croak_xs_usage(cv,  "CLASS");
4459     {
4460         char *  CLASS = (char *)SvPV_nolen(ST(0));
4461         wxSysColourChangedEvent *       RETVAL;
4462
4463         RETVAL = new wxSysColourChangedEvent();
4464         ST(0) = sv_newmortal();
4465     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4466     wxPli_thread_sv_register( aTHX_ "Wx::SysColourChangedEvent", RETVAL, ST(0) );
4467
4468     }
4469     XSRETURN(1);
4470 }
4471
4472
4473 XS(XS_Wx__UpdateUIEvent_CanUpdate); /* prototype to pass -Wmissing-prototypes */
4474 XS(XS_Wx__UpdateUIEvent_CanUpdate)
4475 {
4476 #ifdef dVAR
4477     dVAR; dXSARGS;
4478 #else
4479     dXSARGS;
4480 #endif
4481     if (items != 1)
4482        croak_xs_usage(cv,  "window");
4483     {
4484         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Window" );
4485         bool    RETVAL;
4486     RETVAL = wxUpdateUIEvent::CanUpdate( window );
4487         ST(0) = boolSV(RETVAL);
4488         sv_2mortal(ST(0));
4489     }
4490     XSRETURN(1);
4491 }
4492
4493
4494 XS(XS_Wx__UpdateUIEvent_GetMode); /* prototype to pass -Wmissing-prototypes */
4495 XS(XS_Wx__UpdateUIEvent_GetMode)
4496 {
4497 #ifdef dVAR
4498     dVAR; dXSARGS;
4499 #else
4500     dXSARGS;
4501 #endif
4502     if (items != 0)
4503        croak_xs_usage(cv,  "");
4504     {
4505         wxUpdateUIMode  RETVAL;
4506         dXSTARG;
4507     RETVAL = wxUpdateUIEvent::GetMode();
4508         XSprePUSH; PUSHi((IV)RETVAL);
4509     }
4510     XSRETURN(1);
4511 }
4512
4513
4514 XS(XS_Wx__UpdateUIEvent_SetMode); /* prototype to pass -Wmissing-prototypes */
4515 XS(XS_Wx__UpdateUIEvent_SetMode)
4516 {
4517 #ifdef dVAR
4518     dVAR; dXSARGS;
4519 #else
4520     dXSARGS;
4521 #endif
4522     if (items != 1)
4523        croak_xs_usage(cv,  "mode");
4524     {
4525         wxUpdateUIMode  mode = (wxUpdateUIMode)SvIV(ST(0));
4526     wxUpdateUIEvent::SetMode( mode );
4527     }
4528     XSRETURN_EMPTY;
4529 }
4530
4531
4532 XS(XS_Wx__UpdateUIEvent_GetUpdateInterval); /* prototype to pass -Wmissing-prototypes */
4533 XS(XS_Wx__UpdateUIEvent_GetUpdateInterval)
4534 {
4535 #ifdef dVAR
4536     dVAR; dXSARGS;
4537 #else
4538     dXSARGS;
4539 #endif
4540     if (items != 0)
4541        croak_xs_usage(cv,  "");
4542     {
4543         long    RETVAL;
4544         dXSTARG;
4545     RETVAL = wxUpdateUIEvent::GetUpdateInterval();
4546         XSprePUSH; PUSHi((IV)RETVAL);
4547     }
4548     XSRETURN(1);
4549 }
4550
4551
4552 XS(XS_Wx__UpdateUIEvent_ResetUpdateTime); /* prototype to pass -Wmissing-prototypes */
4553 XS(XS_Wx__UpdateUIEvent_ResetUpdateTime)
4554 {
4555 #ifdef dVAR
4556     dVAR; dXSARGS;
4557 #else
4558     dXSARGS;
4559 #endif
4560     if (items != 0)
4561        croak_xs_usage(cv,  "");
4562     {
4563     wxUpdateUIEvent::ResetUpdateTime();
4564     }
4565     XSRETURN_EMPTY;
4566 }
4567
4568
4569 XS(XS_Wx__UpdateUIEvent_SetUpdateInterval); /* prototype to pass -Wmissing-prototypes */
4570 XS(XS_Wx__UpdateUIEvent_SetUpdateInterval)
4571 {
4572 #ifdef dVAR
4573     dVAR; dXSARGS;
4574 #else
4575     dXSARGS;
4576 #endif
4577     if (items != 1)
4578        croak_xs_usage(cv,  "interval");
4579     {
4580         long    interval = (long)SvIV(ST(0));
4581     wxUpdateUIEvent::SetUpdateInterval( interval );
4582     }
4583     XSRETURN_EMPTY;
4584 }
4585
4586
4587 XS(XS_Wx__UpdateUIEvent_new); /* prototype to pass -Wmissing-prototypes */
4588 XS(XS_Wx__UpdateUIEvent_new)
4589 {
4590 #ifdef dVAR
4591     dVAR; dXSARGS;
4592 #else
4593     dXSARGS;
4594 #endif
4595     if (items < 1 || items > 2)
4596        croak_xs_usage(cv,  "CLASS, commandId = 0");
4597     {
4598         wxWindowID      commandId;
4599         char *  CLASS = (char *)SvPV_nolen(ST(0));
4600         wxUpdateUIEvent *       RETVAL;
4601
4602         if (items < 2)
4603             commandId = 0;
4604         else {
4605     commandId = wxPli_get_wxwindowid( aTHX_ ST(1) );
4606         }
4607
4608         RETVAL = new wxUpdateUIEvent(commandId);
4609         ST(0) = sv_newmortal();
4610     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4611     wxPli_thread_sv_register( aTHX_ "Wx::UpdateUIEvent", RETVAL, ST(0) );
4612
4613     }
4614     XSRETURN(1);
4615 }
4616
4617
4618 XS(XS_Wx__UpdateUIEvent_Check); /* prototype to pass -Wmissing-prototypes */
4619 XS(XS_Wx__UpdateUIEvent_Check)
4620 {
4621 #ifdef dVAR
4622     dVAR; dXSARGS;
4623 #else
4624     dXSARGS;
4625 #endif
4626     if (items != 2)
4627        croak_xs_usage(cv,  "THIS, check");
4628     {
4629         bool    check = (bool)SvTRUE(ST(1));
4630         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4631
4632         THIS->Check(check);
4633     }
4634     XSRETURN_EMPTY;
4635 }
4636
4637 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
4638 #define XSubPPtmpAAAQ 1
4639
4640
4641 XS(XS_Wx__UpdateUIEvent_Show); /* prototype to pass -Wmissing-prototypes */
4642 XS(XS_Wx__UpdateUIEvent_Show)
4643 {
4644 #ifdef dVAR
4645     dVAR; dXSARGS;
4646 #else
4647     dXSARGS;
4648 #endif
4649     if (items != 2)
4650        croak_xs_usage(cv,  "THIS, show");
4651     {
4652         bool    show = (bool)SvTRUE(ST(1));
4653         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4654
4655         THIS->Show(show);
4656     }
4657     XSRETURN_EMPTY;
4658 }
4659
4660 #endif
4661
4662 XS(XS_Wx__UpdateUIEvent_Enable); /* prototype to pass -Wmissing-prototypes */
4663 XS(XS_Wx__UpdateUIEvent_Enable)
4664 {
4665 #ifdef dVAR
4666     dVAR; dXSARGS;
4667 #else
4668     dXSARGS;
4669 #endif
4670     if (items != 2)
4671        croak_xs_usage(cv,  "THIS, enable");
4672     {
4673         bool    enable = (bool)SvTRUE(ST(1));
4674         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4675
4676         THIS->Enable(enable);
4677     }
4678     XSRETURN_EMPTY;
4679 }
4680
4681
4682 XS(XS_Wx__UpdateUIEvent_GetChecked); /* prototype to pass -Wmissing-prototypes */
4683 XS(XS_Wx__UpdateUIEvent_GetChecked)
4684 {
4685 #ifdef dVAR
4686     dVAR; dXSARGS;
4687 #else
4688     dXSARGS;
4689 #endif
4690     if (items != 1)
4691        croak_xs_usage(cv,  "THIS");
4692     {
4693         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4694         bool    RETVAL;
4695
4696         RETVAL = THIS->GetChecked();
4697         ST(0) = boolSV(RETVAL);
4698         sv_2mortal(ST(0));
4699     }
4700     XSRETURN(1);
4701 }
4702
4703 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
4704 #define XSubPPtmpAAAR 1
4705
4706
4707 XS(XS_Wx__UpdateUIEvent_GetShown); /* prototype to pass -Wmissing-prototypes */
4708 XS(XS_Wx__UpdateUIEvent_GetShown)
4709 {
4710 #ifdef dVAR
4711     dVAR; dXSARGS;
4712 #else
4713     dXSARGS;
4714 #endif
4715     if (items != 1)
4716        croak_xs_usage(cv,  "THIS");
4717     {
4718         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4719         bool    RETVAL;
4720
4721         RETVAL = THIS->GetShown();
4722         ST(0) = boolSV(RETVAL);
4723         sv_2mortal(ST(0));
4724     }
4725     XSRETURN(1);
4726 }
4727
4728 #endif
4729
4730 XS(XS_Wx__UpdateUIEvent_GetSetEnabled); /* prototype to pass -Wmissing-prototypes */
4731 XS(XS_Wx__UpdateUIEvent_GetSetEnabled)
4732 {
4733 #ifdef dVAR
4734     dVAR; dXSARGS;
4735 #else
4736     dXSARGS;
4737 #endif
4738     if (items != 1)
4739        croak_xs_usage(cv,  "THIS");
4740     {
4741         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4742         bool    RETVAL;
4743
4744         RETVAL = THIS->GetSetEnabled();
4745         ST(0) = boolSV(RETVAL);
4746         sv_2mortal(ST(0));
4747     }
4748     XSRETURN(1);
4749 }
4750
4751
4752 XS(XS_Wx__UpdateUIEvent_GetSetChecked); /* prototype to pass -Wmissing-prototypes */
4753 XS(XS_Wx__UpdateUIEvent_GetSetChecked)
4754 {
4755 #ifdef dVAR
4756     dVAR; dXSARGS;
4757 #else
4758     dXSARGS;
4759 #endif
4760     if (items != 1)
4761        croak_xs_usage(cv,  "THIS");
4762     {
4763         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4764         bool    RETVAL;
4765
4766         RETVAL = THIS->GetSetChecked();
4767         ST(0) = boolSV(RETVAL);
4768         sv_2mortal(ST(0));
4769     }
4770     XSRETURN(1);
4771 }
4772
4773 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
4774 #define XSubPPtmpAAAS 1
4775
4776
4777 XS(XS_Wx__UpdateUIEvent_GetSetShown); /* prototype to pass -Wmissing-prototypes */
4778 XS(XS_Wx__UpdateUIEvent_GetSetShown)
4779 {
4780 #ifdef dVAR
4781     dVAR; dXSARGS;
4782 #else
4783     dXSARGS;
4784 #endif
4785     if (items != 1)
4786        croak_xs_usage(cv,  "THIS");
4787     {
4788         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4789         bool    RETVAL;
4790
4791         RETVAL = THIS->GetSetShown();
4792         ST(0) = boolSV(RETVAL);
4793         sv_2mortal(ST(0));
4794     }
4795     XSRETURN(1);
4796 }
4797
4798 #endif
4799
4800 XS(XS_Wx__UpdateUIEvent_GetEnabled); /* prototype to pass -Wmissing-prototypes */
4801 XS(XS_Wx__UpdateUIEvent_GetEnabled)
4802 {
4803 #ifdef dVAR
4804     dVAR; dXSARGS;
4805 #else
4806     dXSARGS;
4807 #endif
4808     if (items != 1)
4809        croak_xs_usage(cv,  "THIS");
4810     {
4811         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4812         bool    RETVAL;
4813
4814         RETVAL = THIS->GetEnabled();
4815         ST(0) = boolSV(RETVAL);
4816         sv_2mortal(ST(0));
4817     }
4818     XSRETURN(1);
4819 }
4820
4821
4822 XS(XS_Wx__UpdateUIEvent_GetText); /* prototype to pass -Wmissing-prototypes */
4823 XS(XS_Wx__UpdateUIEvent_GetText)
4824 {
4825 #ifdef dVAR
4826     dVAR; dXSARGS;
4827 #else
4828     dXSARGS;
4829 #endif
4830     if (items != 1)
4831        croak_xs_usage(cv,  "THIS");
4832     {
4833         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4834         wxString        RETVAL;
4835
4836         RETVAL = THIS->GetText();
4837         ST(0) = sv_newmortal();
4838     WXSTRING_OUTPUT( RETVAL, ST(0) );
4839
4840     }
4841     XSRETURN(1);
4842 }
4843
4844
4845 XS(XS_Wx__UpdateUIEvent_SetText); /* prototype to pass -Wmissing-prototypes */
4846 XS(XS_Wx__UpdateUIEvent_SetText)
4847 {
4848 #ifdef dVAR
4849     dVAR; dXSARGS;
4850 #else
4851     dXSARGS;
4852 #endif
4853     if (items != 2)
4854        croak_xs_usage(cv,  "THIS, text");
4855     {
4856         wxString        text;
4857         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4858
4859     WXSTRING_INPUT( text, wxString, ST(1) );
4860
4861         THIS->SetText(text);
4862     }
4863     XSRETURN_EMPTY;
4864 }
4865
4866
4867 XS(XS_Wx__UpdateUIEvent_GetSetText); /* prototype to pass -Wmissing-prototypes */
4868 XS(XS_Wx__UpdateUIEvent_GetSetText)
4869 {
4870 #ifdef dVAR
4871     dVAR; dXSARGS;
4872 #else
4873     dXSARGS;
4874 #endif
4875     if (items != 1)
4876        croak_xs_usage(cv,  "THIS");
4877     {
4878         wxUpdateUIEvent *    THIS = (wxUpdateUIEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::UpdateUIEvent" );
4879         bool    RETVAL;
4880
4881         RETVAL = THIS->GetSetText();
4882         ST(0) = boolSV(RETVAL);
4883         sv_2mortal(ST(0));
4884     }
4885     XSRETURN(1);
4886 }
4887
4888
4889 XS(XS_Wx__NavigationKeyEvent_new); /* prototype to pass -Wmissing-prototypes */
4890 XS(XS_Wx__NavigationKeyEvent_new)
4891 {
4892 #ifdef dVAR
4893     dVAR; dXSARGS;
4894 #else
4895     dXSARGS;
4896 #endif
4897     if (items != 1)
4898        croak_xs_usage(cv,  "CLASS");
4899     {
4900         char *  CLASS = (char *)SvPV_nolen(ST(0));
4901         wxNavigationKeyEvent *  RETVAL;
4902
4903         RETVAL = new wxNavigationKeyEvent();
4904         ST(0) = sv_newmortal();
4905     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4906     wxPli_thread_sv_register( aTHX_ "Wx::NavigationKeyEvent", RETVAL, ST(0) );
4907
4908     }
4909     XSRETURN(1);
4910 }
4911
4912
4913 XS(XS_Wx__NavigationKeyEvent_GetDirection); /* prototype to pass -Wmissing-prototypes */
4914 XS(XS_Wx__NavigationKeyEvent_GetDirection)
4915 {
4916 #ifdef dVAR
4917     dVAR; dXSARGS;
4918 #else
4919     dXSARGS;
4920 #endif
4921     if (items != 1)
4922        croak_xs_usage(cv,  "THIS");
4923     {
4924         wxNavigationKeyEvent *    THIS = (wxNavigationKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NavigationKeyEvent" );
4925         bool    RETVAL;
4926
4927         RETVAL = THIS->GetDirection();
4928         ST(0) = boolSV(RETVAL);
4929         sv_2mortal(ST(0));
4930     }
4931     XSRETURN(1);
4932 }
4933
4934
4935 XS(XS_Wx__NavigationKeyEvent_SetDirection); /* prototype to pass -Wmissing-prototypes */
4936 XS(XS_Wx__NavigationKeyEvent_SetDirection)
4937 {
4938 #ifdef dVAR
4939     dVAR; dXSARGS;
4940 #else
4941     dXSARGS;
4942 #endif
4943     if (items != 2)
4944        croak_xs_usage(cv,  "THIS, direction");
4945     {
4946         bool    direction = (bool)SvTRUE(ST(1));
4947         wxNavigationKeyEvent *    THIS = (wxNavigationKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NavigationKeyEvent" );
4948
4949         THIS->SetDirection(direction);
4950     }
4951     XSRETURN_EMPTY;
4952 }
4953
4954
4955 XS(XS_Wx__NavigationKeyEvent_IsWindowChange); /* prototype to pass -Wmissing-prototypes */
4956 XS(XS_Wx__NavigationKeyEvent_IsWindowChange)
4957 {
4958 #ifdef dVAR
4959     dVAR; dXSARGS;
4960 #else
4961     dXSARGS;
4962 #endif
4963     if (items != 1)
4964        croak_xs_usage(cv,  "THIS");
4965     {
4966         wxNavigationKeyEvent *    THIS = (wxNavigationKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NavigationKeyEvent" );
4967         bool    RETVAL;
4968
4969         RETVAL = THIS->IsWindowChange();
4970         ST(0) = boolSV(RETVAL);
4971         sv_2mortal(ST(0));
4972     }
4973     XSRETURN(1);
4974 }
4975
4976
4977 XS(XS_Wx__NavigationKeyEvent_SetWindowChange); /* prototype to pass -Wmissing-prototypes */
4978 XS(XS_Wx__NavigationKeyEvent_SetWindowChange)
4979 {
4980 #ifdef dVAR
4981     dVAR; dXSARGS;
4982 #else
4983     dXSARGS;
4984 #endif
4985     if (items != 2)
4986        croak_xs_usage(cv,  "THIS, change");
4987     {
4988         bool    change = (bool)SvTRUE(ST(1));
4989         wxNavigationKeyEvent *    THIS = (wxNavigationKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NavigationKeyEvent" );
4990
4991         THIS->SetWindowChange(change);
4992     }
4993     XSRETURN_EMPTY;
4994 }
4995
4996
4997 XS(XS_Wx__NavigationKeyEvent_GetCurrentFocus); /* prototype to pass -Wmissing-prototypes */
4998 XS(XS_Wx__NavigationKeyEvent_GetCurrentFocus)
4999 {
5000 #ifdef dVAR
5001     dVAR; dXSARGS;
5002 #else
5003     dXSARGS;
5004 #endif
5005     if (items != 1)
5006        croak_xs_usage(cv,  "THIS");
5007     {
5008         wxNavigationKeyEvent *    THIS = (wxNavigationKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NavigationKeyEvent" );
5009         wxWindow *      RETVAL;
5010
5011         RETVAL = THIS->GetCurrentFocus();
5012         ST(0) = sv_newmortal();
5013     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5014
5015     }
5016     XSRETURN(1);
5017 }
5018
5019
5020 XS(XS_Wx__NavigationKeyEvent_SetCurrentFocus); /* prototype to pass -Wmissing-prototypes */
5021 XS(XS_Wx__NavigationKeyEvent_SetCurrentFocus)
5022 {
5023 #ifdef dVAR
5024     dVAR; dXSARGS;
5025 #else
5026     dXSARGS;
5027 #endif
5028     if (items != 2)
5029        croak_xs_usage(cv,  "THIS, focus");
5030     {
5031         wxWindow*    focus = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
5032         wxNavigationKeyEvent *    THIS = (wxNavigationKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NavigationKeyEvent" );
5033
5034         THIS->SetCurrentFocus(focus);
5035     }
5036     XSRETURN_EMPTY;
5037 }
5038
5039 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
5040 #define XSubPPtmpAAAT 1
5041
5042
5043 XS(XS_Wx__NavigationKeyEvent_IsFromTab); /* prototype to pass -Wmissing-prototypes */
5044 XS(XS_Wx__NavigationKeyEvent_IsFromTab)
5045 {
5046 #ifdef dVAR
5047     dVAR; dXSARGS;
5048 #else
5049     dXSARGS;
5050 #endif
5051     if (items != 1)
5052        croak_xs_usage(cv,  "THIS");
5053     {
5054         wxNavigationKeyEvent *    THIS = (wxNavigationKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NavigationKeyEvent" );
5055         bool    RETVAL;
5056
5057         RETVAL = THIS->IsFromTab();
5058         ST(0) = boolSV(RETVAL);
5059         sv_2mortal(ST(0));
5060     }
5061     XSRETURN(1);
5062 }
5063
5064
5065 XS(XS_Wx__NavigationKeyEvent_SetFromTab); /* prototype to pass -Wmissing-prototypes */
5066 XS(XS_Wx__NavigationKeyEvent_SetFromTab)
5067 {
5068 #ifdef dVAR
5069     dVAR; dXSARGS;
5070 #else
5071     dXSARGS;
5072 #endif
5073     if (items != 2)
5074        croak_xs_usage(cv,  "THIS, fromTab");
5075     {
5076         bool    fromTab = (bool)SvTRUE(ST(1));
5077         wxNavigationKeyEvent *    THIS = (wxNavigationKeyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::NavigationKeyEvent" );
5078
5079         THIS->SetFromTab(fromTab);
5080     }
5081     XSRETURN_EMPTY;
5082 }
5083
5084 #endif
5085
5086 XS(XS_Wx__ChildFocusEvent_new); /* prototype to pass -Wmissing-prototypes */
5087 XS(XS_Wx__ChildFocusEvent_new)
5088 {
5089 #ifdef dVAR
5090     dVAR; dXSARGS;
5091 #else
5092     dXSARGS;
5093 #endif
5094     if (items < 1 || items > 2)
5095        croak_xs_usage(cv,  "CLASS, win = NULL");
5096     {
5097         wxWindow*       win;
5098         char *  CLASS = (char *)SvPV_nolen(ST(0));
5099         wxChildFocusEvent *     RETVAL;
5100
5101         if (items < 2)
5102             win = NULL;
5103         else {
5104     win = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
5105         }
5106
5107         RETVAL = new wxChildFocusEvent(win);
5108         ST(0) = sv_newmortal();
5109     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5110     wxPli_thread_sv_register( aTHX_ "Wx::ChildFocusEvent", RETVAL, ST(0) );
5111
5112     }
5113     XSRETURN(1);
5114 }
5115
5116
5117 XS(XS_Wx__ChildFocusEvent_GetWindow); /* prototype to pass -Wmissing-prototypes */
5118 XS(XS_Wx__ChildFocusEvent_GetWindow)
5119 {
5120 #ifdef dVAR
5121     dVAR; dXSARGS;
5122 #else
5123     dXSARGS;
5124 #endif
5125     if (items != 1)
5126        croak_xs_usage(cv,  "THIS");
5127     {
5128         wxChildFocusEvent *    THIS = (wxChildFocusEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ChildFocusEvent" );
5129         wxWindow *      RETVAL;
5130
5131         RETVAL = THIS->GetWindow();
5132         ST(0) = sv_newmortal();
5133     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5134
5135     }
5136     XSRETURN(1);
5137 }
5138
5139 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
5140 #define XSubPPtmpAAAU 1
5141
5142
5143 XS(XS_Wx__ClipboardTextEvent_new); /* prototype to pass -Wmissing-prototypes */
5144 XS(XS_Wx__ClipboardTextEvent_new)
5145 {
5146 #ifdef dVAR
5147     dVAR; dXSARGS;
5148 #else
5149     dXSARGS;
5150 #endif
5151     if (items < 1 || items > 3)
5152        croak_xs_usage(cv,  "CLASS, type = wxEVT_NULL, id = 0");
5153     {
5154         wxEventType     type;
5155         wxWindowID      id;
5156         char *  CLASS = (char *)SvPV_nolen(ST(0));
5157         wxClipboardTextEvent *  RETVAL;
5158
5159         if (items < 2)
5160             type = wxEVT_NULL;
5161         else {
5162             type = (wxEventType)SvIV(ST(1));
5163         }
5164
5165         if (items < 3)
5166             id = 0;
5167         else {
5168     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
5169         }
5170
5171         RETVAL = new wxClipboardTextEvent(type, id);
5172         ST(0) = sv_newmortal();
5173     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5174     wxPli_thread_sv_register( aTHX_ "Wx::ClipboardTextEvent", RETVAL, ST(0) );
5175
5176     }
5177     XSRETURN(1);
5178 }
5179
5180
5181 XS(XS_Wx__MouseCaptureChangedEvent_new); /* prototype to pass -Wmissing-prototypes */
5182 XS(XS_Wx__MouseCaptureChangedEvent_new)
5183 {
5184 #ifdef dVAR
5185     dVAR; dXSARGS;
5186 #else
5187     dXSARGS;
5188 #endif
5189     if (items < 1 || items > 3)
5190        croak_xs_usage(cv,  "CLASS, id = 0, capturedWindow = NULL");
5191     {
5192         wxWindowID      id;
5193         wxWindow*       capturedWindow;
5194         char *  CLASS = (char *)SvPV_nolen(ST(0));
5195         wxMouseCaptureChangedEvent *    RETVAL;
5196
5197         if (items < 2)
5198             id = 0;
5199         else {
5200     id = wxPli_get_wxwindowid( aTHX_ ST(1) );
5201         }
5202
5203         if (items < 3)
5204             capturedWindow = NULL;
5205         else {
5206     capturedWindow = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Window" );
5207         }
5208
5209         RETVAL = new wxMouseCaptureChangedEvent(id, capturedWindow);
5210         ST(0) = sv_newmortal();
5211     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5212     wxPli_thread_sv_register( aTHX_ "Wx::MouseCaptureChangedEvent", RETVAL, ST(0) );
5213
5214     }
5215     XSRETURN(1);
5216 }
5217
5218
5219 XS(XS_Wx__MouseCaptureChangedEvent_GetCapturedWindow); /* prototype to pass -Wmissing-prototypes */
5220 XS(XS_Wx__MouseCaptureChangedEvent_GetCapturedWindow)
5221 {
5222 #ifdef dVAR
5223     dVAR; dXSARGS;
5224 #else
5225     dXSARGS;
5226 #endif
5227     if (items != 1)
5228        croak_xs_usage(cv,  "THIS");
5229     {
5230         wxMouseCaptureChangedEvent *    THIS = (wxMouseCaptureChangedEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::MouseCaptureChangedEvent" );
5231         wxWindow *      RETVAL;
5232
5233         RETVAL = THIS->GetCapturedWindow();
5234         ST(0) = sv_newmortal();
5235     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5236
5237     }
5238     XSRETURN(1);
5239 }
5240
5241
5242 XS(XS_Wx__MouseCaptureLostEvent_new); /* prototype to pass -Wmissing-prototypes */
5243 XS(XS_Wx__MouseCaptureLostEvent_new)
5244 {
5245 #ifdef dVAR
5246     dVAR; dXSARGS;
5247 #else
5248     dXSARGS;
5249 #endif
5250     if (items < 1 || items > 2)
5251        croak_xs_usage(cv,  "CLASS, eventType = 0");
5252     {
5253         wxEventType     eventType;
5254         char *  CLASS = (char *)SvPV_nolen(ST(0));
5255         wxMouseCaptureLostEvent *       RETVAL;
5256
5257         if (items < 2)
5258             eventType = 0;
5259         else {
5260             eventType = (wxEventType)SvIV(ST(1));
5261         }
5262
5263         RETVAL = new wxMouseCaptureLostEvent(eventType);
5264         ST(0) = sv_newmortal();
5265     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5266     wxPli_thread_sv_register( aTHX_ "Wx::MouseCaptureLostEvent", RETVAL, ST(0) );
5267
5268     }
5269     XSRETURN(1);
5270 }
5271
5272 #endif
5273
5274 XS(XS_Wx__WindowCreateEvent_new); /* prototype to pass -Wmissing-prototypes */
5275 XS(XS_Wx__WindowCreateEvent_new)
5276 {
5277 #ifdef dVAR
5278     dVAR; dXSARGS;
5279 #else
5280     dXSARGS;
5281 #endif
5282     if (items < 1 || items > 2)
5283        croak_xs_usage(cv,  "CLASS, window = NULL");
5284     {
5285         wxWindow*       window;
5286         char *  CLASS = (char *)SvPV_nolen(ST(0));
5287         wxWindowCreateEvent *   RETVAL;
5288
5289         if (items < 2)
5290             window = NULL;
5291         else {
5292     window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
5293         }
5294
5295         RETVAL = new wxWindowCreateEvent(window);
5296         ST(0) = sv_newmortal();
5297     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5298     wxPli_thread_sv_register( aTHX_ "Wx::WindowCreateEvent", RETVAL, ST(0) );
5299
5300     }
5301     XSRETURN(1);
5302 }
5303
5304
5305 XS(XS_Wx__WindowCreateEvent_GetWindow); /* prototype to pass -Wmissing-prototypes */
5306 XS(XS_Wx__WindowCreateEvent_GetWindow)
5307 {
5308 #ifdef dVAR
5309     dVAR; dXSARGS;
5310 #else
5311     dXSARGS;
5312 #endif
5313     if (items != 1)
5314        croak_xs_usage(cv,  "THIS");
5315     {
5316         wxWindowCreateEvent *    THIS = (wxWindowCreateEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::WindowCreateEvent" );
5317         wxWindow *      RETVAL;
5318
5319         RETVAL = THIS->GetWindow();
5320         ST(0) = sv_newmortal();
5321     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5322
5323     }
5324     XSRETURN(1);
5325 }
5326
5327
5328 XS(XS_Wx__WindowDestroyEvent_new); /* prototype to pass -Wmissing-prototypes */
5329 XS(XS_Wx__WindowDestroyEvent_new)
5330 {
5331 #ifdef dVAR
5332     dVAR; dXSARGS;
5333 #else
5334     dXSARGS;
5335 #endif
5336     if (items < 1 || items > 2)
5337        croak_xs_usage(cv,  "CLASS, window = NULL");
5338     {
5339         wxWindow*       window;
5340         char *  CLASS = (char *)SvPV_nolen(ST(0));
5341         wxWindowDestroyEvent *  RETVAL;
5342
5343         if (items < 2)
5344             window = NULL;
5345         else {
5346     window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
5347         }
5348
5349         RETVAL = new wxWindowDestroyEvent(window);
5350         ST(0) = sv_newmortal();
5351     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5352     wxPli_thread_sv_register( aTHX_ "Wx::WindowDestroyEvent", RETVAL, ST(0) );
5353
5354     }
5355     XSRETURN(1);
5356 }
5357
5358
5359 XS(XS_Wx__WindowDestroyEvent_GetWindow); /* prototype to pass -Wmissing-prototypes */
5360 XS(XS_Wx__WindowDestroyEvent_GetWindow)
5361 {
5362 #ifdef dVAR
5363     dVAR; dXSARGS;
5364 #else
5365     dXSARGS;
5366 #endif
5367     if (items != 1)
5368        croak_xs_usage(cv,  "THIS");
5369     {
5370         wxWindowDestroyEvent *    THIS = (wxWindowDestroyEvent *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::WindowDestroyEvent" );
5371         wxWindow *      RETVAL;
5372
5373         RETVAL = THIS->GetWindow();
5374         ST(0) = sv_newmortal();
5375     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
5376
5377     }
5378     XSRETURN(1);
5379 }
5380
5381 #ifdef __cplusplus
5382 extern "C"
5383 #endif
5384 XS(boot_Wx_Evt); /* prototype to pass -Wmissing-prototypes */
5385 XS(boot_Wx_Evt)
5386 {
5387 #ifdef dVAR
5388     dVAR; dXSARGS;
5389 #else
5390     dXSARGS;
5391 #endif
5392 #if (PERL_REVISION == 5 && PERL_VERSION < 9)
5393     char* file = __FILE__;
5394 #else
5395     const char* file = __FILE__;
5396 #endif
5397
5398     PERL_UNUSED_VAR(cv); /* -W */
5399     PERL_UNUSED_VAR(items); /* -W */
5400     XS_VERSION_BOOTCHECK ;
5401
5402         newXS("Wx::EvtHandler::new", XS_Wx__EvtHandler_new, file);
5403         newXS("Wx::EvtHandler::AddPendingEvent", XS_Wx__EvtHandler_AddPendingEvent, file);
5404         newXS("Wx::EvtHandler::Connect", XS_Wx__EvtHandler_Connect, file);
5405         newXS("Wx::EvtHandler::Destroy", XS_Wx__EvtHandler_Destroy, file);
5406         newXS("Wx::EvtHandler::Disconnect", XS_Wx__EvtHandler_Disconnect, file);
5407         newXS("Wx::EvtHandler::GetEvtHandlerEnabled", XS_Wx__EvtHandler_GetEvtHandlerEnabled, file);
5408         newXS("Wx::EvtHandler::GetNextHandler", XS_Wx__EvtHandler_GetNextHandler, file);
5409         newXS("Wx::EvtHandler::GetPreviousHandler", XS_Wx__EvtHandler_GetPreviousHandler, file);
5410         newXS("Wx::EvtHandler::ProcessEvent", XS_Wx__EvtHandler_ProcessEvent, file);
5411 #if XSubPPtmpAAAA
5412         newXS("Wx::EvtHandler::SafelyProcessEvent", XS_Wx__EvtHandler_SafelyProcessEvent, file);
5413 #endif
5414         newXS("Wx::EvtHandler::SetEvtHandlerEnabled", XS_Wx__EvtHandler_SetEvtHandlerEnabled, file);
5415         newXS("Wx::EvtHandler::SetNextHandler", XS_Wx__EvtHandler_SetNextHandler, file);
5416         newXS("Wx::EvtHandler::SetPreviousHandler", XS_Wx__EvtHandler_SetPreviousHandler, file);
5417         newXS("Wx::Event::CLONE", XS_Wx__Event_CLONE, file);
5418         newXS("Wx::Event::DESTROY", XS_Wx__Event_DESTROY, file);
5419         newXS("Wx::Event::GetEventObject", XS_Wx__Event_GetEventObject, file);
5420         newXS("Wx::Event::GetEventType", XS_Wx__Event_GetEventType, file);
5421         newXS("Wx::Event::GetId", XS_Wx__Event_GetId, file);
5422         newXS("Wx::Event::GetSkipped", XS_Wx__Event_GetSkipped, file);
5423         newXS("Wx::Event::GetTimestamp", XS_Wx__Event_GetTimestamp, file);
5424         newXS("Wx::Event::SetEventType", XS_Wx__Event_SetEventType, file);
5425         newXS("Wx::Event::SetEventObject", XS_Wx__Event_SetEventObject, file);
5426         newXS("Wx::Event::SetId", XS_Wx__Event_SetId, file);
5427         newXS("Wx::Event::SetTimestamp", XS_Wx__Event_SetTimestamp, file);
5428         newXS("Wx::Event::Skip", XS_Wx__Event_Skip, file);
5429 #if XSubPPtmpAAAB
5430         newXS("Wx::Event::ShouldPropagate", XS_Wx__Event_ShouldPropagate, file);
5431 #endif
5432 #if XSubPPtmpAAAC
5433         newXS("Wx::Event::StopPropagation", XS_Wx__Event_StopPropagation, file);
5434         newXS("Wx::Event::ResumePropagation", XS_Wx__Event_ResumePropagation, file);
5435 #endif
5436 #if XSubPPtmpAAAD
5437         newXS("Wx::Event::SetPropagate", XS_Wx__Event_SetPropagate, file);
5438 #endif
5439         newXS("Wx::CommandEvent::new", XS_Wx__CommandEvent_new, file);
5440         newXS("Wx::CommandEvent::GetClientData", XS_Wx__CommandEvent_GetClientData, file);
5441         newXS("Wx::CommandEvent::GetExtraLong", XS_Wx__CommandEvent_GetExtraLong, file);
5442         newXS("Wx::CommandEvent::GetInt", XS_Wx__CommandEvent_GetInt, file);
5443         newXS("Wx::CommandEvent::GetSelection", XS_Wx__CommandEvent_GetSelection, file);
5444         newXS("Wx::CommandEvent::GetString", XS_Wx__CommandEvent_GetString, file);
5445         newXS("Wx::CommandEvent::IsChecked", XS_Wx__CommandEvent_IsChecked, file);
5446         newXS("Wx::CommandEvent::IsSelection", XS_Wx__CommandEvent_IsSelection, file);
5447         newXS("Wx::CommandEvent::SetClientData", XS_Wx__CommandEvent_SetClientData, file);
5448         newXS("Wx::CommandEvent::SetExtraLong", XS_Wx__CommandEvent_SetExtraLong, file);
5449         newXS("Wx::CommandEvent::SetInt", XS_Wx__CommandEvent_SetInt, file);
5450         newXS("Wx::CommandEvent::SetString", XS_Wx__CommandEvent_SetString, file);
5451         newXS("Wx::ContextMenuEvent::new", XS_Wx__ContextMenuEvent_new, file);
5452         newXS("Wx::ContextMenuEvent::GetPosition", XS_Wx__ContextMenuEvent_GetPosition, file);
5453         newXS("Wx::ContextMenuEvent::SetPosition", XS_Wx__ContextMenuEvent_SetPosition, file);
5454         newXS("Wx::PlEvent::new", XS_Wx__PlEvent_new, file);
5455         newXS("Wx::PlEvent::DESTROY", XS_Wx__PlEvent_DESTROY, file);
5456         newXS("Wx::PlCommandEvent::new", XS_Wx__PlCommandEvent_new, file);
5457         newXS("Wx::PlCommandEvent::DESTROY", XS_Wx__PlCommandEvent_DESTROY, file);
5458         newXS("Wx::PlThreadEvent::new", XS_Wx__PlThreadEvent_new, file);
5459         newXS("Wx::PlThreadEvent::_GetData", XS_Wx__PlThreadEvent__GetData, file);
5460         newXS("Wx::PlThreadEvent::GetData", XS_Wx__PlThreadEvent_GetData, file);
5461         newXS("Wx::PlThreadEvent::SetStash", XS_Wx__PlThreadEvent_SetStash, file);
5462         newXS("Wx::ActivateEvent::new", XS_Wx__ActivateEvent_new, file);
5463         newXS("Wx::ActivateEvent::GetActive", XS_Wx__ActivateEvent_GetActive, file);
5464         newXS("Wx::CloseEvent::new", XS_Wx__CloseEvent_new, file);
5465         newXS("Wx::CloseEvent::CanVeto", XS_Wx__CloseEvent_CanVeto, file);
5466         newXS("Wx::CloseEvent::GetLoggingOff", XS_Wx__CloseEvent_GetLoggingOff, file);
5467         newXS("Wx::CloseEvent::SetCanVeto", XS_Wx__CloseEvent_SetCanVeto, file);
5468         newXS("Wx::CloseEvent::SetLoggingOff", XS_Wx__CloseEvent_SetLoggingOff, file);
5469         newXS("Wx::CloseEvent::Veto", XS_Wx__CloseEvent_Veto, file);
5470         newXS("Wx::EraseEvent::new", XS_Wx__EraseEvent_new, file);
5471         newXS("Wx::EraseEvent::GetDC", XS_Wx__EraseEvent_GetDC, file);
5472         newXS("Wx::FocusEvent::new", XS_Wx__FocusEvent_new, file);
5473         newXS("Wx::FocusEvent::GetWindow", XS_Wx__FocusEvent_GetWindow, file);
5474         newXS("Wx::IconizeEvent::Iconized", XS_Wx__IconizeEvent_Iconized, file);
5475         newXS("Wx::IconizeEvent::IsIconized", XS_Wx__IconizeEvent_IsIconized, file);
5476         newXS("Wx::KeyEvent::new", XS_Wx__KeyEvent_new, file);
5477         newXS("Wx::KeyEvent::AltDown", XS_Wx__KeyEvent_AltDown, file);
5478 #if XSubPPtmpAAAE
5479         newXS("Wx::KeyEvent::CmdDown", XS_Wx__KeyEvent_CmdDown, file);
5480 #endif
5481         newXS("Wx::KeyEvent::ControlDown", XS_Wx__KeyEvent_ControlDown, file);
5482         newXS("Wx::KeyEvent::GetKeyCode", XS_Wx__KeyEvent_GetKeyCode, file);
5483 #if XSubPPtmpAAAF
5484         newXS("Wx::KeyEvent::GetRawKeyCode", XS_Wx__KeyEvent_GetRawKeyCode, file);
5485 #endif
5486 #if XSubPPtmpAAAG
5487         newXS("Wx::KeyEvent::GetUnicodeKey", XS_Wx__KeyEvent_GetUnicodeKey, file);
5488 #endif
5489 #if XSubPPtmpAAAH
5490         newXS("Wx::KeyEvent::GetModifiers", XS_Wx__KeyEvent_GetModifiers, file);
5491 #endif
5492         newXS("Wx::KeyEvent::GetX", XS_Wx__KeyEvent_GetX, file);
5493         newXS("Wx::KeyEvent::GetY", XS_Wx__KeyEvent_GetY, file);
5494         newXS("Wx::KeyEvent::MetaDown", XS_Wx__KeyEvent_MetaDown, file);
5495         newXS("Wx::KeyEvent::HasModifiers", XS_Wx__KeyEvent_HasModifiers, file);
5496         newXS("Wx::KeyEvent::ShiftDown", XS_Wx__KeyEvent_ShiftDown, file);
5497         newXS("Wx::HelpEvent::new", XS_Wx__HelpEvent_new, file);
5498         newXS("Wx::HelpEvent::GetPosition", XS_Wx__HelpEvent_GetPosition, file);
5499         newXS("Wx::HelpEvent::GetLink", XS_Wx__HelpEvent_GetLink, file);
5500         newXS("Wx::HelpEvent::GetTarget", XS_Wx__HelpEvent_GetTarget, file);
5501         newXS("Wx::HelpEvent::SetPosition", XS_Wx__HelpEvent_SetPosition, file);
5502         newXS("Wx::HelpEvent::SetLink", XS_Wx__HelpEvent_SetLink, file);
5503         newXS("Wx::HelpEvent::SetTarget", XS_Wx__HelpEvent_SetTarget, file);
5504         newXS("Wx::IdleEvent::new", XS_Wx__IdleEvent_new, file);
5505         newXS("Wx::IdleEvent::MoreRequested", XS_Wx__IdleEvent_MoreRequested, file);
5506         newXS("Wx::IdleEvent::RequestMore", XS_Wx__IdleEvent_RequestMore, file);
5507 #if XSubPPtmpAAAI
5508         newXS("Wx::IdleEvent::CanSend", XS_Wx__IdleEvent_CanSend, file);
5509 #endif
5510         newXS("Wx::IdleEvent::SetMode", XS_Wx__IdleEvent_SetMode, file);
5511         newXS("Wx::IdleEvent::GetMode", XS_Wx__IdleEvent_GetMode, file);
5512         newXS("Wx::InitDialogEvent::new", XS_Wx__InitDialogEvent_new, file);
5513         newXS("Wx::JoystickEvent::new", XS_Wx__JoystickEvent_new, file);
5514         newXS("Wx::JoystickEvent::ButtonDown", XS_Wx__JoystickEvent_ButtonDown, file);
5515         newXS("Wx::JoystickEvent::ButtonIsDown", XS_Wx__JoystickEvent_ButtonIsDown, file);
5516         newXS("Wx::JoystickEvent::ButtonUp", XS_Wx__JoystickEvent_ButtonUp, file);
5517         newXS("Wx::JoystickEvent::GetButtonChange", XS_Wx__JoystickEvent_GetButtonChange, file);
5518         newXS("Wx::JoystickEvent::GetButtonState", XS_Wx__JoystickEvent_GetButtonState, file);
5519         newXS("Wx::JoystickEvent::GetJoystick", XS_Wx__JoystickEvent_GetJoystick, file);
5520         newXS("Wx::JoystickEvent::GetPosition", XS_Wx__JoystickEvent_GetPosition, file);
5521         newXS("Wx::JoystickEvent::GetZPosition", XS_Wx__JoystickEvent_GetZPosition, file);
5522         newXS("Wx::JoystickEvent::IsButton", XS_Wx__JoystickEvent_IsButton, file);
5523         newXS("Wx::JoystickEvent::IsMove", XS_Wx__JoystickEvent_IsMove, file);
5524         newXS("Wx::JoystickEvent::IsZMove", XS_Wx__JoystickEvent_IsZMove, file);
5525         newXS("Wx::MenuEvent::new", XS_Wx__MenuEvent_new, file);
5526         newXS("Wx::MenuEvent::GetMenuId", XS_Wx__MenuEvent_GetMenuId, file);
5527         newXS("Wx::MenuEvent::IsPopup", XS_Wx__MenuEvent_IsPopup, file);
5528 #if XSubPPtmpAAAJ
5529         newXS("Wx::MenuEvent::GetMenu", XS_Wx__MenuEvent_GetMenu, file);
5530 #endif
5531         newXS("Wx::MaximizeEvent::new", XS_Wx__MaximizeEvent_new, file);
5532         newXS("Wx::MouseEvent::new", XS_Wx__MouseEvent_new, file);
5533         newXS("Wx::MouseEvent::AltDown", XS_Wx__MouseEvent_AltDown, file);
5534         newXS("Wx::MouseEvent::Button", XS_Wx__MouseEvent_Button, file);
5535         newXS("Wx::MouseEvent::ButtonDClick", XS_Wx__MouseEvent_ButtonDClick, file);
5536         newXS("Wx::MouseEvent::ButtonDown", XS_Wx__MouseEvent_ButtonDown, file);
5537         newXS("Wx::MouseEvent::ButtonUp", XS_Wx__MouseEvent_ButtonUp, file);
5538 #if XSubPPtmpAAAK
5539         newXS("Wx::MouseEvent::CmdDown", XS_Wx__MouseEvent_CmdDown, file);
5540 #endif
5541         newXS("Wx::MouseEvent::ControlDown", XS_Wx__MouseEvent_ControlDown, file);
5542         newXS("Wx::MouseEvent::Dragging", XS_Wx__MouseEvent_Dragging, file);
5543         newXS("Wx::MouseEvent::Entering", XS_Wx__MouseEvent_Entering, file);
5544         newXS("Wx::MouseEvent::GetPosition", XS_Wx__MouseEvent_GetPosition, file);
5545         newXS("Wx::MouseEvent::GetPositionXY", XS_Wx__MouseEvent_GetPositionXY, file);
5546         newXS("Wx::MouseEvent::GetLogicalPosition", XS_Wx__MouseEvent_GetLogicalPosition, file);
5547         newXS("Wx::MouseEvent::GetX", XS_Wx__MouseEvent_GetX, file);
5548         newXS("Wx::MouseEvent::GetY", XS_Wx__MouseEvent_GetY, file);
5549         newXS("Wx::MouseEvent::GetWheelRotation", XS_Wx__MouseEvent_GetWheelRotation, file);
5550         newXS("Wx::MouseEvent::GetWheelDelta", XS_Wx__MouseEvent_GetWheelDelta, file);
5551         newXS("Wx::MouseEvent::GetLinesPerAction", XS_Wx__MouseEvent_GetLinesPerAction, file);
5552 #if XSubPPtmpAAAL
5553         newXS("Wx::MouseEvent::GetWheelAxis", XS_Wx__MouseEvent_GetWheelAxis, file);
5554 #endif
5555         newXS("Wx::MouseEvent::IsButton", XS_Wx__MouseEvent_IsButton, file);
5556         newXS("Wx::MouseEvent::IsPageScroll", XS_Wx__MouseEvent_IsPageScroll, file);
5557         newXS("Wx::MouseEvent::Leaving", XS_Wx__MouseEvent_Leaving, file);
5558         newXS("Wx::MouseEvent::LeftDClick", XS_Wx__MouseEvent_LeftDClick, file);
5559         newXS("Wx::MouseEvent::LeftDown", XS_Wx__MouseEvent_LeftDown, file);
5560         newXS("Wx::MouseEvent::LeftIsDown", XS_Wx__MouseEvent_LeftIsDown, file);
5561         newXS("Wx::MouseEvent::LeftUp", XS_Wx__MouseEvent_LeftUp, file);
5562         newXS("Wx::MouseEvent::MetaDown", XS_Wx__MouseEvent_MetaDown, file);
5563         newXS("Wx::MouseEvent::MiddleDClick", XS_Wx__MouseEvent_MiddleDClick, file);
5564         newXS("Wx::MouseEvent::MiddleDown", XS_Wx__MouseEvent_MiddleDown, file);
5565         newXS("Wx::MouseEvent::MiddleIsDown", XS_Wx__MouseEvent_MiddleIsDown, file);
5566         newXS("Wx::MouseEvent::MiddleUp", XS_Wx__MouseEvent_MiddleUp, file);
5567         newXS("Wx::MouseEvent::Moving", XS_Wx__MouseEvent_Moving, file);
5568         newXS("Wx::MouseEvent::RightDClick", XS_Wx__MouseEvent_RightDClick, file);
5569         newXS("Wx::MouseEvent::RightDown", XS_Wx__MouseEvent_RightDown, file);
5570         newXS("Wx::MouseEvent::RightIsDown", XS_Wx__MouseEvent_RightIsDown, file);
5571         newXS("Wx::MouseEvent::RightUp", XS_Wx__MouseEvent_RightUp, file);
5572 #if XSubPPtmpAAAM
5573         newXS("Wx::MouseEvent::Aux1DClick", XS_Wx__MouseEvent_Aux1DClick, file);
5574         newXS("Wx::MouseEvent::Aux1Down", XS_Wx__MouseEvent_Aux1Down, file);
5575         newXS("Wx::MouseEvent::Aux1IsDown", XS_Wx__MouseEvent_Aux1IsDown, file);
5576         newXS("Wx::MouseEvent::Aux1Up", XS_Wx__MouseEvent_Aux1Up, file);
5577         newXS("Wx::MouseEvent::Aux2DClick", XS_Wx__MouseEvent_Aux2DClick, file);
5578         newXS("Wx::MouseEvent::Aux2Down", XS_Wx__MouseEvent_Aux2Down, file);
5579         newXS("Wx::MouseEvent::Aux2IsDown", XS_Wx__MouseEvent_Aux2IsDown, file);
5580         newXS("Wx::MouseEvent::Aux2Up", XS_Wx__MouseEvent_Aux2Up, file);
5581 #endif
5582         newXS("Wx::MouseEvent::ShiftDown", XS_Wx__MouseEvent_ShiftDown, file);
5583         newXS("Wx::MouseEvent::GetButton", XS_Wx__MouseEvent_GetButton, file);
5584 #if XSubPPtmpAAAN
5585         newXS("Wx::MouseEvent::GetClickCount", XS_Wx__MouseEvent_GetClickCount, file);
5586 #endif
5587         newXS("Wx::MoveEvent::new", XS_Wx__MoveEvent_new, file);
5588         newXS("Wx::MoveEvent::GetPosition", XS_Wx__MoveEvent_GetPosition, file);
5589 #if XSubPPtmpAAAO
5590         newXS("Wx::MoveEvent::GetRect", XS_Wx__MoveEvent_GetRect, file);
5591 #endif
5592         newXS("Wx::NotifyEvent::new", XS_Wx__NotifyEvent_new, file);
5593         newXS("Wx::NotifyEvent::IsAllowed", XS_Wx__NotifyEvent_IsAllowed, file);
5594         newXS("Wx::NotifyEvent::Veto", XS_Wx__NotifyEvent_Veto, file);
5595         newXS("Wx::NotifyEvent::Allow", XS_Wx__NotifyEvent_Allow, file);
5596         newXS("Wx::PaintEvent::new", XS_Wx__PaintEvent_new, file);
5597         newXS("Wx::SizeEvent::new", XS_Wx__SizeEvent_new, file);
5598         newXS("Wx::SizeEvent::GetSize", XS_Wx__SizeEvent_GetSize, file);
5599 #if XSubPPtmpAAAP
5600         newXS("Wx::SizeEvent::GetRect", XS_Wx__SizeEvent_GetRect, file);
5601 #endif
5602         newXS("Wx::ScrollEvent::GetOrientation", XS_Wx__ScrollEvent_GetOrientation, file);
5603         newXS("Wx::ScrollEvent::GetPosition", XS_Wx__ScrollEvent_GetPosition, file);
5604         newXS("Wx::ScrollWinEvent::new", XS_Wx__ScrollWinEvent_new, file);
5605         newXS("Wx::ScrollWinEvent::GetOrientation", XS_Wx__ScrollWinEvent_GetOrientation, file);
5606         newXS("Wx::ScrollWinEvent::GetPosition", XS_Wx__ScrollWinEvent_GetPosition, file);
5607         newXS("Wx::SetCursorEvent::new", XS_Wx__SetCursorEvent_new, file);
5608         newXS("Wx::SetCursorEvent::GetX", XS_Wx__SetCursorEvent_GetX, file);
5609         newXS("Wx::SetCursorEvent::GetY", XS_Wx__SetCursorEvent_GetY, file);
5610         newXS("Wx::SetCursorEvent::SetCursor", XS_Wx__SetCursorEvent_SetCursor, file);
5611         newXS("Wx::SetCursorEvent::GetCursor", XS_Wx__SetCursorEvent_GetCursor, file);
5612         newXS("Wx::SetCursorEvent::HasCursor", XS_Wx__SetCursorEvent_HasCursor, file);
5613         newXS("Wx::SysColourChangedEvent::new", XS_Wx__SysColourChangedEvent_new, file);
5614         newXS("Wx::UpdateUIEvent::CanUpdate", XS_Wx__UpdateUIEvent_CanUpdate, file);
5615         newXS("Wx::UpdateUIEvent::GetMode", XS_Wx__UpdateUIEvent_GetMode, file);
5616         newXS("Wx::UpdateUIEvent::SetMode", XS_Wx__UpdateUIEvent_SetMode, file);
5617         newXS("Wx::UpdateUIEvent::GetUpdateInterval", XS_Wx__UpdateUIEvent_GetUpdateInterval, file);
5618         newXS("Wx::UpdateUIEvent::ResetUpdateTime", XS_Wx__UpdateUIEvent_ResetUpdateTime, file);
5619         newXS("Wx::UpdateUIEvent::SetUpdateInterval", XS_Wx__UpdateUIEvent_SetUpdateInterval, file);
5620         newXS("Wx::UpdateUIEvent::new", XS_Wx__UpdateUIEvent_new, file);
5621         newXS("Wx::UpdateUIEvent::Check", XS_Wx__UpdateUIEvent_Check, file);
5622 #if XSubPPtmpAAAQ
5623         newXS("Wx::UpdateUIEvent::Show", XS_Wx__UpdateUIEvent_Show, file);
5624 #endif
5625         newXS("Wx::UpdateUIEvent::Enable", XS_Wx__UpdateUIEvent_Enable, file);
5626         newXS("Wx::UpdateUIEvent::GetChecked", XS_Wx__UpdateUIEvent_GetChecked, file);
5627 #if XSubPPtmpAAAR
5628         newXS("Wx::UpdateUIEvent::GetShown", XS_Wx__UpdateUIEvent_GetShown, file);
5629 #endif
5630         newXS("Wx::UpdateUIEvent::GetSetEnabled", XS_Wx__UpdateUIEvent_GetSetEnabled, file);
5631         newXS("Wx::UpdateUIEvent::GetSetChecked", XS_Wx__UpdateUIEvent_GetSetChecked, file);
5632 #if XSubPPtmpAAAS
5633         newXS("Wx::UpdateUIEvent::GetSetShown", XS_Wx__UpdateUIEvent_GetSetShown, file);
5634 #endif
5635         newXS("Wx::UpdateUIEvent::GetEnabled", XS_Wx__UpdateUIEvent_GetEnabled, file);
5636         newXS("Wx::UpdateUIEvent::GetText", XS_Wx__UpdateUIEvent_GetText, file);
5637         newXS("Wx::UpdateUIEvent::SetText", XS_Wx__UpdateUIEvent_SetText, file);
5638         newXS("Wx::UpdateUIEvent::GetSetText", XS_Wx__UpdateUIEvent_GetSetText, file);
5639         newXS("Wx::NavigationKeyEvent::new", XS_Wx__NavigationKeyEvent_new, file);
5640         newXS("Wx::NavigationKeyEvent::GetDirection", XS_Wx__NavigationKeyEvent_GetDirection, file);
5641         newXS("Wx::NavigationKeyEvent::SetDirection", XS_Wx__NavigationKeyEvent_SetDirection, file);
5642         newXS("Wx::NavigationKeyEvent::IsWindowChange", XS_Wx__NavigationKeyEvent_IsWindowChange, file);
5643         newXS("Wx::NavigationKeyEvent::SetWindowChange", XS_Wx__NavigationKeyEvent_SetWindowChange, file);
5644         newXS("Wx::NavigationKeyEvent::GetCurrentFocus", XS_Wx__NavigationKeyEvent_GetCurrentFocus, file);
5645         newXS("Wx::NavigationKeyEvent::SetCurrentFocus", XS_Wx__NavigationKeyEvent_SetCurrentFocus, file);
5646 #if XSubPPtmpAAAT
5647         newXS("Wx::NavigationKeyEvent::IsFromTab", XS_Wx__NavigationKeyEvent_IsFromTab, file);
5648         newXS("Wx::NavigationKeyEvent::SetFromTab", XS_Wx__NavigationKeyEvent_SetFromTab, file);
5649 #endif
5650         newXS("Wx::ChildFocusEvent::new", XS_Wx__ChildFocusEvent_new, file);
5651         newXS("Wx::ChildFocusEvent::GetWindow", XS_Wx__ChildFocusEvent_GetWindow, file);
5652 #if XSubPPtmpAAAU
5653         newXS("Wx::ClipboardTextEvent::new", XS_Wx__ClipboardTextEvent_new, file);
5654         newXS("Wx::MouseCaptureChangedEvent::new", XS_Wx__MouseCaptureChangedEvent_new, file);
5655         newXS("Wx::MouseCaptureChangedEvent::GetCapturedWindow", XS_Wx__MouseCaptureChangedEvent_GetCapturedWindow, file);
5656         newXS("Wx::MouseCaptureLostEvent::new", XS_Wx__MouseCaptureLostEvent_new, file);
5657 #endif
5658         newXS("Wx::WindowCreateEvent::new", XS_Wx__WindowCreateEvent_new, file);
5659         newXS("Wx::WindowCreateEvent::GetWindow", XS_Wx__WindowCreateEvent_GetWindow, file);
5660         newXS("Wx::WindowDestroyEvent::new", XS_Wx__WindowDestroyEvent_new, file);
5661         newXS("Wx::WindowDestroyEvent::GetWindow", XS_Wx__WindowDestroyEvent_GetWindow, file);
5662
5663     /* Initialisation Section */
5664
5665 #if XSubPPtmpAAAA
5666 #endif
5667 #if XSubPPtmpAAAB
5668 #endif
5669 #if XSubPPtmpAAAC
5670 #endif
5671 #if XSubPPtmpAAAD
5672 #endif
5673 #if XSubPPtmpAAAE
5674 #endif
5675 #if XSubPPtmpAAAF
5676 #endif
5677 #if XSubPPtmpAAAG
5678 #endif
5679 #if XSubPPtmpAAAH
5680 #endif
5681 #if XSubPPtmpAAAI
5682 #endif
5683 #if XSubPPtmpAAAJ
5684 #endif
5685 #if XSubPPtmpAAAK
5686 #endif
5687 #if XSubPPtmpAAAL
5688 #endif
5689 #if XSubPPtmpAAAM
5690 #endif
5691 #if XSubPPtmpAAAN
5692 #endif
5693 #if XSubPPtmpAAAO
5694 #endif
5695 #if XSubPPtmpAAAP
5696 #endif
5697 #if XSubPPtmpAAAQ
5698 #endif
5699 #if XSubPPtmpAAAR
5700 #endif
5701 #if XSubPPtmpAAAS
5702 #endif
5703 #if XSubPPtmpAAAT
5704 #endif
5705 #if XSubPPtmpAAAU
5706 #endif
5707
5708     /* End of Initialisation Section */
5709
5710 #if (PERL_REVISION == 5 && PERL_VERSION >= 9)
5711   if (PL_unitcheckav)
5712        call_list(PL_scopestack_ix, PL_unitcheckav);
5713 #endif
5714     XSRETURN_YES;
5715 }
5716